X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fuser_ops.c;h=bb803982af93da8fb8a1c23d4187079eeb86483d;hb=7dd4c13ad3f294c87ceff8f09ded051fe3bd328f;hp=2ea53478c22c3c7a0b285d831e2eeb4fe5f4e269;hpb=24a8aa1ce7a59effb86023e5f08f869898232322;p=citadel.git diff --git a/citadel/user_ops.c b/citadel/user_ops.c index 2ea53478c..bb803982a 100644 --- a/citadel/user_ops.c +++ b/citadel/user_ops.c @@ -543,7 +543,7 @@ int CtdlLoginExistingUser(char *authname, char *trythisname) } #ifdef HAVE_LDAP - else if (config.c_auth_mode == AUTHMODE_LDAP) { + else if ((config.c_auth_mode == AUTHMODE_LDAP) || (config.c_auth_mode == AUTHMODE_LDAP_AD)) { /* LDAP auth mode */ @@ -890,7 +890,7 @@ int CtdlTryPassword(char *password) } #ifdef HAVE_LDAP - else if (config.c_auth_mode == AUTHMODE_LDAP) { + else if ((config.c_auth_mode == AUTHMODE_LDAP) || (config.c_auth_mode == AUTHMODE_LDAP_AD)) { /* LDAP auth mode */ @@ -1112,7 +1112,7 @@ int create_user(char *newusername, int become_user) } #ifdef HAVE_LDAP - if (config.c_auth_mode == AUTHMODE_LDAP) { + if ((config.c_auth_mode == AUTHMODE_LDAP) || (config.c_auth_mode == AUTHMODE_LDAP_AD)) { if (CtdlTryUserLDAP(username, NULL, 0, username, sizeof username, &uid) != 0) { return(ERROR + NO_SUCH_USER); }