[hobbit] LDAP Test

Henrik Stoerner henrik at hswn.dk
Tue Nov 14 23:41:33 CET 2006


On Tue, Nov 14, 2006 at 04:16:47PM -0600, James Wade wrote:
> I've tried this:
> 
> ldap://systemA:389/ou=my,o=test,st=tx,c=us ldaplogin=ldapuser:passwdd

Do read the man-page. LDAP URL's are notoriously complex beasts; you
would need something like

  ldap://systemA:389/ou=my,o=test,st=tx,c=us??sub?(uid=thomsonm)

"sub" is the "scope" of the search and "uid=thomsonm" is the search criteria 
used to pick a single record from the directory (the "search filter" in LDAP 
lingo). The exact syntax is:

       ldap://hostport/dn[?attrs[?scope[?filter[?exts]]]]
		Check for an LDAP service by performing an LDAP request.
		This tag is in the form of an  LDAP  URI (cf.  RFC  2255).  
		This  type of LDAP test requires that bbtest-net(1) was 
		built with support for LDAP, e.g. via the OpenLDAP library.  
		The components of the LDAP URI are: 
		  * hostport is a host name with an optional ":portnumber"
		  * dn is the search base
		  * attrs is a comma separated list of attributes to request
		  * scope is one of these three strings:
		      base one sub (default=base)
		  * filter is filter
		  * exts are recognized set of LDAP and/or API extensions.


Regards,
Henrik




More information about the Xymon mailing list