From: Alan T. DeKok Date: Tue, 19 Feb 2013 14:54:57 +0000 (-0500) Subject: Print out better message on operations error X-Git-Tag: release_3_0_0_beta1~1027 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=271672cb7b14f5fcef92a984a126c8d599f0450b;p=thirdparty%2Ffreeradius-server.git Print out better message on operations error --- diff --git a/src/modules/rlm_ldap/rlm_ldap.c b/src/modules/rlm_ldap/rlm_ldap.c index 41e59673af3..58c79550d43 100644 --- a/src/modules/rlm_ldap/rlm_ldap.c +++ b/src/modules/rlm_ldap/rlm_ldap.c @@ -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));