diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-09-17 15:31:28 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-14 02:35:04 +0000 |
commit | 170b345e0c688b178eb37a73a8110dec68a8ae31 (patch) | |
tree | 79e5191ba2681c55e8846cd301662b8cc0749ede /source3/auth/token_util.c | |
parent | 58cf83732a3af2cf2098b1b2108e4b5f36e8fa9e (diff) | |
download | samba-170b345e0c688b178eb37a73a8110dec68a8ae31.tar.gz samba-170b345e0c688b178eb37a73a8110dec68a8ae31.tar.bz2 samba-170b345e0c688b178eb37a73a8110dec68a8ae31.zip |
s3-auth Use security_token_debug() from common code
This prints the security token including the privileges as strings
instead of just a bitmap.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/auth/token_util.c')
-rw-r--r-- | source3/auth/token_util.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index 17078d1e96..1a7c4816e8 100644 --- a/source3/auth/token_util.c +++ b/source3/auth/token_util.c @@ -642,32 +642,6 @@ static NTSTATUS finalize_local_nt_token(struct security_token *result, } /**************************************************************************** - prints a struct security_token to debug output. -****************************************************************************/ - -void debug_nt_user_token(int dbg_class, int dbg_lev, struct security_token *token) -{ - size_t i; - - if (!token) { - DEBUGC(dbg_class, dbg_lev, ("NT user token: (NULL)\n")); - return; - } - - DEBUGC(dbg_class, dbg_lev, - ("NT user token of user %s\n", - sid_string_dbg(&token->sids[0]) )); - DEBUGADDC(dbg_class, dbg_lev, - ("contains %lu SIDs\n", (unsigned long)token->num_sids)); - for (i = 0; i < token->num_sids; i++) - DEBUGADDC(dbg_class, dbg_lev, - ("SID[%3lu]: %s\n", (unsigned long)i, - sid_string_dbg(&token->sids[i]))); - - DEBUGADDC(dbg_class, dbg_lev,("Privilege mask: 0x%llx\n", (unsigned long long)token->privilege_mask)); -} - -/**************************************************************************** prints a UNIX 'token' to debug output. ****************************************************************************/ |