s3:pdb_ldap: optimize ldapsam_alias_memberships() and cache ldap searches.
commitcb31c1df92b195b3fb80b6e21bfba83b8cd867fd
authorStefan Metzmacher <metze@samba.org>
Wed, 3 Feb 2010 10:32:41 +0000 (3 11:32 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 10 Feb 2010 08:52:52 +0000 (10 09:52 +0100)
tree672b9f194eb9d7e5826475639831412018ba0d4e
parent66a48d2226d245c373b744c7edea60b3daa57f0f
s3:pdb_ldap: optimize ldapsam_alias_memberships() and cache ldap searches.

ldapsam_alias_memberships() does the same LDAP search twice, triggered
via add_aliases() from create_local_nt_token().

This happens when no domain aliases are used.

metze
(cherry picked from commit 49ace81e19de231825216cbf07c7422687131bb6)
source3/include/smbldap.h
source3/passdb/pdb_ldap.c