clamum
Lifer
I need to take a username and a domain and see if the user exists in the Active Directory directory for that domain.
I can do this fine if I use the DirectoryEntry constructor that expects a domain, username, and password, but the way the application will be setup means I will not have a password. To be more specific, this is a web application and the username is passed in the URL string. The application then grabs that username and performs Active Directory authentication to see if the user exists, and if so, logs him/her into the web application.
So I am wondering if there is a way to do this with just a domain and username. I don't wish to update any Active Directory structure or information, I just simple want to check if username xxx exists in domain yyy.
So far I'm having no luck. 🙁 Any help would be great.
I can do this fine if I use the DirectoryEntry constructor that expects a domain, username, and password, but the way the application will be setup means I will not have a password. To be more specific, this is a web application and the username is passed in the URL string. The application then grabs that username and performs Active Directory authentication to see if the user exists, and if so, logs him/her into the web application.
So I am wondering if there is a way to do this with just a domain and username. I don't wish to update any Active Directory structure or information, I just simple want to check if username xxx exists in domain yyy.
So far I'm having no luck. 🙁 Any help would be great.