From b717b40235b2433b26b20ced36142c250f9c411e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 7 Jun 2004 21:34:32 +0000 Subject: r1078: the dxesrv_crypto_* implementations should now explicit set the dce_conn->auth_state.session_info ( the ntlmssp one works fine, but the schannel one isn't implemented yet) this is also set by the ntvfs_ipc backend on the endpoint connect. metze (This used to be commit ad3dd1789e9f124493519cb4731d9f5a563fd051) --- source4/auth/auth_util.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'source4/auth') diff --git a/source4/auth/auth_util.c b/source4/auth/auth_util.c index c505d4a88e..24a419586d 100644 --- a/source4/auth/auth_util.c +++ b/source4/auth/auth_util.c @@ -330,7 +330,7 @@ BOOL make_user_info_guest(struct auth_usersupplied_info **user_info) prints a NT_USER_TOKEN to debug output. ****************************************************************************/ -void debug_nt_user_token(int dbg_class, int dbg_lev, NT_USER_TOKEN *token) +void debug_nt_user_token(int dbg_class, int dbg_lev, const NT_USER_TOKEN *token) { TALLOC_CTX *mem_ctx; @@ -356,6 +356,20 @@ void debug_nt_user_token(int dbg_class, int dbg_lev, NT_USER_TOKEN *token) talloc_destroy(mem_ctx); } +/**************************************************************************** + prints a NT_USER_TOKEN to debug output. +****************************************************************************/ + +void debug_session_info(int dbg_class, int dbg_lev, const struct auth_session_info *session_info) +{ + if (!session_info) { + DEBUGC(dbg_class, dbg_lev, ("Session Info: (NULL)\n")); + return; + } + + debug_nt_user_token(dbg_class, dbg_lev, session_info->nt_user_token); +} + /**************************************************************************** Create the SID list for this user. ****************************************************************************/ -- cgit