X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;ds=sidebyside;f=citadel%2Fuser_ops.c;h=87dfa5a2515eea16776664d26640f1f8094526cb;hb=219bbe065f3a3e1117f3fadd3e28164098d4f625;hp=b78cc592fbdc84410569b7e242517707acbcc716;hpb=fbfd4f7c2a258c74f05d9a9a63eeb83273b101da;p=citadel.git diff --git a/citadel/user_ops.c b/citadel/user_ops.c index b78cc592f..87dfa5a25 100644 --- a/citadel/user_ops.c +++ b/citadel/user_ops.c @@ -623,8 +623,7 @@ int CtdlLoginExistingUser(char *authname, const char *trythisname) if (((CC->nologin)) && (CC->user.axlevel < AxAideU)) { return login_too_many_users; } else { - safestrncpy(CC->curr_user, CC->user.fullname, - sizeof CC->curr_user); + safestrncpy(CC->curr_user, CC->user.fullname, sizeof CC->curr_user); return login_ok; } } @@ -665,6 +664,13 @@ void do_login(void) CtdlPutUserLock(&CCC->user); + + // PUT THE EMAIL EXTRACT HERE AJC FIXME + //#ifdef HAVE_LDAP + //if ((CtdlGetConfigInt("c_auth_mode") == AUTHMODE_LDAP) || (CtdlGetConfigInt("c_auth_mode") == AUTHMODE_LDAP_AD)) { + //int extract_email_addresses_from_ldap(char *ldap_dn, char *emailaddrs) + //#endif + /* * No email address for user? Make one up. */