Last post Jun 20, 2008 09:04 AM by raghu1
Jun 19, 2008 04:31 PMfirstname.lastname@example.org|LINK
I am currently implementing single sign-on for an intranet application using windows authentication with Active Directory? My problem is my application deos not have permission to connect and search active directory. Which I need to verify if a user belongs
to groups in active directory? I have asked the admin people about creating a generic account to connect to active directory in order to search user's groups...no bananas its the government.
I tried this line of code:
bool found = false;
found = true;
I just get an exception "Logon failure: unknown user name or bad password."
Has anyone been in this situation? Any alternatives or workaround to verifying users against Active Directory and gettin single sign-on?
AD C# LDAP single sign-on
Jun 20, 2008 09:04 AM|raghu1|LINK
I just built a method to search if a user exists in an AD group. You can either search a group(you need the full ADpath of the group) or check the memberOf of the user's account. I prefer checking the memberOf as our infrastructure group moves the ADgroups
around and I have to keep up with the full path. Set the directoryEntry to the user's AD object and loop thru the memberOf.