[python-ldap] Querying Active Directory excessively slower than querying eDirectory
Thorsten Kampe
thorsten at thorstenkampe.de
Tue May 17 14:02:35 CEST 2011
Hi,
I have a little scripts that queries LDAP servers. Querying Active
Directory is ridiculously slower than querying eDirectory on the same
host.
This is not a connection issue - a Wireshark trace shows that both LDAP
services return the data within one second. The data returned by
eDirectory is about 560 objects (37 Kb) and by Active Directory 222
objects (19 Kb).
The query is...
# "1.1" means "no attributes"
result = connection.search_s(base, ldap.SCOPE_SUBTREE, attrlist =
['1.1'], attrsonly = True)
Is there anything to explain the results below??
Python 2.7.1 on Windows 7 SP1 (thumb drive):
eDirectory 8.8.6: 2 seconds
Active Directory: 44 seconds
Python 2.7.1 on Gentoo Linux:
eDirectory 8.8.6: 0.3 seconds
Active Directory: 440 seconds
LDAP host: Windows 2008 R2 SP1
Python LDAP 2.3.13
Thorsten
More information about the python-ldap
mailing list