From 60d315cb725ea3dfab010808c4ff4181f1f30255 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 30 Sep 2001 04:28:43 +0000 Subject: Small changes to register_vuid ahead of a larger restructure. (This used to be commit 7802bc94e78932d24eb6658edc14d0d051246208) --- source3/smbd/password.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/smbd/password.c') 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++; -- cgit