It seems that memberOf is used to determine if a given group is a member of another group, ie., "When a group's distinguished name is added to the member property of another group, that other group's distinguished name is automatically added to this group's memberOf property". It doesn't seem to work the way I want it to for my purposes. So far the only way I can find to do this is to use the IsMember attribute and to check each of my "sub-groups" individually.
-----Original Message----- From: Ryan Jameson (USA) [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 2:16 PM To: dotnet Subject: RE: Retrieving LDAP Group info with VB.NET I just checked and sure enough you get my favorite: Handling of this ADSVALUE type is not yet implemented (type = 0xb). ...exception. DirectoryServices will not work for you, yet. 'memberOf' is a valid attribute for a user object though. Are you using an alternative to DirectoryServices? I don't know any other way to do this and DirectoryServices has me pulling my hair out. When you figure this out let me know how you did it if you don't mind :-)... Knowing my luck I'll implement a less robust solution just in time for it to work. Thanks! <>< Ryan -----Original Message----- From: Black, John S. [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 1:59 PM To: dotnet Subject: RE: Retrieving LDAP Group info with VB.NET Thanks Ryan, I will look into this. I have found the IsMember function which allows me to loop check if an object (user) is a member of a specific group but it requires that I check each one of my "sub-groups" seperately. I am trying to simply start a search at a specific node within the hierarchy and then say "give me all of the groups from here down through the hierarchy where my user is a member" but so far no dice. I will check out the memberOf attribute you mentioned and see if it works. Later. John -----Original Message----- From: Ryan Jameson (USA) [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 1:51 PM To: dotnet Subject: RE: Retrieving LDAP Group info with VB.NET there is a memberof attribute. In .NET I only know about using system.DirectoryServices, and if you are really lucky you'll be able to do this: mySearcher.PropertiesToLoad.Add("memberof"); where mySearcher is a System.DirectoryServices.DirectorySearcher and then loop through the collection returned. That is unless .NET does not support the data type. :-\ <>< Ryan -----Original Message----- From: JB [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 1:39 PM To: dotnet Subject: Retrieving LDAP Group info with VB.NET Does anyone know how to retrieve a user's group information with LDAP and VB.NET? I have a series of "sub-groups" that will contain a few of our users. I need to determine if a given user (at login time) is a member of one of those sub-groups, and return the name of the sub-group (or groups) that he/she is a member of. I have found how to set the SearchRoot property to specify the node within the AD heirarchy to begin my search but I haven't found any way to retrieve a list of all groups that a given user is a member of. Any ideas? --- You are currently subscribed to dotnet as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --------- Administrated by 15 Seconds : http://www.15Seconds.com List Archives/Search : http://local.15Seconds.com/search Subscription Information : http://www.15seconds.com/listserv.htm Advertising Information: http://www.internet.com/mediakit/ --- You are currently subscribed to dotnet as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --------- Administrated by 15 Seconds : http://www.15Seconds.com List Archives/Search : http://local.15Seconds.com/search Subscription Information : http://www.15seconds.com/listserv.htm Advertising Information: http://www.internet.com/mediakit/ --- You are currently subscribed to dotnet as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --------- Administrated by 15 Seconds : http://www.15Seconds.com List Archives/Search : http://local.15Seconds.com/search Subscription Information : http://www.15seconds.com/listserv.htm Advertising Information: http://www.internet.com/mediakit/ --- You are currently subscribed to dotnet as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --------- Administrated by 15 Seconds : http://www.15Seconds.com List Archives/Search : http://local.15Seconds.com/search Subscription Information : http://www.15seconds.com/listserv.htm Advertising Information: http://www.internet.com/mediakit/ --- You are currently subscribed to dotnet as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] --------- Administrated by 15 Seconds : http://www.15Seconds.com List Archives/Search : http://local.15Seconds.com/search Subscription Information : http://www.15seconds.com/listserv.htm Advertising Information: http://www.internet.com/mediakit/
