]> code.citadel.org Git - citadel.git/commitdiff
* Addition of ENABLE_UNIX_AUTH environment variable
authorArt Cancro <ajc@citadel.org>
Thu, 21 Dec 2006 03:26:22 +0000 (03:26 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 21 Dec 2006 03:26:22 +0000 (03:26 +0000)
  for selection of auth mode in batch setup

citadel/setup.c

index b1c6487db1bec58e7a1260110d2490b81a5d7c8e..67be1e6c38d218a34f8292bfcc771a9c17a22293 100644 (file)
@@ -731,7 +731,17 @@ void edit_value(int curr)
                break;
 
        case 5:
-               set_bool_val(curr, &config.c_auth_mode);
+               if (getenv("ENABLE_UNIX_AUTH")) {
+                       if (!strcasecmp(getenv("ENABLE_UNIX_AUTH"), "yes")) {
+                               config.c_auth_mode = 1;
+                       }
+                       else {
+                               config.c_auth_mode = 0;
+                       }
+               }
+               else {
+                       set_bool_val(curr, &config.c_auth_mode);
+               }
                break;
 
        }