View Single Post
 
Old January 4th, 2013, 07:28 AM
philip_cole philip_cole is offline
Friend of Wrox
Points: 894, Level: 11
Points: 894, Level: 11 Points: 894, Level: 11 Points: 894, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: London, , United Kingdom.
Posts: 166
Thanks: 2
Thanked 33 Times in 33 Posts
Default

According to MSDN, if you do not pass username/password at all, you will connect as the current windows user, in this case the user the website is running as.

If you can give this user permission to search AD, which if it is an AD user already I believe it can, then you should be good to go.

If this isn't possible, and you cannot use impersonation, then you will have to pass the username and password, as you always need to "log in" to AD.