- Feb 13, 2003
- 26,252
- 403
- 126
I'm working on this web application in ASP .NET and it is supposed to authenticate though Active Directory with a given domain and username (no password is supplied).
To get around the issue of not having a password, I created a user in Active Directory with a given account name and password. I hoped to be able to login to the domain with that username and password, then do a search for the real username and see what groups that user belongs to.
This works up to a point... I can authenticate into Active Directory with that user I setup for this purpose and also search and find the username I'm looking for, but I cannot get a list of that user's groups. There's only a few properties returned in the search (cn, displayname, samaccoutname, and a few others, but no memberOf).
I'm just wondering if there's a way to do this. Any help would be great, thanks.
To get around the issue of not having a password, I created a user in Active Directory with a given account name and password. I hoped to be able to login to the domain with that username and password, then do a search for the real username and see what groups that user belongs to.
This works up to a point... I can authenticate into Active Directory with that user I setup for this purpose and also search and find the username I'm looking for, but I cannot get a list of that user's groups. There's only a few properties returned in the search (cn, displayname, samaccoutname, and a few others, but no memberOf).
I'm just wondering if there's a way to do this. Any help would be great, thanks.