Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADSI problems

Status
Not open for further replies.

GunthaUK

MIS
Joined
Oct 22, 2002
Messages
9
Location
GB
HI.

I am writing an application in PHP that I am trying to tie in with our NT Domain Security. Working from the Microsoft ADSI information pages I have managed to get some things to work such as getting user information. I.E. Users full name, etc.

The problem I am having is to do with getting a list of users that are in a specific group.

The code I currently have is:

$o_Group = new COM("WinNT://DOMAINNAME/GROUP");
$o_Group->Members->Filter = array("user");
foreach($o_Group as $s_Member) {
echo &quot;$s_Member->Name<br>\n&quot;;
}

I get the following error message when I try to run it.

Warning: PropGet() failed: Member not found.

The weird thing is Member is not the property I am looking for but Members.

Any body have any idea?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top