s3-rpc_server use session_info to print user details
authorAndrew Bartlett <abartlet@samba.org>
Thu, 21 Jul 2011 09:29:10 +0000 (19:29 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 3 Aug 2011 08:48:02 +0000 (18:48 +1000)
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>
source3/rpc_server/dcesrv_ntlmssp.c

index 693627749c3ef39aa549e0670e280ae270849015..26f924eedfb44c8a6333860ba2137277907ad9c1 100644 (file)
@@ -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;
 }