Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
VB.NET
Security
making AD Group a member of another group?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Swain90, post: 165047, member: 49076"] Hi All, I have a small issue of making a Active Directory Group a member of another group. I have been able to create a group, I have been able to make a user a member of that group, but when I try and make a group a member of another group e.g. TestGroup a member of Administrators I'm currently get an error of "The server is unwilling to process the request" As far as I was aware Users and Groups are both containers so I'm not sure why when adding a user to a group it works, but when trying to make a group a member of another group it doesn't work. Adding a User to a group [B]WORKING[/B] [CODE] Try Dim group As New DirectoryEntry("LDAP://cn=TestGroup, ou=Test, dc=TEST, dc=com") group.Properties("member").Add("cn=TestUser, ou=Test, dc=TEST, dc=com") group.CommitChanges() Return True Catch ex As Exception MsgBox(ex.Message) Return False End Try[/CODE] Trying to add a TestGroup2 to the group TestGroup which are in the same Organisational Unit [B]NOT WORKING[/B] [CODE] Try Dim group As New DirectoryEntry("LDAP://cn=TestGroup, ou=Test, dc=TEST, dc=com") group.Properties("member").Add("cn=TestGroup2, ou=Test, dc=TEST, dc=com") group.CommitChanges() Return True Catch ex As Exception MsgBox(ex.Message) Return False End Try [/CODE] Any help on this would be great, tried alot of googling and msdn but no luck Thanks Swain90 [/QUOTE]
Insert quotes…
Verification
Post reply
VB.NET
Security
making AD Group a member of another group?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom