passdb: fix NT_STATUS_NO_SUCH_GROUP
commit834d1f653fefa62ad212ee70c7cf793d17fb720b
authorArvid Requate <requate@univention.de>
Thu, 17 Jan 2013 15:44:28 +0000 (17 16:44 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 1 Sep 2014 19:34:11 +0000 (1 21:34 +0200)
tree2d0320750e58424f22594196f6ef4e0c38f51fb3
parent9bac84f9fc2943a546099db04a8e0322493ae365
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