Open yarosdev opened 8 years ago
It doesn't return false. It returns an object, assuming that $fields is an array of valid attributes to filter.
ie:
$ldap = new adLDAP();
$userdata = $ldap->user()->info('john.doe',array('*'));
echo $userdata->displayName;
//Outputs: John Doe
With this being said, I used to (with older versions) be able to run the following:
$ldap = new adLDAP();
$userdata = $ldap->user()->info('john.doe',array('*'));
echo '<pre>'.print_r(json_decode(json_encode($userdata[0])),1).'</pre>';
I would occasionally do this because the users in my network have hundreds of populated attributes and I often want running examples. Now, when I do this - I get a null result. Still trying to figure out what's changed.
$ldap->user()->info($username, $fields); This method always returns
false
.After removing "escape(value)" info method of user works fine