summaryrefslogtreecommitdiff
path: root/source3/include/smbldap.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-02-03 11:32:41 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-08 11:23:24 +0100
commit49ace81e19de231825216cbf07c7422687131bb6 (patch)
tree62de0a9351e0e1b2e34fd96f7cd9c30e396537fb /source3/include/smbldap.h
parent25038fa85ff69962ca0975f31802218a897aa1ec (diff)
downloadsamba-49ace81e19de231825216cbf07c7422687131bb6.tar.gz
samba-49ace81e19de231825216cbf07c7422687131bb6.tar.bz2
samba-49ace81e19de231825216cbf07c7422687131bb6.zip
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
Diffstat (limited to 'source3/include/smbldap.h')
-rw-r--r--source3/include/smbldap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/smbldap.h b/source3/include/smbldap.h
index e3b03d4948..ec0e9f5c18 100644
--- a/source3/include/smbldap.h
+++ b/source3/include/smbldap.h
@@ -196,6 +196,11 @@ struct ldapsam_privates {
/* ldap server location parameter */
char *location;
+
+ struct {
+ char *filter;
+ LDAPMessage *result;
+ } search_cache;
};
/* Functions shared between pdb_ldap.c and pdb_nds.c. */