rlm_ldap.c patch

Kenneth Grady klg at lanl.gov
Mon Apr 19 18:47:17 CEST 2010


$ diff -c rlm_ldap.c.orig 
freeradius-server-2.1.8v3/src/modules/rlm_ldap/rlm_ldap.c
*** rlm_ldap.c.orig     Mon Apr 19 10:44:27 2010
--- freeradius-server-2.1.8v3/src/modules/rlm_ldap/rlm_ldap.c   Mon Apr 
19 10:40:35 2010
***************
*** 2241,2248 ****
                                           LDAP_OPT_ON);
 
                        if (inst->rebind == 1) {
!                               ldap_set_rebind_proc(ld, ldap_rebind,
!                                                    inst);
                        }
                } else {
                        rc=ldap_set_option(ld, LDAP_OPT_REFERRALS,
--- 2241,2252 ----
                                           LDAP_OPT_ON);
 
                        if (inst->rebind == 1) {
!                               ldap_set_rebind_proc(ld,
! #if LDAP_SET_REBIND_PROC_ARGS != 3
!                               ldap_rebind);
! #else
!                               ldap_rebind, inst);
! #endif
                        }
                } else {
                        rc=ldap_set_option(ld, LDAP_OPT_REFERRALS,




More information about the Freeradius-Devel mailing list