[PATCH] ldap connection caching (not ready!!!)

Andrew Bartlett abartlet at samba.org
Thu Oct 17 22:00:01 GMT 2002

"Stefan (metze) Metzmacher" wrote:
> Hi Andrew,
> here's the next NOT WORKING version of my ldap connection chaching patch
> there's a problem with the LM and NT passwords.
> I've got the following errors??? Can anybody test it I can't find the bug
> :-( I'm sitting here for hours now...
> btw the ldap server send's the password, I see them in ethereal. AND HEAD
> WORKS!???

A 'make clean' can do wonders...

In any case, what do you mean by 'HEAD works'?  Is your patch against
3.0 + your passdb patch or .. ?

On the patch - the 'wrapper' functions need to include a while loop.

do {
	try again()
} while (error == LDAP_SERVER_DOWN)

With appropirate sleep/backoff - see the nss_ldap code for a good

While doing a 'ping' to the server before we start catches most of the
dropout cases, it does add latency (may or may not be an issue), and we
really need to deal with it in the actual operation I think.

Andrew Bartlett

Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net

More information about the samba-technical mailing list