Monitoring LDAP server (was: patch for ReconnectLDAPObject.whoami_s())

Alain Spineux aspineux at gmail.com
Fri Jan 26 23:05:12 CET 2007


Thanks for these useful details

On 1/26/07, Michael Ströder <michael at stroeder.com> wrote:
> Alain Spineux wrote:
> >
> > I use whoami_s() like a ping, to know if the server is still up.
>
> This requires support for "Who am I?" extended operation (see RFC 4532)
> at the server's side which is not implemented in all server products.
>
> > Do you know a better way ?
>
> If it's an LDAPv3 server you could simply read the rootDSE.
> Some servers implement special monitoring entries (e.g. cn=Monitor
> implemented by OpenLDAP's back-monitor).
>
> You have to think about detailed error handling.
>
> But this all depends on which requirements you have.
> How general? How many details?
>
> Ciao, Michael.
>


-- 
--
Alain Spineux
aspineux gmail com
May the sources be with you



More information about the python-ldap mailing list