|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 08/07/2009 at 02:36PM PDT, ID: 24636149 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: |
Public Function GetGroupUsers(ByVal pGroupCN As String) As ArrayList
Try
' In our entry path we specify we want a group that has Users and is named as the parameter 'pGroupCN'
Dim entry As New DirectoryEntry("LDAP://" & _server & "/CN=" & pGroupCN & "," & _domainPath, _username, _password)
Dim search As New DirectorySearcher(entry)
' For each user in that group, get the 'cn' or common name property of that user and add it to our ArrayList
Dim users As New ArrayList
Dim userEntry As DirectoryEntry
For Each member As Object In entry.Properties("person")
userEntry = New DirectoryEntry("LDAP://" & _server & "/" & member.ToString(), _username, _password)
users.Add(userEntry.Properties("cn")(0).ToString())
Next
Return users
Catch ex As Exception
Return Nothing
End Try
End Function
|
Advertisement