Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2006

Tip: Looking for answers? Try searching our database.

Wroking with Active directory

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nicknack - 04 Dec 2006 08:14 GMT
Hello,
I'm working with active directory and I've used:
directorysearcher search =new...;
search.propertiesToLoad.Add("cn");

That give me the user name. now if I'm also getting the "memberof"
property I'm getting alot of groups for the user.

Is there a built in function that tell me if the user is in a specific
group instead of writing my own function that will run on all the
groups that the user is a member of them and compere?

some thing like:
bool x=isCurrentUserMemberof("myGroupName");

Hope i was clear enough.
Thanks.
Marc Scheuner - 05 Dec 2006 05:42 GMT
>That give me the user name. now if I'm also getting the "memberof"
>property I'm getting alot of groups for the user.
>
>Is there a built in function that tell me if the user is in a specific
>group instead of writing my own function that will run on all the
>groups that the user is a member of them and compere?

No there's no such function - you will have to grab the list of groups
a user is member of, and do the comparison yourself.

Marc

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.