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 | 7802bc94e78932d24eb6658edc14d0d051246208 (patch) | |
tree | 19554d51e3ac43f8909e49965d5c8b42bcd23db3 /source/smbd/password.c | |
parent | 663c1c91bdd020e2e8266d25909db12b28fbb7d8 (diff) | |
download | samba-7802bc94e78932d24eb6658edc14d0d051246208.tar.gz samba-7802bc94e78932d24eb6658edc14d0d051246208.tar.xz samba-7802bc94e78932d24eb6658edc14d0d051246208.zip |
Small changes to register_vuid ahead of a larger restructure.
Diffstat (limited to 'source/smbd/password.c')
-rw-r--r-- | source/smbd/password.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/password.c b/source/smbd/password.c index a05735b4d76..6f5c7508a4c 100644 --- a/source/smbd/password.c +++ b/source/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++; |