summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-09-25 09:34:43 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-09-25 09:34:43 +0000
commit2bd2b243fcdd92979ad98baea55569005df21670 (patch)
tree87910396c0775d78ba8f07f995d6e25d089d34cc /source3/smbd
parent6f67ae667aabacbfc46faadfe2bb7bbe04dd049a (diff)
downloadsamba-2bd2b243fcdd92979ad98baea55569005df21670.tar.gz
samba-2bd2b243fcdd92979ad98baea55569005df21670.tar.bz2
samba-2bd2b243fcdd92979ad98baea55569005df21670.zip
Move to common user token debugging, and ensure we always print both the
NT_TOKEN and the unix credentials - as we incresingly use the NT stuff we want to make it easy to check they don't get out of wack. Andrew Bartlett (This used to be commit a3882a19254811ace2f9545580c14ce3bd588095)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/sec_ctx.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/source3/smbd/sec_ctx.c b/source3/smbd/sec_ctx.c
index bdcdce6e14..411ece5249 100644
--- a/source3/smbd/sec_ctx.c
+++ b/source3/smbd/sec_ctx.c
@@ -287,17 +287,8 @@ void set_sec_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups, NT_USER_TOKEN
DEBUG(3, ("setting sec ctx (%u, %u) - sec_ctx_stack_ndx = %d\n",
(unsigned int)uid, (unsigned int)gid, sec_ctx_stack_ndx));
- if (ngroups) {
- int i;
-
- DEBUG(3, ("%d user groups: \n", ngroups));
- for (i = 0; i < ngroups; i++) {
- DEBUGADD(3, ("%u ", (unsigned int)groups[i]));
- }
-
- DEBUG(3, ("\n"));
- }
-
+ debug_nt_user_token(DBGC_CLASS, 5, token);
+ debug_unix_user_token(DBGC_CLASS, 5, uid, gid, ngroups, groups);
gain_root();