1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

s3:auth: add reinit_guest_session_info()

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13944

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Ralph Boehme 2019-05-16 12:42:29 +02:00 committed by Andrew Bartlett
parent 9684345254
commit 8096cc7eb2
2 changed files with 12 additions and 0 deletions

View File

@ -1721,6 +1721,17 @@ bool init_guest_session_info(TALLOC_CTX *mem_ctx)
return true;
}
bool reinit_guest_session_info(TALLOC_CTX *mem_ctx)
{
TALLOC_FREE(guest_info);
TALLOC_FREE(guest_server_info);
TALLOC_FREE(anonymous_info);
DBG_DEBUG("Reinitialing guest info\n");
return init_guest_session_info(mem_ctx);
}
NTSTATUS make_server_info_guest(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info **server_info)
{

View File

@ -271,6 +271,7 @@ NTSTATUS make_session_info_from_username(TALLOC_CTX *mem_ctx,
bool is_guest,
struct auth_session_info **session_info);
bool init_guest_session_info(TALLOC_CTX *mem_ctx);
bool reinit_guest_session_info(TALLOC_CTX *mem_ctx);
NTSTATUS init_system_session_info(TALLOC_CTX *mem_ctx);
bool session_info_set_session_key(struct auth_session_info *info,
DATA_BLOB session_key);