summaryrefslogtreecommitdiff
path: root/source3/smbd/password.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-04-29 13:43:10 +0200
committerVolker Lendecke <vl@samba.org>2008-05-05 18:28:58 +0200
commitc6d209f8342d56adc52a6c8ab99a4a2e17d409b2 (patch)
tree33d2d3d0f011a990700c093f02268f4247cef418 /source3/smbd/password.c
parentbb3755968f5e953340edfb0b71997dddc11badb9 (diff)
downloadsamba-c6d209f8342d56adc52a6c8ab99a4a2e17d409b2.tar.gz
samba-c6d209f8342d56adc52a6c8ab99a4a2e17d409b2.tar.bz2
samba-c6d209f8342d56adc52a6c8ab99a4a2e17d409b2.zip
Remove the unix token info from "struct user_struct"
(This used to be commit aa2299d42adf4d27e707ac755e07be70d0af1bb4)
Diffstat (limited to 'source3/smbd/password.c')
-rw-r--r--source3/smbd/password.c26
1 files changed, 4 insertions, 22 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 2636438d5d..c5c0245444 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -269,24 +269,6 @@ int register_existing_vuid(uint16 vuid,
talloc_steal(vuser, vuser->server_info);
- /* the next functions should be done by a SID mapping system (SMS) as
- * the new real sam db won't have reference to unix uids or gids
- */
-
- vuser->uid = server_info->uid;
- vuser->gid = server_info->gid;
-
- vuser->n_groups = server_info->n_groups;
- if (vuser->n_groups) {
- if (!(vuser->groups = (gid_t *)talloc_memdup(vuser,
- server_info->groups,
- sizeof(gid_t)*vuser->n_groups))) {
- DEBUG(0,("register_existing_vuid: "
- "failed to talloc_memdup vuser->groups\n"));
- goto fail;
- }
- }
-
vuser->guest = server_info->guest;
fstrcpy(vuser->user.unix_name, server_info->unix_name);
@@ -301,8 +283,8 @@ int register_existing_vuid(uint16 vuid,
vuser->session_key = session_key;
DEBUG(10,("register_existing_vuid: (%u,%u) %s %s %s guest=%d\n",
- (unsigned int)vuser->uid,
- (unsigned int)vuser->gid,
+ (unsigned int)vuser->server_info->uid,
+ (unsigned int)vuser->server_info->gid,
vuser->user.unix_name, vuser->user.smb_name,
vuser->user.domain, vuser->guest ));
@@ -317,8 +299,8 @@ int register_existing_vuid(uint16 vuid,
}
DEBUG(3,("register_existing_vuid: UNIX uid %d is UNIX user %s, "
- "and will be vuid %u\n",
- (int)vuser->uid,vuser->user.unix_name, vuser->vuid));
+ "and will be vuid %u\n", (int)vuser->server_info->uid,
+ vuser->user.unix_name, vuser->vuid));
next_vuid++;
num_validated_vuids++;