Print out better message on operations error
authorAlan T. DeKok <aland@freeradius.org>
Tue, 19 Feb 2013 14:54:57 +0000 (09:54 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 19 Feb 2013 18:18:02 +0000 (13:18 -0500)
src/modules/rlm_ldap/rlm_ldap.c

index 41e5967..58c7955 100644 (file)
@@ -399,6 +399,11 @@ static int process_ldap_errno(ldap_instance *inst, LDAP_CONN **pconn,
        case LDAP_CONSTRAINT_VIOLATION:
                return LDAP_PROC_REJECT;
 
+       case LDAP_OPERATIONS_ERROR:
+               DEBUGW("Please set 'chase_referrals=yes' and 'rebind=yes'");
+               DEBUGW("See the ldap module configuration for details");
+               /* FALL-THROUGH */
+
        default:
                radlog(L_ERR, "rlm_ldap (%s): %s failed: %s",
                       inst->xlat_name, operation, ldap_err2string(ldap_errno));