]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Print out more helpful text for operations error
authorAlan T. DeKok <aland@freeradius.org>
Tue, 19 Feb 2013 14:53:44 +0000 (09:53 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 19 Feb 2013 14:53:44 +0000 (09:53 -0500)
src/modules/rlm_ldap/rlm_ldap.c

index 7c62b133fa83111f69a13dd3924dda7002ebf59a..cfac99ac9887f6c1e3a25621f36835e3fedaeac4 100644 (file)
@@ -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,