Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd/myldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'nslcd/myldap.c')
-rw-r--r--nslcd/myldap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nslcd/myldap.c b/nslcd/myldap.c
index 9e36699..c5cd1e0 100644
--- a/nslcd/myldap.c
+++ b/nslcd/myldap.c
@@ -476,12 +476,16 @@ static int do_set_options(MYLDAP_SESSION *session)
http://www.openldap.org/software/man.cgi?query=ldap_set_rebind_proc&manpath=OpenLDAP+2.4-Release */
/* TODO: probably only set this if we should chase referrals */
log_log(LOG_DEBUG,"ldap_set_rebind_proc()");
+ #if LDAP_SET_REBIND_PROC_TYPE == int
rc=ldap_set_rebind_proc(session->ld,do_rebind,session);
if (rc!=LDAP_SUCCESS)
{
log_log(LOG_ERR,"ldap_set_rebind_proc() failed: %s",ldap_err2string(rc));
return rc;
}
+ #else /* LDAP_SET_REBIND_PROC_TYPE == void */
+ ldap_set_rebind_proc(session->ld,do_rebind,session);
+ #endif
#endif /* HAVE_LDAP_SET_REBIND_PROC */
/* set the protocol version to use */
log_log(LOG_DEBUG,"ldap_set_option(LDAP_OPT_PROTOCOL_VERSION,%d)",nslcd_cfg->ldc_version);