diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-02-27 23:51:25 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-02-27 23:51:25 +0000 |
commit | 276ff4df82313abcf09db2d373a4229a5b8db506 (patch) | |
tree | be32beed60d22b86ee7c21e88848e88d6c8e08b9 /source3/nsswitch/winbindd_group.c | |
parent | 9d975fa6bcf6e425cce890328be4f67534b29ba1 (diff) | |
download | samba-276ff4df82313abcf09db2d373a4229a5b8db506.tar.gz samba-276ff4df82313abcf09db2d373a4229a5b8db506.tar.bz2 samba-276ff4df82313abcf09db2d373a4229a5b8db506.zip |
this allows us to support foreign SIDs in winbindd and smbd
this means "xcopy /o" has a chance of working with ACLs that contain
ACEs that use SIDs that the Samba server has no knowledge of.
It's a bit hackish, Tim, can you look at my uid.c changes?
(This used to be commit fe2db3148587937aa7b674c1c99036d42a3776b3)
Diffstat (limited to 'source3/nsswitch/winbindd_group.c')
-rw-r--r-- | source3/nsswitch/winbindd_group.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c index 1818d992b7..c62ce54b59 100644 --- a/source3/nsswitch/winbindd_group.c +++ b/source3/nsswitch/winbindd_group.c @@ -228,10 +228,9 @@ enum winbindd_result winbindd_getgrnam(struct winbindd_cli_state *state) } /* Fill in group structure */ + sid_peek_rid(&group_sid, &group_rid); - sid_split_rid(&group_sid, &group_rid); - - if (!winbindd_idmap_get_gid_from_rid(domain->name, group_rid, &gid)) { + if (!winbindd_idmap_get_gid_from_sid(&group_sid, &gid)) { DEBUG(1, ("error converting unix gid to sid\n")); return WINBINDD_ERROR; } |