Already have an ldap_errno
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 11 Dec 2012 12:46:31 +0000 (12:46 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 11 Dec 2012 12:46:31 +0000 (12:46 +0000)
src/modules/rlm_ldap/rlm_ldap.c

index 9723f25..ebcf2c1 100644 (file)
@@ -2366,9 +2366,6 @@ static int user_modify(ldap_instance *inst, REQUEST *request,
                                       NULL);
                             
        if (ldap_errno != LDAP_SUCCESS) {
-               ldap_get_option(conn->handle, LDAP_OPT_ERROR_NUMBER,
-                               &ldap_errno);
-                               
                error_string = ldap_err2string(ldap_errno);
 
                radlog(L_ERR, "rlm_ldap (%s): Modifying DN \"%s\" failed: %s",