diff options
author | Volker Lendecke <vl@samba.org> | 2008-04-29 13:43:10 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-05-05 18:28:58 +0200 |
commit | aa2299d42adf4d27e707ac755e07be70d0af1bb4 (patch) | |
tree | 762f549e9627f61759d6ffec443f91f5785e9174 /source/smbd/password.c | |
parent | 51d5d512f28eadc74eced43e5e7f4e5bdff3ff69 (diff) | |
download | samba-aa2299d42adf4d27e707ac755e07be70d0af1bb4.tar.gz samba-aa2299d42adf4d27e707ac755e07be70d0af1bb4.tar.xz samba-aa2299d42adf4d27e707ac755e07be70d0af1bb4.zip |
Remove the unix token info from "struct user_struct"
Diffstat (limited to 'source/smbd/password.c')
-rw-r--r-- | source/smbd/password.c | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/source/smbd/password.c b/source/smbd/password.c index 2636438d5d3..c5c0245444f 100644 --- a/source/smbd/password.c +++ b/source/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++; |