Lines Matching refs:gname
351 static BOOL user_in_winbind_group_list(const char *user, const char *gname, BOOL *winbind_answered)
362 if ((gid = nametogid(gname)) == (gid_t)-1) {
364 gname ));
369 DEBUG(4, ("winbind gid range not configured, therefore %s cannot be a winbind group\n", gname));
374 DEBUG(4, ("group %s is not a winbind group\n", gname));
419 * Now we have the gid list for this user - convert the gname
445 BOOL user_in_unix_group_list(const char *user,const char *gname)
451 DEBUG(10,("user_in_unix_group_list: checking user %s in group %s\n", user, gname));
459 if (strequal(gname,gidtoname(pass->pw_gid))) {
460 DEBUG(10,("user_in_unix_group_list: group %s is primary group.\n", gname ));
465 user_list = get_users_in_group(gname);
467 DEBUG(10,("user_in_unix_group_list: no such group %s\n", gname ));
488 BOOL user_in_group_list(const char *user, const char *gname, gid_t *groups, size_t n_groups)
495 gid = nametogid(gname);
510 ret = user_in_winbind_group_list(user, gname, &winbind_answered);
512 ret = user_in_unix_group_list(user, gname);
515 DEBUG(10,("user_in_group_list: user |%s| is in group |%s|\n", user, gname));