[python-ldap] Querying Active Directory excessively slower than querying eDirectory
Michael Ströder
michael at stroeder.com
Tue May 17 14:14:01 CEST 2011
Thorsten,
without knowing more details one cannot really comment on this. Just wild guesses:
Something related to DNS?
Or referral chasing? (MS AD returns referrals)
Did you try to turn off automatic referral chasing?
Is the time measured only the call to connection.search_s() or does it include
connecting to the server?
Which is the search base? The search filter?
Ciao, Michael.
Thorsten Kampe wrote:
> 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