Handle connection error in rlm_ldap_cacheable_groupobj
authorNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
Wed, 29 Mar 2017 07:43:14 +0000 (10:43 +0300)
committerNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
Wed, 29 Mar 2017 07:44:27 +0000 (10:44 +0300)
Closes #1951

src/modules/rlm_ldap/groups.c

index 12f34da..5e0a181 100644 (file)
@@ -461,8 +461,10 @@ rlm_rcode_t rlm_ldap_cacheable_groupobj(rlm_ldap_t const *inst, REQUEST *request
 
        case LDAP_PROC_NO_RESULT:
                RDEBUG2("No cacheable group memberships found in group objects");
+               goto finish;
 
        default:
+               rcode = RLM_MODULE_FAIL;
                goto finish;
        }