s3:pdb_ldap: optimize ldapsam_alias_memberships() and cache ldap searches.
authorStefan Metzmacher <metze@samba.org>
Wed, 3 Feb 2010 10:32:41 +0000 (11:32 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 15 Feb 2010 13:46:55 +0000 (14:46 +0100)
commitadaaf2cda06fc32045b2e71b278c52b50f2d46e6
treecb10d50cf104c2ca0b931a3b16840a7384e73201
parent9cae496868261e0f21add61df9c86c5089d39d67
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)
(cherry picked from commit cb31c1df92b195b3fb80b6e21bfba83b8cd867fd)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 8f1c7c117b3bca058024daa34f777efa5ece88f8)
source3/include/smbldap.h
source3/passdb/pdb_ldap.c