php - Supplied resource is not a valid ldap result entry resource: ldap_get_attributes()
Get the solution ↓↓↓Solution:
ldap_get_attributes() expects the input parameter to be a reference to a single entry not to the complete resultset as stated on the ldap_get_attributes-documentation.
Have a look at ldap_get_first() or ldap_get_next() to get such a single entry reference.
Thanks to tejesh s for pointing in the right direction. I originally wanted to improve his answer but it was too much change :/
Answer
Solution:
ldap_get_attributes() expect input parameter to be an single entry not an array. http://php.net/manual/en/function.ldap-get-attributes.php.
I hope this will help you.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: malformed utf-8 characters, possibly incorrectly encoded
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.