Prepared some of the authmode stuff for the imminent addition
[citadel.git] / citadel / setup.c
index e21bdcce082423866acb098c3a1017c2f971a643..fc64eb78e0586e1c998bc9075dc2a4a1100c5324 100644 (file)
@@ -785,10 +785,10 @@ void edit_value(int curr)
                {
                        if (getenv("ENABLE_UNIX_AUTH")) {
                                if (!strcasecmp(getenv("ENABLE_UNIX_AUTH"), "yes")) {
-                                       config.c_auth_mode = 1;
+                                       config.c_auth_mode = AUTHMODE_HOST;
                                }
                                else {
-                                       config.c_auth_mode = 0;
+                                       config.c_auth_mode = AUTHMODE_NATIVE;
                                }
                        }
                }