]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Made "chase_referrals" and "rebind" to "yes" by default.
authorAlan T. DeKok <aland@freeradius.org>
Sat, 2 Mar 2013 14:50:13 +0000 (09:50 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 2 Mar 2013 15:12:41 +0000 (10:12 -0500)
And updated the source so that it prints out warnings
if they cannot be enabled.

We should probably just remove these two options.  There are
always benefits to leaving them on.  There are no real benefits
to turning them off

raddb/mods-available/ldap
src/modules/rlm_ldap/rlm_ldap.c

index a65eb657919796a88ea92b80fc3e671e1255b321..695ee0d72a609e50d997ca6c8890551198eadffd 100644 (file)
@@ -181,12 +181,12 @@ ldap {
        options {
                #
                #  The following two configuration items are for Active Directory
-               #  compatibility.  If you see the helpful "operations error"
-               #  being returned to the LDAP module, uncomment the next
-               #  two lines.
+               #  compatibility.  If you set these to "no", then searches
+               #  will likely return "operations error", instead of a
+               #  useful resuly.
                #
-#              chase_referrals = yes
-#              rebind = yes
+               chase_referrals = yes
+               rebind = yes
 
                # seconds to wait for LDAP query to finish. default: 20
                timeout = 10
index 08b679bbc8503730335c930e4d2b701998f5b62c..0dd3fe5b28fcc206a74c8dfed7a8e0052ee240ec 100644 (file)
@@ -571,11 +571,13 @@ static void *ldap_conn_create(void *ctx)
                        do_ldap_option(LDAP_OPT_REFERRALS, "chase_referrals",
                                       LDAP_OPT_ON);
                        
-#if LDAP_SET_REBIND_PROC_ARGS == 3
                        if (inst->rebind == 1) {
+#if LDAP_SET_REBIND_PROC_ARGS == 3
                                ldap_set_rebind_proc(handle, ldap_rebind, inst);
-                       }
+#else
+                               DEBUGW("The flag 'rebind = yes' is not supported by the system LDAP library.  Ignoring.");
 #endif
+                       }
                } else {
                        do_ldap_option(LDAP_OPT_REFERRALS, "chase_referrals",
                                       LDAP_OPT_OFF);