From 3a7935ed6115c8463552124b730ed5484447235c Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 17 Jan 2004 21:25:30 +0000 Subject: [PATCH] * Add 'base DN' and 'bind DN' and 'bind DN password' to siteconfig * Split the config for LDAP Connector into its own panel --- webcit/ChangeLog | 5 +++++ webcit/siteconfig.c | 49 +++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 358205182..7d897367e 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,8 @@ $Log$ +Revision 502.3 2004/01/17 21:25:30 ajc +* Add 'base DN' and 'bind DN' and 'bind DN password' to siteconfig +* Split the config for LDAP Connector into its own panel + Revision 502.2 2004/01/17 04:32:54 ajc * Add site config options for Citadel servers which support LDAP @@ -1623,3 +1627,4 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix + diff --git a/webcit/siteconfig.c b/webcit/siteconfig.c index 7fa90c86f..acbf44db0 100644 --- a/webcit/siteconfig.c +++ b/webcit/siteconfig.c @@ -93,6 +93,18 @@ void display_siteconfig(void) "\n" ); + wprintf("" + "" + "" + "\" \"" + "" + "" + "Directory
" + "Configure the LDAP connector for Citadel" + "
\n" + ); + wprintf(""); do_template("endbox"); @@ -459,7 +471,7 @@ void display_siteconfig(void) } break; case 33: - if ( (serv_info.serv_supports_ldap) && (!strcasecmp(whichmenu, "network")) ) { + if ( (serv_info.serv_supports_ldap) && (!strcasecmp(whichmenu, "ldap")) ) { wprintf("Host name of LDAP server (blank to disable)"); wprintf("", buf); wprintf("\n"); @@ -469,7 +481,7 @@ void display_siteconfig(void) } break; case 34: - if ( (serv_info.serv_supports_ldap) && (!strcasecmp(whichmenu, "network")) ) { + if ( (serv_info.serv_supports_ldap) && (!strcasecmp(whichmenu, "ldap")) ) { wprintf("Port number of LDAP server (blank to disable)"); wprintf("", atoi(buf)); wprintf("\n"); @@ -478,6 +490,36 @@ void display_siteconfig(void) wprintf("", atoi(buf)); } break; + case 35: + if ( (serv_info.serv_supports_ldap) && (!strcasecmp(whichmenu, "ldap")) ) { + wprintf("Base DN"); + wprintf("", buf); + wprintf("\n"); + } + else { + wprintf("", buf); + } + break; + case 36: + if ( (serv_info.serv_supports_ldap) && (!strcasecmp(whichmenu, "ldap")) ) { + wprintf("Bind DN"); + wprintf("", buf); + wprintf("\n"); + } + else { + wprintf("", buf); + } + break; + case 37: + if ( (serv_info.serv_supports_ldap) && (!strcasecmp(whichmenu, "ldap")) ) { + wprintf("Password for bind DN"); + wprintf("", buf); + wprintf("\n"); + } + else { + wprintf("", buf); + } + break; } } @@ -539,6 +581,9 @@ void siteconfig(void) serv_printf("%s", bstr("c_purge_hour")); serv_printf("%s", bstr("c_ldap_host")); serv_printf("%s", bstr("c_ldap_port")); + serv_printf("%s", bstr("c_ldap_base_dn")); + serv_printf("%s", bstr("c_ldap_bind_dn")); + serv_printf("%s", bstr("c_ldap_bind_pw")); serv_printf("000"); strcpy(WC->ImportantMessage, "System configuration has been updated."); display_siteconfig(); -- 2.39.2