
07-06-2004, 07:50 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
So, it exactly matches my analysis. The the delay is caused by Openldap client library! For debuging purpose, we enabled openldap LDAP and BER debug logging when the debug level of LSWS is set to "high", you can find tons of LDAP log entries in "lsws/logs/stderr.log".
I have two suggestions:
1. turn off LSWS debug logging, that will turn off Openldap debug logging as well, see how long is the delay, I bet the delay will dissappear. :roll:
2. change User DB Location to
Code:
ldap://myldap.com/dc=people,dc=myco,dc=net?userPassword?sub?(uid=$k)
to only request "userPassword" attribute, as all the other attributes are uesless for authentication, if the delay still exists, it should be much shorter and the result should be cached.
We probably will write our own asynchronize LDAP client code when we have time later.
Best Regards,
George Wang
|