mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Even when looking up a users groups via winbindd even if the lookup for
the list of groups a user is in succeeds via winbind, we must allow the lookup of the group name -> gid we are checking if the user is a member of to go via winbind or /etc/group - as it may be a group on the local box we are checking against. This is a subtle one..... Jeremy.
This commit is contained in:
parent
c3e4ac9a2d
commit
4ffda462b9
@ -298,10 +298,10 @@ failed with error %s\n", strerror(errno) ));
|
||||
|
||||
/*
|
||||
* Now we have the gid list for this user - convert the gname
|
||||
* to a gid_t via winbind and do the comparison.
|
||||
* to a gid_t via either winbind or the local UNIX lookup and do the comparison.
|
||||
*/
|
||||
|
||||
if (!winbind_nametogid(&gid, gname)) {
|
||||
if ((gid = nametogid(gname)) == (gid_t)-1) {
|
||||
DEBUG(0,("user_in_winbind_group_list: winbind_lookup_name for group %s failed.\n",
|
||||
gname ));
|
||||
goto err;
|
||||
|
Loading…
Reference in New Issue
Block a user