Can I specify a single user in an LDAP AD connection string?
Posted on 2010-01-11
I have several different web applications using authentication. Some connect to our AD to get user info; others have the info stored in the Web.config. For example, I have an app to update the news section of our website and I'm the only one with rights to it. I've stored my username and password for it in the Web.config. I'd like to be able to connect to AD and use that username and password for this. It doesn't matter much for me, but some other people with similar setups around the building would like to eliminate the extra username and password from their brains.
I have the attached connection string that I use to authenticate a particular app. This one only allows folks in the Parks and Recreation OU to authenticate. Is there a way to specify a user here so I'm allowing only one person and not an entire OU?
LDAP://co.frederick.va.us:789/OU=Parks and Rec,DC=co,DC=frederick,DC=va,DC=us