basically. Here's a pretty print of the returned object for a given set of directories:
Code: Select all
array (
'count' => 12,
0 =>
array (
'objectclass' =>
array (
'count' => 2,
0 => 'top',
1 => 'builtinDomain',
),
0 => 'objectclass',
'distinguishedname' =>
array (
'count' => 1,
0 => 'CN=Builtin,DC=DOMAIN,DC=local',
),
1 => 'distinguishedname',
'count' => 2,
'dn' => 'CN=Builtin,DC=DOMAIN,DC=local',
),
1 =>
array (
'objectclass' =>
array (
'count' => 2,
0 => 'top',
1 => 'container',
),
0 => 'objectclass',
'distinguishedname' =>
array (
'count' => 1,
0 => 'CN=Computers,DC=DOMAIN,DC=local',
),
1 => 'distinguishedname',
'count' => 2,
'dn' => 'CN=Computers,DC=DOMAIN,DC=local',
),
2 =>
array (
'objectclass' =>
array (
'count' => 2,
0 => 'top',
1 => 'organizationalUnit',
),
0 => 'objectclass',
'distinguishedname' =>
array (
'count' => 1,
0 => 'OU=Domain Controllers,DC=DOMAIN,DC=local',
),
1 => 'distinguishedname',
'count' => 2,
'dn' => 'OU=Domain Controllers,DC=DOMAIN,DC=local',
),
3 =>
array (
'objectclass' =>
array (
'count' => 2,
0 => 'top',
1 => 'container',
),
0 => 'objectclass',
'distinguishedname' =>
array (
'count' => 1,
0 => 'CN=ForeignSecurityPrincipals,DC=DOMAIN,DC=local',
),
1 => 'distinguishedname',
'count' => 2,
'dn' => 'CN=ForeignSecurityPrincipals,DC=DOMAIN,DC=local',
),
4 =>
array (
'objectclass' =>
array (
'count' => 2,
0 => 'top',
1 => 'infrastructureUpdate',
),
0 => 'objectclass',
'distinguishedname' =>
array (
'count' => 1,
0 => 'CN=Infrastructure,DC=DOMAIN,DC=local',
),
1 => 'distinguishedname',
'count' => 2,
'dn' => 'CN=Infrastructure,DC=DOMAIN,DC=local',
),
5 =>
array (
'objectclass' =>
array (
'count' => 2,
0 => 'top',
1 => 'lostAndFound',
),
0 => 'objectclass',
'distinguishedname' =>
array (
'count' => 1,
0 => 'CN=LostAndFound,DC=DOMAIN,DC=local',
),
1 => 'distinguishedname',
'count' => 2,
'dn' => 'CN=LostAndFound,DC=DOMAIN,DC=local',
),
6 =>
array (
'objectclass' =>
array (
'count' => 2,
0 => 'top',
1 => 'container',
),
0 => 'objectclass',
'distinguishedname' =>
array (
'count' => 1,
0 => 'CN=Managed Service Accounts,DC=DOMAIN,DC=local',
),
1 => 'distinguishedname',
'count' => 2,
'dn' => 'CN=Managed Service Accounts,DC=DOMAIN,DC=local',
),
7 =>
array (
'objectclass' =>
array (
'count' => 2,
0 => 'top',
1 => 'msDS-QuotaContainer',
),
0 => 'objectclass',
'distinguishedname' =>
array (
'count' => 1,
0 => 'CN=NTDS Quotas,DC=DOMAIN,DC=local',
),
1 => 'distinguishedname',
'count' => 2,
'dn' => 'CN=NTDS Quotas,DC=DOMAIN,DC=local',
),
8 =>
array (
'objectclass' =>
array (
'count' => 2,
0 => 'top',
1 => 'container',
),
0 => 'objectclass',
'distinguishedname' =>
array (
'count' => 1,
0 => 'CN=Program Data,DC=DOMAIN,DC=local',
),
1 => 'distinguishedname',
'count' => 2,
'dn' => 'CN=Program Data,DC=DOMAIN,DC=local',
),
9 =>
array (
'objectclass' =>
array (
'count' => 2,
0 => 'top',
1 => 'container',
),
0 => 'objectclass',
'distinguishedname' =>
array (
'count' => 1,
0 => 'CN=System,DC=DOMAIN,DC=local',
),
1 => 'distinguishedname',
'count' => 2,
'dn' => 'CN=System,DC=DOMAIN,DC=local',
),
10 =>
array (
'objectclass' =>
array (
'count' => 2,
0 => 'top',
1 => 'msTPM-InformationObjectsContainer',
),
0 => 'objectclass',
'distinguishedname' =>
array (
'count' => 1,
0 => 'CN=TPM Devices,DC=DOMAIN,DC=local',
),
1 => 'distinguishedname',
'count' => 2,
'dn' => 'CN=TPM Devices,DC=DOMAIN,DC=local',
),
11 =>
array (
'objectclass' =>
array (
'count' => 2,
0 => 'top',
1 => 'container',
),
0 => 'objectclass',
'distinguishedname' =>
array (
'count' => 1,
0 => 'CN=Users,DC=DOMAIN,DC=local',
),
1 => 'distinguishedname',
'count' => 2,
'dn' => 'CN=Users,DC=DOMAIN,DC=local',
),
)
Though this doesn't tell you the query, it tells you some of the filters being used and the things being examined.