summaryrefslogtreecommitdiff
path: root/source3/smbd/uid.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-07-31 15:52:44 +0200
committerAndreas Schneider <asn@samba.org>2014-01-17 14:50:30 +0100
commit5daf5407826464e650f363ca02ca3c55dce9cabc (patch)
treeb1546c7b40239ceb83673fe55fbd1e4e73a4ef9f /source3/smbd/uid.c
parentfa8c2b1578bfb94dbe229d1da889d310cb130d1e (diff)
downloadsamba-5daf5407826464e650f363ca02ca3c55dce9cabc.tar.gz
s3-smbd: Log user change information.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/smbd/uid.c')
-rw-r--r--source3/smbd/uid.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index 5e09e6b43fa..8e5e6d8a93f 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -445,6 +445,12 @@ bool smbd_become_authenticated_pipe_user(struct auth_session_info *session_info)
session_info->unix_token->ngroups, session_info->unix_token->groups,
session_info->security_token);
+ DEBUG(5, ("Impersonated user: uid=(%d,%d), gid=(%d,%d)\n",
+ (int)getuid(),
+ (int)geteuid(),
+ (int)getgid(),
+ (int)getegid()));
+
return True;
}