From: Gerald Carter Date: Tue, 29 May 2007 13:18:57 +0000 (+0000) Subject: r23192: Remove fallback to looking up group mappings by the X-Git-Tag: samba-4.0.0alpha6~801^2~5758 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc1f6c7668037b09b9209bebc6f018bf4d3ff4f4;p=thirdparty%2Fsamba.git r23192: Remove fallback to looking up group mappings by the Unix name after discussion with Simo. (This used to be commit 6af4c1a73cdb523e5a81c15128c706a16f76c84d) --- diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index aebcbaaacfc..ee84472d785 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -612,23 +612,7 @@ BOOL lookup_global_sam_name(const char *name, int flags, uint32_t *rid, unbecome_root(); if (!ret) { - /* try to see if we can lookup a mapped - * group with the unix group name */ - - struct group *grp; - - grp = getgrnam(name); - if (!grp) { - return False; - } - - become_root(); - ret = pdb_getgrgid(&map, grp->gr_gid); - unbecome_root(); - - if (!ret) { - return False; - } + return False; } /* BUILTIN groups are looked up elsewhere */