summaryrefslogtreecommitdiffstats
path: root/source/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-20 13:26:31 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-20 13:26:31 +0000
commit799ac01fe08a338e4e94289f5d6767ebf905c1fa (patch)
treeb74353554607f980c23fdebb6ee4d205a0a3081b /source/smbd
parent6d0b3d051f8f74ea6235173a89e96f5934aff4f3 (diff)
downloadsamba-799ac01fe08a338e4e94289f5d6767ebf905c1fa.tar.gz
samba-799ac01fe08a338e4e94289f5d6767ebf905c1fa.tar.xz
samba-799ac01fe08a338e4e94289f5d6767ebf905c1fa.zip
Kill off another ugly wart from the side of the passdb subsystem.
This time its the pdb_getsampwuid() function - which was only being used by the SAMR rpc subsystem to gain a 'user session key'. This 'user session key' is actually generated at login time, and the other changes here simply move that data around. This also means that (when I check some details) we will be able to use the user session key, even when we are not actually the DC, becouse its one of the components of the info3 struct returned on logon. Andrew Bartlett
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/password.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/smbd/password.c b/source/smbd/password.c
index 3e942e6f995..27bc15d25a0 100644
--- a/source/smbd/password.c
+++ b/source/smbd/password.c
@@ -265,6 +265,8 @@ int register_vuid(auth_serversupplied_info *server_info, char *smb_name)
}
}
+ memcpy(vuser->session_key, server_info->session_key, sizeof(vuser->session_key));
+
DEBUG(10,("register_vuid: (%u,%u) %s %s %s guest=%d\n",
(unsigned int)vuser->uid,
(unsigned int)vuser->gid,