X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fldap.c;h=0a4cb2c44a49fee407c10fb2794882b3c48e1c86;hb=fc25e47955a68f10cf44262744a48343bfdcfdd9;hp=1bc38224c2a15a66b30fade8378a7ae40f94f160;hpb=91d9721e1459680919a057886cc7ab7792b2bef4;p=citadel.git diff --git a/citadel/ldap.c b/citadel/ldap.c index 1bc38224c..0a4cb2c44 100644 --- a/citadel/ldap.c +++ b/citadel/ldap.c @@ -9,7 +9,7 @@ */ -int ldap_version = 3; +int ctdl_require_ldap_version = 3; #include "sysdep.h" @@ -89,7 +89,7 @@ int CtdlTryUserLDAP(char *username, return(errno); } - ldap_set_option(ldserver, LDAP_OPT_PROTOCOL_VERSION, &ldap_version); + ldap_set_option(ldserver, LDAP_OPT_PROTOCOL_VERSION, &ctdl_require_ldap_version); striplt(config.c_ldap_bind_dn); striplt(config.c_ldap_bind_pw); @@ -217,7 +217,7 @@ int CtdlTryPasswordLDAP(char *user_dn, char *password) ldserver = ldap_init(config.c_ldap_host, config.c_ldap_port); if (ldserver) { - ldap_set_option(ldserver, LDAP_OPT_PROTOCOL_VERSION, &ldap_version); + 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) { CtdlLogPrintf(CTDL_DEBUG, "LDAP: bind succeeded\n");