summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-03-10 16:40:41 +0000
committerVolker Lendecke <vlendec@samba.org>2004-03-10 16:40:41 +0000
commita70ccb3b20230c93ac14a5321f9650a10cfc8951 (patch)
tree7766d258e9e9f10e9ad113022e68c18365cbbcde /source3/auth
parent8240abca9564a87feff1783739a03bb708610271 (diff)
downloadsamba-a70ccb3b20230c93ac14a5321f9650a10cfc8951.tar.gz
samba-a70ccb3b20230c93ac14a5321f9650a10cfc8951.tar.bz2
samba-a70ccb3b20230c93ac14a5321f9650a10cfc8951.zip
Remove expanding sids from smbd, this will be done in winbindd.
Volker (This used to be commit 67bb1d2338b0d5ba3f8a4754ff1479cd42cfb051)
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index 871b399b86..b21b00ca8d 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -635,29 +635,6 @@ NT_USER_TOKEN *create_nt_token(uid_t uid, gid_t gid, int ngroups, gid_t *groups,
return token;
}
-static void add_foreign_gids(uid_t uid, gid_t gid,
- gid_t **groups, int *ngroups)
-{
- int i, dom_groups;
- DOM_SID sid;
-
- if (NT_STATUS_IS_OK(uid_to_sid(&sid, uid)))
- add_foreign_gids_from_sid(&sid, groups, ngroups);
-
- if (NT_STATUS_IS_OK(gid_to_sid(&sid, gid)))
- add_foreign_gids_from_sid(&sid, groups, ngroups);
-
- dom_groups = *ngroups;
-
- for (i=0; i<dom_groups; i++) {
-
- if (!NT_STATUS_IS_OK(gid_to_sid(&sid, (*groups)[i])))
- continue;
-
- add_foreign_gids_from_sid(&sid, groups, ngroups);
- }
-}
-
/******************************************************************************
* this function returns the groups (SIDs) of the local SAM the user is in.
* If this samba server is a DC of the domain the user belongs to, it returns
@@ -722,8 +699,6 @@ static NTSTATUS get_user_groups(const char *username, uid_t uid, gid_t gid,
}
}
- add_foreign_gids(uid, gid, unix_groups, &n_unix_groups);
-
debug_unix_user_token(DBGC_CLASS, 5, uid, gid, n_unix_groups, *unix_groups);
/* now setup the space for storing the SIDS */