summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-21 19:29:10 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-08-03 18:48:02 +1000
commit8e50c696265fa095614628d23b438a94ecc7e2e2 (patch)
tree11c6babc4b459bcbcbcf4a1a15a7e296f843bf9d /source3
parentc9bde9ae753939710d63262917accca1dabe9a52 (diff)
downloadsamba-8e50c696265fa095614628d23b438a94ecc7e2e2.tar.gz
samba-8e50c696265fa095614628d23b438a94ecc7e2e2.tar.bz2
samba-8e50c696265fa095614628d23b438a94ecc7e2e2.zip
s3-rpc_server use session_info to print user details
This is the authoritative source for what the user was actually authenticated as. The previous message printed only what they claimed, and the DC might map this. The workstation is no longer printed in the logs, as it allows auth_ntlmssp_get_client() to be removed. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/dcesrv_ntlmssp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/rpc_server/dcesrv_ntlmssp.c b/source3/rpc_server/dcesrv_ntlmssp.c
index 693627749c..26f924eedf 100644
--- a/source3/rpc_server/dcesrv_ntlmssp.c
+++ b/source3/rpc_server/dcesrv_ntlmssp.c
@@ -127,10 +127,9 @@ NTSTATUS ntlmssp_server_get_user_info(struct auth_ntlmssp_state *ctx,
return status;
}
- DEBUG(5, (__location__ "OK: user: %s domain: %s workstation: %s\n",
- auth_ntlmssp_get_username(ctx),
- auth_ntlmssp_get_domain(ctx),
- auth_ntlmssp_get_client(ctx)));
+ DEBUG(5, (__location__ "OK: user: %s domain: %s\n",
+ (*session_info)->info->account_name,
+ (*session_info)->info->domain_name));
return NT_STATUS_OK;
}