]> code.citadel.org Git - citadel.git/blobdiff - citadel/server_main.c
chkpwd is now a daemon that is started by citserver
[citadel.git] / citadel / server_main.c
index 7f9551ebc8bec39dfbbc10a4b409291fcb24c1b7..f27baeb6073ab28d9f3a5a6d7480cae3695677bf 100644 (file)
@@ -236,6 +236,13 @@ int main(int argc, char **argv)
        size = strlen(ctdl_home_directory) + 9;
        initialize_server_extensions();
 
+       /*
+        * If we need host auth, start our chkpwd daemon.
+        */
+       if (config.c_auth_mode == 1) {
+               start_chkpwd_daemon();
+       }
+
        /*
         * Now that we've bound the sockets, change to the Citadel user id and its
         * corresponding group ids