Previous Topic

Next Topic

Book Contents

Connect Elements Example: LDAP

The following example shows an LDAP verifier establishing up to 25 simultaneous connections to the LDAP server on host 1.2.3.4. If an attempt to connect to that LDAP server fails, only then will a connection to 1.2.3.5 be attempted. Thereafter, when new connections are needed, 1.2.3.4 will still be tried first, but the established connection to 1.2.3.5 will remain in the pool for jobs to use.

If an attempt to establish a connection takes longer than five seconds, it is considered a failed connection attempt. Likewise, if an established connection does not respond for more than five seconds, that connection is shut down. When enumerating, the first available connection in the pool of cached connections is chosen, and that connection alone is used to perform the entire enumeration procedure:

<Vrfy version = "101.4635"

name = "My LDAP Verifier"

uid = "64378E86-A459-11DD-1273-09173F13E4C5">

<LDAP>

<BackendMax>25</BackendMax>

<Host>1.2.3.4</Host>

<Host>1.2.3.5</Host>

<Timeout>5</Timeout>

</LDAP>

</Vrfy>