diff options
author | Jeremy Allison <jra@samba.org> | 2009-09-24 15:44:28 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-09-24 15:44:28 -0700 |
commit | 536c4dd2d69f9a35547c0ce77b47c4f0b03aa5ac (patch) | |
tree | 97c6fdb2c4ecb7bee1b77accd6411fc679c1b046 /source3/auth | |
parent | 4f10aa59730b44fc4328daca3e2e43693fc1b69f (diff) | |
download | samba-536c4dd2d69f9a35547c0ce77b47c4f0b03aa5ac.tar.gz samba-536c4dd2d69f9a35547c0ce77b47c4f0b03aa5ac.tar.bz2 samba-536c4dd2d69f9a35547c0ce77b47c4f0b03aa5ac.zip |
Revert b39c390280d1f268e2550c731057aec550a3f086 - casts should not
be here.
Jeremy.
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/auth/auth.c b/source3/auth/auth.c index b445987ee2..ce8722a1b4 100644 --- a/source3/auth/auth.c +++ b/source3/auth/auth.c @@ -455,7 +455,7 @@ NTSTATUS make_auth_context_subsystem(struct auth_context **auth_context) NTSTATUS nt_status; if (lp_auth_methods() - && !(auth_method_list = (char **) str_list_copy(talloc_tos(), + && !(auth_method_list = str_list_copy(talloc_tos(), lp_auth_methods()))) { return NT_STATUS_NO_MEMORY; } @@ -465,13 +465,13 @@ NTSTATUS make_auth_context_subsystem(struct auth_context **auth_context) { case SEC_DOMAIN: DEBUG(5,("Making default auth method list for security=domain\n")); - auth_method_list = (char **) str_list_make_v3( + auth_method_list = str_list_make_v3( talloc_tos(), "guest sam winbind:ntdomain", NULL); break; case SEC_SERVER: DEBUG(5,("Making default auth method list for security=server\n")); - auth_method_list = (char **) str_list_make_v3( + auth_method_list = str_list_make_v3( talloc_tos(), "guest sam smbserver", NULL); break; @@ -479,36 +479,36 @@ NTSTATUS make_auth_context_subsystem(struct auth_context **auth_context) if (lp_encrypted_passwords()) { if ((lp_server_role() == ROLE_DOMAIN_PDC) || (lp_server_role() == ROLE_DOMAIN_BDC)) { DEBUG(5,("Making default auth method list for DC, security=user, encrypt passwords = yes\n")); - auth_method_list = (char **) str_list_make_v3( + auth_method_list = str_list_make_v3( talloc_tos(), "guest sam winbind:trustdomain", NULL); } else { DEBUG(5,("Making default auth method list for standalone security=user, encrypt passwords = yes\n")); - auth_method_list = (char **) str_list_make_v3( + auth_method_list = str_list_make_v3( talloc_tos(), "guest sam", NULL); } } else { DEBUG(5,("Making default auth method list for security=user, encrypt passwords = no\n")); - auth_method_list = (char **) str_list_make_v3( + auth_method_list = str_list_make_v3( talloc_tos(), "guest unix", NULL); } break; case SEC_SHARE: if (lp_encrypted_passwords()) { DEBUG(5,("Making default auth method list for security=share, encrypt passwords = yes\n")); - auth_method_list = (char **) str_list_make_v3( + auth_method_list = str_list_make_v3( talloc_tos(), "guest sam", NULL); } else { DEBUG(5,("Making default auth method list for security=share, encrypt passwords = no\n")); - auth_method_list = (char **) str_list_make_v3( + auth_method_list = str_list_make_v3( talloc_tos(), "guest unix", NULL); } break; case SEC_ADS: DEBUG(5,("Making default auth method list for security=ADS\n")); - auth_method_list = (char **) str_list_make_v3( + auth_method_list = str_list_make_v3( talloc_tos(), "guest sam winbind:ntdomain", NULL); break; |