coldfusion authenticate using active directory ldap
Posted on 2014-07-29
Hi experts. I am using Coldfusion 5 on IIS6 server and SQL SERVER 2000.
Question: In the past, I would have a table of username and passwords and i would have a login page that queries the database for the username and password to allow a user to logon. But this time, instead of a having a login form, I would like the workstation use the network login and authenticate in Active DIrectory.
Please show me a full code example that will:
1) authenticate a user to Active Directory.
2) if user is authenticated, then redirect them to the application's main page, else redirect them to a page that says that they can't be authenticated so contact an administrator.