diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-12-23 03:00:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:07:36 -0500 |
commit | 9be2e63315393f6e94cdd01a507b16768b0d90db (patch) | |
tree | ea095986949f83b20e95d5ad68a2d38e0717cc71 /source4/auth/auth_util.c | |
parent | ae42636167f82fee7fb38338dec605521162b5c2 (diff) | |
download | samba-9be2e63315393f6e94cdd01a507b16768b0d90db.tar.gz samba-9be2e63315393f6e94cdd01a507b16768b0d90db.tar.bz2 samba-9be2e63315393f6e94cdd01a507b16768b0d90db.zip |
r4339: - rename auth_guest to auth_anonymous
- don't use static const strings in the server_info
- fix segfault when auth_sam gets "" as username
metze
(This used to be commit 7fcbd483d4977cf6483f34ddd28e6c0182897ba2)
Diffstat (limited to 'source4/auth/auth_util.c')
-rw-r--r-- | source4/auth/auth_util.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/source4/auth/auth_util.c b/source4/auth/auth_util.c index 2b6d5324ee..9af4410a93 100644 --- a/source4/auth/auth_util.c +++ b/source4/auth/auth_util.c @@ -431,57 +431,6 @@ NTSTATUS make_server_info(const TALLOC_CTX *mem_ctx, } /*************************************************************************** - Make (and fill) a user_info struct for a guest login. -***************************************************************************/ -NTSTATUS make_server_info_guest(TALLOC_CTX *mem_ctx, struct auth_serversupplied_info **server_info) -{ - NTSTATUS nt_status; - - nt_status = make_server_info(mem_ctx, server_info, ""); - - if (!NT_STATUS_IS_OK(nt_status)) { - return nt_status; - } - - (*server_info)->guest = True; - - (*server_info)->user_sid = dom_sid_parse_talloc((*server_info), SID_NT_ANONYMOUS); - (*server_info)->primary_group_sid = dom_sid_parse_talloc((*server_info), SID_BUILTIN_GUESTS); - (*server_info)->n_domain_groups = 0; - (*server_info)->domain_groups = NULL; - - /* annoying, but the Guest really does have a session key, - and it is all zeros! */ - (*server_info)->user_session_key = data_blob_talloc(*server_info, NULL, 16); - (*server_info)->lm_session_key = data_blob_talloc(*server_info, NULL, 16); - - data_blob_clear(&(*server_info)->user_session_key); - data_blob_clear(&(*server_info)->lm_session_key); - - (*server_info)->account_name = ""; - (*server_info)->domain = ""; - (*server_info)->full_name = "Anonymous"; - (*server_info)->logon_script = ""; - (*server_info)->profile_path = ""; - (*server_info)->home_directory = ""; - (*server_info)->home_drive = ""; - - (*server_info)->last_logon = 0; - (*server_info)->last_logoff = 0; - (*server_info)->acct_expiry = 0; - (*server_info)->last_password_change = 0; - (*server_info)->allow_password_change = 0; - (*server_info)->force_password_change = 0; - - (*server_info)->logon_count = 0; - (*server_info)->bad_password_count = 0; - - (*server_info)->acct_flags = ACB_NORMAL; - - return nt_status; -} - -/*************************************************************************** Make a server_info struct from the info3 returned by a domain logon ***************************************************************************/ |