Jesse
Jesse

Reputation: 469

Coldfusion LDAP Authentication issue / domain prefix

I am currently setting up a dev environment which is an exact copy of our prod environment. The problem is when I try to authenticate a user by using CFLDAP tag in the dev environment, it won't let me authenticate the user without prefixing the username with the domain name while in the prod environment we don't have to prefix the username with the domain name. See example code below:

Details:

Any help is greatly appreciated.

Upvotes: 1

Views: 1637

Answers (1)

Goyuix
Goyuix

Reputation: 24370

I have found when using CFLDAP, that using NT style logins for the username will inevitably cause problems and inconsistencies. You are really much better off using the distinguishedName attribute (DN) for a given user:

CN=User,OU=Users,DC=domain,DC=com

Of course your DN will likely be different - but hopefully that illustrates the point.

Upvotes: 1

Related Questions