From 49eee9f8e4c70eefcc0ddde77ec4f961e2ba42c3 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 6 Nov 2014 16:23:44 -0500 Subject: [PATCH] CtdlTryPasswordLDAP() migrated to ctdl_ldap_initialize() --- citadel/ldap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/citadel/ldap.c b/citadel/ldap.c index cb5a01703..2b0282a85 100644 --- a/citadel/ldap.c +++ b/citadel/ldap.c @@ -215,7 +215,9 @@ int CtdlTryPasswordLDAP(char *user_dn, const char *password) syslog(LOG_DEBUG, "LDAP: trying to bind as %s", user_dn); ldserver = ldap_init(config.c_ldap_host, config.c_ldap_port); - if (ldserver) { + + i = ctdl_ldap_initialize(&ldserver); + if (i == LDAP_SUCCESS) { ldap_set_option(ldserver, LDAP_OPT_PROTOCOL_VERSION, &ctdl_require_ldap_version); i = ldap_simple_bind_s(ldserver, user_dn, password); if (i == LDAP_SUCCESS) { -- 2.30.2