From: Alan T. DeKok Date: Tue, 19 Feb 2013 14:53:44 +0000 (-0500) Subject: Print out more helpful text for operations error X-Git-Tag: release_2_2_1~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aea871267f25d7f25f4d493597e402d0b6ebfbf1;p=thirdparty%2Ffreeradius-server.git Print out more helpful text for operations error --- diff --git a/src/modules/rlm_ldap/rlm_ldap.c b/src/modules/rlm_ldap/rlm_ldap.c index 7c62b133fa8..cfac99ac988 100644 --- a/src/modules/rlm_ldap/rlm_ldap.c +++ b/src/modules/rlm_ldap/rlm_ldap.c @@ -932,6 +932,11 @@ retry: ldap_err2string(ldap_errno)); ldap_msgfree(*result); return (RLM_MODULE_FAIL); + case LDAP_OPERATIONS_ERROR: + DEBUG("WARNING: Please set 'chase_referrals=yes' and 'rebind=yes'"); + DEBUG("WARNING: See the ldap module configuration for details"); + /* FALL-THROUGH */ + default: ldap_get_option(conn->ld, LDAP_OPT_ERROR_NUMBER, &ldap_errno); radlog(L_ERR, " [%s] ldap_search() failed: %s", inst->xlat_name,