Pete Freitag Pete Freitag

Testing OpenLDAP

Updated on December 07, 2023
By Pete Freitag
coldfusion

If you ever need to test LDAP stuff the OpenLDAP project runs a test server at ldap.openldap.org. It only has a few entries in it but it can be handy for building examples, or testing.

Here's how you would query/search the server in ColdFusion with cfldap:

<cfldap server="ldap.openldap.org" 
       action="query"
       name="results"
       start="dc=openldap,dc=org"
       attributes="cn,sn,givenName,mail,st,l,ou">
	   
<cfdump var="#results#">

Here's some more info about the service.



ldap openldap cfldap testing

Testing OpenLDAP was first published on March 03, 2006.


Fixinator

The Fixinator Code Security Scanner for ColdFusion & CFML is an easy to use security tool that every CF developer can use. It can also easily integrate into CI for automatic scanning on every commit.


Try Fixinator

CFBreak
The weekly newsletter for the CFML Community