diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-01-20 13:26:31 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-01-20 13:26:31 +0000 |
commit | 32101155d4a0c80faf392f56a6baa7b91847dd99 (patch) | |
tree | f5aea9ed9913002f0a0932f7b7e7e8e0dda25684 /source3/include | |
parent | 3871e970b58b917381f9bd68a7cee2c5c64332a9 (diff) | |
download | samba-32101155d4a0c80faf392f56a6baa7b91847dd99.tar.gz samba-32101155d4a0c80faf392f56a6baa7b91847dd99.tar.bz2 samba-32101155d4a0c80faf392f56a6baa7b91847dd99.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
(This used to be commit 799ac01fe08a338e4e94289f5d6767ebf905c1fa)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/auth.h | 2 | ||||
-rw-r--r-- | source3/include/ntdomain.h | 2 | ||||
-rw-r--r-- | source3/include/smb.h | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/source3/include/auth.h b/source3/include/auth.h index ed0a4e45f3..a61576fd21 100644 --- a/source3/include/auth.h +++ b/source3/include/auth.h @@ -85,7 +85,7 @@ typedef struct auth_serversupplied_info NT_USER_TOKEN *ptok; - uchar session_key[16]; + uint8 session_key[16]; uint8 first_8_lm_hash[8]; diff --git a/source3/include/ntdomain.h b/source3/include/ntdomain.h index 9c9d7a4c7a..7950119e50 100644 --- a/source3/include/ntdomain.h +++ b/source3/include/ntdomain.h @@ -200,6 +200,8 @@ typedef struct pipes_struct fstring pipe_user_name; struct current_user pipe_user; + uint8 session_key[16]; + /* * Set to true when an RPC bind has been done on this pipe. */ diff --git a/source3/include/smb.h b/source3/include/smb.h index b80e3d62ec..aa54e38797 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1629,6 +1629,8 @@ typedef struct user_struct NT_USER_TOKEN *nt_user_token; + uint8 session_key[16]; + int session_id; /* used by utmp and pam session code */ } user_struct; |