Hello. Thank you in advance for your time.
I'm trying to query a set of groups in ActiveDirectory and output the
members of each group. I'm not receiving output. The object tab of one
object is listed as
uscol.ad.compan yname.com/Global Groups/SYS_Authority Global
Groups/SYS_Authority_B ROKERAGE.
My code is as follows:
On Error Resume Next
gName = "SYS_Authority_ Brokerage"
ou1 = "Global Groups"
ou2 = "SYS_Author ity Global Groups"
Set objGroup = GetObject _
("LDAP://cn=" & gName & ",ou=" & ou1 & ", ou=" & ou2 &
",dc=uscol,dc=a d,dc=companynam e,dc=com")
objGroup.GetInf o
arrMemberOf = objGroup.GetEx( "Member")
Response.Write ""
Response.Write gName
Response.Write "<td>"
For Each strMember in arrMemberOf
Response.Write strMember
Response.Write "<br>"
Next
arrMemberOf = 0
Response.Write "</td>"
--
Shawn Burton
I'm trying to query a set of groups in ActiveDirectory and output the
members of each group. I'm not receiving output. The object tab of one
object is listed as
uscol.ad.compan yname.com/Global Groups/SYS_Authority Global
Groups/SYS_Authority_B ROKERAGE.
My code is as follows:
On Error Resume Next
gName = "SYS_Authority_ Brokerage"
ou1 = "Global Groups"
ou2 = "SYS_Author ity Global Groups"
Set objGroup = GetObject _
("LDAP://cn=" & gName & ",ou=" & ou1 & ", ou=" & ou2 &
",dc=uscol,dc=a d,dc=companynam e,dc=com")
objGroup.GetInf o
arrMemberOf = objGroup.GetEx( "Member")
Response.Write ""
Response.Write gName
Response.Write "<td>"
For Each strMember in arrMemberOf
Response.Write strMember
Response.Write "<br>"
Next
arrMemberOf = 0
Response.Write "</td>"
--
Shawn Burton
Comment