diff options
Diffstat (limited to 'source3/web/swat.c')
-rw-r--r-- | source3/web/swat.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c index 4810d87af3..6a5b4f51f1 100644 --- a/source3/web/swat.c +++ b/source3/web/swat.c @@ -432,6 +432,7 @@ int main(int argc, char *argv[]) extern FILE *dbf; int opt; char *page; + int auth_required = 1; /* just in case it goes wild ... */ alarm(300); @@ -440,16 +441,18 @@ int main(int argc, char *argv[]) if (!dbf) dbf = stderr; - cgi_setup(SWATDIR); - - while ((opt = getopt(argc, argv,"s:")) != EOF) { + while ((opt = getopt(argc, argv,"s:a")) != EOF) { switch (opt) { case 's': pstrcpy(servicesf,optarg); break; + case 'a': + auth_required = 0; + break; } } + cgi_setup(SWATDIR, auth_required); print_header(); |