Warn the site administrator when they attempt to
authorArt Cancro <ajc@citadel.org>
Sun, 12 Nov 2006 04:33:07 +0000 (04:33 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 12 Nov 2006 04:33:07 +0000 (04:33 +0000)
configure Directory services on a Citadel site
that was built without LDAP support.

webcit/siteconfig.c

index a9ccf118860d4f773048f967c764a55184f2f0ee..64873fd48e4b52a6f994e63e94e0d74c7c78dd74 100644 (file)
@@ -88,8 +88,12 @@ void display_siteconfig(void)
 
        sprintf(directory, "<center><h1>%s</h1><h2>%s</h2><table border=\"0\">",
                        _("Configure the LDAP connector for Citadel"),
-                       _("Changes made on this screen will not take effect "
-                       "until you restart the Citadel server.")
+                       (serv_info.serv_supports_ldap
+                       ?       _("Changes made on this screen will not take effect "
+                               "until you restart the Citadel server.")
+                       :       _("NOTE: This Citadel server has been built without "
+                               "LDAP support.  These options will have no effect.")
+                       )
        );
 
        sprintf(purger, "<center><h1>%s</h1><h2>%s</h2><table border=\"0\">",