diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-09-30 04:28:43 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-09-30 04:28:43 +0000 |
commit | 60d315cb725ea3dfab010808c4ff4181f1f30255 (patch) | |
tree | fecf10d1bc87d0d111eb16aa0e2fea4df25cef33 | |
parent | 99b9f808525e947a9f1f3a75ea4f498cbc41e682 (diff) | |
download | samba-60d315cb725ea3dfab010808c4ff4181f1f30255.tar.gz samba-60d315cb725ea3dfab010808c4ff4181f1f30255.tar.bz2 samba-60d315cb725ea3dfab010808c4ff4181f1f30255.zip |
Small changes to register_vuid ahead of a larger restructure.
(This used to be commit 7802bc94e78932d24eb6658edc14d0d051246208)
-rw-r--r-- | source3/smbd/password.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index a05735b4d7..6f5c7508a4 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -246,13 +246,13 @@ int register_vuid(uid_t uid,gid_t gid, char *unix_name, char *requested_name, /* Find all the groups this uid is in and store them. Used by become_user() */ - initialise_groups(unix_name, uid, gid); + initialise_groups(vuser->user.unix_name, vuser->uid, vuser->gid); get_current_groups( &vuser->n_groups, &vuser->groups); /* Create an NT_USER_TOKEN struct for this user. */ - vuser->nt_user_token = create_nt_token(uid,gid, vuser->n_groups, vuser->groups, guest); + vuser->nt_user_token = create_nt_token(vuser->uid, vuser->gid, vuser->n_groups, vuser->groups, guest); - DEBUG(3,("uid %d registered to name %s\n",(int)uid,unix_name)); + DEBUG(3,("uid %d registered to name %s\n",(int)vuser->uid,vuser->user.unix_name)); next_vuid++; num_validated_vuids++; |