Using LDAP (or javaLDAP) in ColdFusion

We are using URLAuth within IIS to provide Authorization to our website.  This process uses a VBScript to run some code and return success or failure.  Right now, we implemented a database with a stored procedure to hit some complicated structure of tables to provide Directory/Role/Group/User association.  

PSU now provides a great resource with there main LDAP directory, where Offices/Users can create and manage their own Groups.  Therefore, the Admissions office, can have access to the Registrar's groups. 

But to make the transition easy, I wrote a page within Coldfusion to grab all the "groups" in our database and go attack the LDAP server.  This provided many LDAP calls within the same page.  The LDAP server had no issue with us hitting it many times within a short period, but Coldfusion started barfing all over the place!!

The error we were receiving was unable to create new native thread null.  After a while, I found this blog, about a similar issue.  His solution was to use javaLDAP, which the java code is provided by Novell, and there is a corresponding javaLDAP.cfc.


Comments

Popular posts from this blog

ColdFusion in an Enterprise Environment - Part 1 - Understanding how to use SubVersion (SVN)

coldfusion builder 2 extension not displaying browse button on type=projectdir

Being Thread Safe in Coldbox/Coldfusion