Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27333

VS 2010 Active Directory Group Issue

$
0
0
Ok so, I am using the following code to add a member to a group. When I do this I get an error stating that there has been an unspecified error. Can someone please help?

Thanks!

Code:

       
strPath = "OU=Adl_GAE,OU=Students,OU=Users,OU=Adelaide,DC=GBS,DC=local"
groupDn = "CN=ADL_GAE,OU=GmailGroups,DC=GBS,DC=local"

Dim fullName As String = frmMain.tLast.Text & " " & frmMain.tFirst.Text

'Set Groups
        Dim group As New DirectoryEntry(groupDn)
        group.Properties("member").Add("CN=" & fullName & "," & strpath)
        group.CommitChanges()


Viewing all articles
Browse latest Browse all 27333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>