From 67bb1d2338b0d5ba3f8a4754ff1479cd42cfb051 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 10 Mar 2004 16:40:41 +0000 Subject: [PATCH] Remove expanding sids from smbd, this will be done in winbindd. Volker --- source/auth/auth_util.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/source/auth/auth_util.c b/source/auth/auth_util.c index 871b399b86d..b21b00ca8d8 100644 --- a/source/auth/auth_util.c +++ b/source/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