* Bumped version number to 7.01
[citadel.git] / citadel / setup.c
index 114323eeab3fc18fc7bdd73d61b2ffa10671ae32..6e3640f69aa96a369dbddc6d7be8fc518a8ad9f8 100644 (file)
@@ -34,7 +34,7 @@
 #endif
 
 
-#define MAXSETUP 4     /* How many setup questions to ask */
+#define MAXSETUP 5     /* How many setup questions to ask */
 
 #define UI_TEXT                0       /* Default setup type -- text only */
 #define UI_DIALOG      2       /* Use the 'dialog' program */
@@ -57,6 +57,7 @@ char *setup_titles[] =
        "Citadel User ID",
        "Server IP address",
        "Server port number",
+       "Authentication mode"
 };
 
 
@@ -103,6 +104,15 @@ char *setup_text[] = {
 "of Citadel on the same computer and there is something else\n"
 "already using port 504.\n",
 
+"Normally, a Citadel system uses a 'black box' authentication mode.\n"
+"This means that users do not have accounts or home directories on\n"
+"the underlying host system -- Citadel manages its own user database.\n"
+"However, if you wish to override this behavior, you can enable the\n"
+"host based authentication mode which is traditional for Unix systems.\n"
+"Do you want to do this?  Enter 0 for black box authentication mode,\n"
+"or 1 for host authentication mode.   FIXME this is badly worded,\n"
+"rewrite it and offer a better dialog mode.\n"
+
 };
 
 struct config config;
@@ -837,6 +847,10 @@ void edit_value(int curr)
                set_int_val(curr, &config.c_port_number);
                break;
 
+               /* FIXME we need a set_bool_val() function */
+       case 5:
+               set_int_val(curr, &config.c_auth_mode);
+               break;
 
        }
 }