1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-22 02:50:28 +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>
(cherry picked from commit 8096cc7eb2b36b074ff17a52dc3540be4ecff6bb)
This commit is contained in:
Ralph Boehme 2019-05-16 12:42:29 +02:00 committed by Karolin Seeger
parent 29e402f583
commit 71c33811c8
2 changed files with 12 additions and 0 deletions

View File

@ -1756,6 +1756,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

@ -273,6 +273,7 @@ NTSTATUS make_session_info_from_username(TALLOC_CTX *mem_ctx,
struct auth_session_info *copy_session_info(TALLOC_CTX *mem_ctx,
const struct auth_session_info *src);
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);