r4847: Hand over a acb_mask to pdb_setsampwent in load_sampwd_entries().
authorGünther Deschner <gd@samba.org>
Wed, 19 Jan 2005 16:13:26 +0000 (16:13 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:59 +0000 (10:53 -0500)
commit1ed62fde09f382342a396a047975fdeeea7113bb
tree046c42700ae66b2fb30cf70a192b35ff7d5eb8d2
parent8f476e5e52e4c72bbcc105bf0c4cba2c5dd3b641
r4847: Hand over a acb_mask to pdb_setsampwent in load_sampwd_entries().

This allows the ldap-backend to search much more effeciently. Machines
will be searched in the ldap_machine_suffix and users in the
ldap_users_suffix. (Note that we already use the ldap_group_suffix in
ldapsam_setsamgrent for quite some time).

Using the specific ldap-bases becomes notably important in large
domains: On my testmachine "net rpc trustdom list" has to search through
40k accounts just to list 3 interdomain-trust-accounts, similiar effects
show up the non-user query_dispinfo-calls, etc.

Also renamed all_machines to only_machines in load_sampwd_entries()
since that reflects better what is really meant.

Guenther
(This used to be commit 6394257cc721ca739bda0e320375f04506913533)
source3/include/passdb.h
source3/passdb/pdb_interface.c
source3/passdb/pdb_ldap.c
source3/passdb/pdb_mysql.c
source3/passdb/pdb_pgsql.c
source3/passdb/pdb_smbpasswd.c
source3/passdb/pdb_tdb.c
source3/passdb/pdb_xml.c
source3/rpc_server/srv_samr_nt.c
source3/smbd/lanman.c
source3/utils/pdbedit.c