diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-11-26 06:21:24 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-11-26 06:21:24 +0000 |
commit | b175c42080b15f27589cb6b6d61af5cbbedf5d02 (patch) | |
tree | 9765bf477d54a2b62e67c2e276e343ea45a20503 | |
parent | 48df0d2b5dee3c010c88587352554220f8b92b0f (diff) | |
download | samba-b175c42080b15f27589cb6b6d61af5cbbedf5d02.tar.gz samba-b175c42080b15f27589cb6b6d61af5cbbedf5d02.tar.xz samba-b175c42080b15f27589cb6b6d61af5cbbedf5d02.zip |
add SEC_ADS auth method
-rw-r--r-- | source/auth/auth_info.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/auth/auth_info.c b/source/auth/auth_info.c index a68ffefb5d7..8087be48f2f 100644 --- a/source/auth/auth_info.c +++ b/source/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")); |