hi,
i want to read entries in active directory via COM-interface. (ADS on W2K, Webserver IIS 6.0 in Win 2003, php 4.3.4)
I am connected to ADS and read the desired user and some of his attributes. (eg. EmailAddress) If i try to read the groups he belongs to i get the error: PropGet() failed: Mitglied nicht gefunden/member not found. It points to the line where i supply a variable with the content of the groups-object-array.
My code is like this:
$ADSI = new COM("LDAP:") or Die ("Did not open");
$DsObj = $ADSI->OpenDsObject("LDAP://OU=Anw,OU=C,OU=Anw,OU=firma,DC=domain,DC=de","testads","pass",1) ;
$Obj = $DsObj->GetObject("user", "CN=test");
echo $Obj->EmailAddress;
$Gruppen = $Obj->Groups;
$ADSI->Release();
I think it could be a formattingproblem with my variable Gruppen or something like that!?!?!?!
Regards