Pull fix from the head
authoraland <aland>
Tue, 7 Mar 2006 18:46:42 +0000 (18:46 +0000)
committeraland <aland>
Tue, 7 Mar 2006 18:46:42 +0000 (18:46 +0000)
src/modules/rlm_ldap/rlm_ldap.c

index c8ece53..c26b0a0 100644 (file)
@@ -1621,8 +1621,10 @@ ldap_authorize(void *instance, REQUEST * request)
        if (inst->set_auth_type &&
            (pairfind(*check_pairs, PW_AUTH_TYPE) == NULL) &&
            request->password &&
-           (request->password->attribute == PW_USER_PASSWORD))
+           (request->password->attribute == PW_USER_PASSWORD)) {
                pairadd(check_pairs, pairmake("Auth-Type", inst->xlat_name, T_OP_EQ));
+               DEBUG("rlm_ldap: Setting Auth-Type = %s", inst->xlat_name);
+       }
 
        DEBUG("rlm_ldap: user %s authorized to use remote access",
              request->username->strvalue);