projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05735e3
)
CtdlTryPasswordLDAP() migrated to ctdl_ldap_initialize()
author
Art Cancro
<ajc@uncensored.citadel.org>
Thu, 6 Nov 2014 21:23:44 +0000
(16:23 -0500)
committer
Art Cancro
<ajc@uncensored.citadel.org>
Thu, 6 Nov 2014 21:23:44 +0000
(16:23 -0500)
citadel/ldap.c
patch
|
blob
|
history
diff --git
a/citadel/ldap.c
b/citadel/ldap.c
index cb5a017037c70a2c7ae9ffa0f130be3b264caa33..2b0282a85e6a451db94720af8cdcb2c114c7d229 100644
(file)
--- 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) {