* Sysconfig commands for specifying where the LDAP server lives
[citadel.git] / citadel / control.c
index 01d2e9d80e568601f837e51232589d2bdf6f8624..207291faf45be9bf7a4f91c01c658b04d2a3ea71 100644 (file)
@@ -196,6 +196,13 @@ void cmd_conf(char *argbuf)
                cprintf("%d\n", config.c_disable_newu);
                cprintf("%d\n", config.c_aide_mailboxes);
                cprintf("%d\n", config.c_purge_hour);
+#ifdef HAVE_LDAP
+               cprintf("%s\n", config.c_ldap_host);
+               cprintf("%d\n", config.c_ldap_port);
+#else
+               cprintf("\n");
+               cprintf("0\n");
+#endif
                cprintf("000\n");
        }
 
@@ -335,6 +342,15 @@ void cmd_conf(char *argbuf)
                                        config.c_purge_hour = atoi(buf);
                                }
                                break;
+#ifdef HAVE_LDAP
+                       case 32:
+                               safestrncpy(config.c_ldap_host, buf,
+                                           sizeof config.c_ldap_host);
+                               break;
+                       case 33:
+                               config.c_ldap_port = atoi(buf);
+                               break;
+#endif
                        }
                        ++a;
                }