passdb: fix NT_STATUS_NO_SUCH_GROUP
commit7ff8102d3e3f4beec4046bfa473cedc608a705b4
authorArvid Requate <requate@univention.de>
Thu, 17 Jan 2013 15:44:28 +0000 (17 16:44 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Sep 2014 18:39:19 +0000 (2 20:39 +0200)
treea0b112bff315edef9973e584cd4b01986ff7e04a
parent8c97d9a2c1724dfac0c3de08502d247c72ca1825
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