summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2001-12-08 23:56:58 +0000
committerJean-François Micouleau <jfm@samba.org>2001-12-08 23:56:58 +0000
commit139c46eced7a99fc88d63c4f00b9626ff3acfa19 (patch)
treeb57895ebd187d172fb488bcf1a20d2d63a20c409 /source3/rpc_server
parenta211fde02b32c12732f02f736ff3fc9490c982cb (diff)
downloadsamba-139c46eced7a99fc88d63c4f00b9626ff3acfa19.tar.gz
samba-139c46eced7a99fc88d63c4f00b9626ff3acfa19.tar.bz2
samba-139c46eced7a99fc88d63c4f00b9626ff3acfa19.zip
Fix domain logon that I broke 3 days ago.
And it's in sync with the docs, %U is really replaced by the name the user asked. Whereas in 2.2 that's false, %U is replaced by the name the user was mapped to. J.F. (This used to be commit 39f2b23347011acabe9dd3ab15025022da352b74)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_netlog_nt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c
index d15175d4ae..8092488652 100644
--- a/source3/rpc_server/srv_netlog_nt.c
+++ b/source3/rpc_server/srv_netlog_nt.c
@@ -499,6 +499,7 @@ NTSTATUS _net_sam_logon(pipes_struct *p, NET_Q_SAM_LOGON *q_u, NET_R_SAM_LOGON *
fstring nt_username, nt_domain, nt_workstation;
auth_usersupplied_info *user_info = NULL;
auth_serversupplied_info *server_info = NULL;
+ extern userdom_struct current_user_info;
usr_info = (NET_USER_INFO_3 *)talloc(p->mem_ctx, sizeof(NET_USER_INFO_3));
if (!usr_info)
@@ -555,7 +556,9 @@ NTSTATUS _net_sam_logon(pipes_struct *p, NET_Q_SAM_LOGON *q_u, NET_R_SAM_LOGON *
DEBUG(3,("User:[%s@%s] Requested Domain:[%s]\n", nt_username,
nt_workstation, nt_domain));
-
+
+ pstrcpy(current_user_info.smb_name, nt_username);
+
/*
* Convert to a UNIX username.
*/