passdb: fix NT_STATUS_NO_SUCH_GROUP
authorArvid Requate <requate@univention.de>
Thu, 17 Jan 2013 15:44:28 +0000 (16:44 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 25 Aug 2014 21:08:12 +0000 (23:08 +0200)
commit7f44432fb0b17c1c7cdda3d56c2cc132d25d9397
treef1684aa06e8f11197685c913566e179251a83bfb
parent6174bfafe7c8d3e424869c08077ae1deb002de03
passdb: fix NT_STATUS_NO_SUCH_GROUP

Share options like "force group" and "valid users = @group1"
triggered a NT_STATUS_NO_SUCH_GROUP. While the group was found in
the SAM backend, its objectclass was not retrived.

This fix also revealed a talloc access after free in the group
branch of pdb_samba_dsdb_getgrfilter.

[Bug 9570] Access failure for shares with "force group" or "valid users = @group"

https://bugzilla.samba.org/show_bug.cgi?id=9570

Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/passdb/pdb_samba_dsdb.c