From: Art Cancro Date: Sat, 17 Jan 2004 04:32:54 +0000 (+0000) Subject: * Add site config options for Citadel servers which support LDAP X-Git-Tag: v7.86~5652 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=3d1bfdca59fb72a8330e853e0471405261c50fc6 * Add site config options for Citadel servers which support LDAP --- diff --git a/webcit/ChangeLog b/webcit/ChangeLog index be498c152..358205182 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,7 @@ $Log$ +Revision 502.2 2004/01/17 04:32:54 ajc +* Add site config options for Citadel servers which support LDAP + Revision 502.1 2003/10/24 02:50:19 ajc * Clicking "Enter Message" in a room with an Address Book view opens a blank vCard entry screen. @@ -1620,4 +1623,3 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix - diff --git a/webcit/serv_func.c b/webcit/serv_func.c index e99037e08..7a47eefd4 100644 --- a/webcit/serv_func.c +++ b/webcit/serv_func.c @@ -88,6 +88,9 @@ void get_serv_info(char *browser_host, char *user_agent) case 9: strcpy(serv_info.serv_moreprompt, buf); break; + case 14: + serv_info.serv_supports_ldap = atoi(buf); + break; } ++a; } diff --git a/webcit/siteconfig.c b/webcit/siteconfig.c index a576c2481..7fa90c86f 100644 --- a/webcit/siteconfig.c +++ b/webcit/siteconfig.c @@ -458,6 +458,26 @@ void display_siteconfig(void) wprintf("", buf); } break; + case 33: + if ( (serv_info.serv_supports_ldap) && (!strcasecmp(whichmenu, "network")) ) { + wprintf("Host name of LDAP server (blank to disable)"); + wprintf("", buf); + wprintf("\n"); + } + else { + wprintf("", buf); + } + break; + case 34: + if ( (serv_info.serv_supports_ldap) && (!strcasecmp(whichmenu, "network")) ) { + wprintf("Port number of LDAP server (blank to disable)"); + wprintf("", atoi(buf)); + wprintf("\n"); + } + else { + wprintf("", atoi(buf)); + } + break; } } @@ -517,6 +537,8 @@ void siteconfig(void) serv_printf("%s", bstr("c_disable_newu")); serv_printf("%s", bstr("c_aide_mailboxes")); serv_printf("%s", bstr("c_purge_hour")); + serv_printf("%s", bstr("c_ldap_host")); + serv_printf("%s", bstr("c_ldap_port")); serv_printf("000"); strcpy(WC->ImportantMessage, "System configuration has been updated."); display_siteconfig(); diff --git a/webcit/webcit.h b/webcit/webcit.h index a05ab51cb..ee5018bdc 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -103,6 +103,7 @@ struct serv_info { char serv_sysadm[64]; char serv_moreprompt[SIZ]; int serv_ok_floors; + int serv_supports_ldap; };