s3:passdb: only use gid_to_sid() result if the result is a group of our local sam
authorStefan Metzmacher <metze@samba.org>
Tue, 9 Feb 2010 11:57:01 +0000 (12:57 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Feb 2010 11:02:47 +0000 (12:02 +0100)
commit5b5df3d1223d15d4fde9a2a2db83c60aaa266ca4
treec344c9f690c7d58407d4eb32c4235c332f51b61c
parent0b2dd730a52ae9dbd622c50fb70492398f6503d9
s3:passdb: only use gid_to_sid() result if the result is a group of our local sam

Otherwise retry with pdb_gid_to_sid().

metze
(cherry picked from commit 4dc2be2264926fe415e4e40e212f94793c9831d1)

Last seven patches address bug #7116 (pdb_ldap performance fixes).
(cherry picked from commit 8946a47fcebe57f459c59ee2cb163e15901ff996)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/passdb/pdb_get_set.c