summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-11-26 06:21:24 +0000
committerAndrew Tridgell <tridge@samba.org>2001-11-26 06:21:24 +0000
commita131c2cfdcd4e10d85e21bcf4b3e45b99054a96c (patch)
treea0bc4c121540b03622e120454cf092f26595870f
parent2eb736f2c3cd79f9e00acf901d01445fd3ba7a68 (diff)
downloadsamba-a131c2cfdcd4e10d85e21bcf4b3e45b99054a96c.tar.gz
samba-a131c2cfdcd4e10d85e21bcf4b3e45b99054a96c.tar.bz2
samba-a131c2cfdcd4e10d85e21bcf4b3e45b99054a96c.zip
add SEC_ADS auth method
(This used to be commit b175c42080b15f27589cb6b6d61af5cbbedf5d02)
-rw-r--r--source3/auth/auth_info.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/auth/auth_info.c b/source3/auth/auth_info.c
index a68ffefb5d..8087be48f2 100644
--- a/source3/auth/auth_info.c
+++ b/source3/auth/auth_info.c
@@ -78,6 +78,11 @@ static BOOL make_auth_info_text_list(auth_authsupplied_info **auth_info, char **
auth_methods *t = NULL;
auth_methods *tmp;
int i;
+
+ if (!text_list) {
+ DEBUG(2,("No auth method list!?\n"));
+ return False;
+ }
for (;*text_list; text_list++)
{
@@ -148,6 +153,13 @@ BOOL make_auth_info_subsystem(auth_authsupplied_info **auth_info)
DEBUG(5,("Making default auth method list for security=share\n"));
auth_method_list = lp_list_make("guest local");
break;
+ case SEC_ADS:
+ DEBUG(5,("Making default auth method list for security=ADS\n"));
+ auth_method_list = lp_list_make("guest ads ntdomain local");
+ break;
+ default:
+ DEBUG(5,("Unknown auth method!\n"));
+ return False;
}
} else {
DEBUG(5,("Using specified auth order\n"));