Last post Nov 08, 2008 11:54 AM by TATWORTH
Dec 06, 2005 08:12 PM|rhinton|LINK
Dec 06, 2005 09:11 PM|dunnry|LINK
Dec 13, 2005 06:49 PM|rhinton|LINK
Dec 14, 2005 02:58 PM|dunnry|LINK
Dec 14, 2005 03:44 PM|rhinton|LINK
Dec 15, 2005 02:31 PM|dunnry|LINK
Jul 12, 2006 07:57 PM|mychucky|LINK
Ah... I see the problem. I should have asked what the SR-Nework_Team was. I assumed it was a container you created. That is definitely your problem.
Groups do not hold other objects in AD. They have attributes which point to other objects. Containers like CN=Users or organizational units like OU=someOU hold objects. You are searching the directory to see if a users exists. You need to give it a location
in your directory that is a parent to your users. So just cut everything off until the DC= stuff and you would be good.
What will happen is that it will bind and authenticate the user. It is then up to you to check the user's group membership using User.IsInRole("SR-Network_Team") to see if they are in the group you want them to be.
It is all dependant on you finding them first.
Jul 12, 2006 09:41 PM|mychucky|LINK
Jul 12, 2006 10:53 PM|dunnry|LINK
Jul 13, 2006 01:49 PM|mychucky|LINK
Jul 13, 2006 06:26 PM|dunnry|LINK
Nov 06, 2008 09:53 AM|jpdeyzel|LINK
Thanks dunnry. This helped a lot. Our users are all in OU's and could not for the life of me figure out how to authenticate the users. Removed the CN=Users bit and it worked fine.
Nov 08, 2008 11:54 AM|TATWORTH|LINK
>Thanks dunnry. This helped a lot.
Please mark Dunry's answer as answering your question.