projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5f2b9b3
)
fix indentation
author
Art Cancro
<ajc@citadel.org>
Mon, 13 Nov 2017 17:02:29 +0000
(12:02 -0500)
committer
Art Cancro
<ajc@citadel.org>
Mon, 13 Nov 2017 17:02:29 +0000
(12:02 -0500)
citadel/user_ops.c
patch
|
blob
|
history
diff --git
a/citadel/user_ops.c
b/citadel/user_ops.c
index 82f693a4ea0a83a1395818ea4688b248d24fd66b..fe830092701028dc7c3fd35added29a94ca64bdb 100644
(file)
--- a/
citadel/user_ops.c
+++ b/
citadel/user_ops.c
@@
-654,14
+654,14
@@
void do_login(void)
* If we are using LDAP authentication, extract the user's email addresses from the directory.
* FIXME make this a site configurable setting
*/
* If we are using LDAP authentication, extract the user's email addresses from the directory.
* FIXME make this a site configurable setting
*/
- #ifdef HAVE_LDAP
- if ((CtdlGetConfigInt("c_auth_mode") == AUTHMODE_LDAP) || (CtdlGetConfigInt("c_auth_mode") == AUTHMODE_LDAP_AD)) {
- char new_emailaddrs[512];
- if (extract_email_addresses_from_ldap(CCC->ldap_dn, new_emailaddrs) == 0) {
- strcpy(CCC->user.emailaddrs, new_emailaddrs);
- }
+#ifdef HAVE_LDAP
+ if ((CtdlGetConfigInt("c_auth_mode") == AUTHMODE_LDAP) || (CtdlGetConfigInt("c_auth_mode") == AUTHMODE_LDAP_AD)) {
+ char new_emailaddrs[512];
+ if (extract_email_addresses_from_ldap(CCC->ldap_dn, new_emailaddrs) == 0) {
+ strcpy(CCC->user.emailaddrs, new_emailaddrs);
}
}
- #endif
+ }
+#endif
/*
* No email address for user? Make one up.
/*
* No email address for user? Make one up.