Fixed stupid bug, allowing logins with null password
authorpam <pam>
Wed, 16 May 2001 15:21:04 +0000 (15:21 +0000)
committerpam <pam>
Wed, 16 May 2001 15:21:04 +0000 (15:21 +0000)
src/modules/rlm_ldap/rlm_ldap.c

index e9bf9bb..65c105c 100644 (file)
@@ -471,7 +471,7 @@ ldap_authenticate(void *instance, REQUEST * request)
                return RLM_MODULE_INVALID;
        }
 
-       if (request->password->strvalue == 0) {
+       if (request->password->length == 0) {
                radlog(L_ERR, "rlm_ldap: empty password supplied");
                return RLM_MODULE_INVALID;
        }