Website Design
Business to Business websites tailored to your customers' needs
Business to Business websites tailored to your customers' needs
Beyond designing search engine friendly websites, we help get them higher up the rankings
Find out what our clients have to say about us and the work we've done with them
Plugins and white papers can all be dowloaded
Call us on 0845 0045 033, visit our contact page, blog or case studies.
If you've got a project that you'd like to discuss, give us a ring for an impartial chat. You can also download our project specification documents to help you get started with a plan.
Internet marketing – staying ahead in a fast changing world http://t.co/gqYHHv43 2012/01/31
copyright © 2012 clickroutes.com
Aide memoire: Remote LDAP access with ColdFusion
When attempting to extract user data from Active Directory or some other LDAP server you need to have the full account details (username and password) of a user with read (and write if making updates) access to the server for the record(s) you want to retrieve. This would be supplied by a network admin or similar.
On IIS where using basic authentication, you can access CGI.AUTH_USER and CGI.AUTH_PASSWORD. This is bad practise as passwords are sent in plain text. On IIS when using integrated NT authentication only CGI.AUTH_USER is populated. On IIS with anonymous access neither field is populated. CGI.AUTH_USER uses the format DOMAIN\username.
To retrieve the information of a specific individual use the username and password of an authorised account and filter using the CGI.AUTH_USER variable. Using ColdFusion against Active Directory the format is as follows:
Getting the LDAP server address using DOS:
Some LDAP Distinguished Name (DN) Attributes:
References:
http://www.tek-tips.com/viewthread.cfm?qid=877247
http://www.houseoffusion.com/groups/cf-newbie/thread.cfm/threadid:728
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:55463
http://www.adobe.com/devnet/server_archive/articles/integrating_cf_apps_w_ms_active_directory.html#intra