diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/username.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/username.c b/source3/lib/username.c index 2cf45c2a96..0665e3db79 100644 --- a/source3/lib/username.c +++ b/source3/lib/username.c @@ -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; |