[Orchestrator] - Return populated array from ldap search / ldap_get_entries return attributes names in lower case
[Orchestrator] - Return populated array from ldap search / ldap_get_entries return attributes names in lower case.
We do have a code base managing attributes names in lower case in almost all classes, which render the development more prone to errors.
PHP actually converts / interpret result from LDAP queries to lower case automatically. They normalize it automatically.
WE might have solution with get_attributes_entries from PHP LDAP class, to be investigated. Another idea would have a matching for attributes entry and changing them within the class itself.
https://www.php.net/manual/en/function.ldap-get-entries.php should potentially be changed by https://www.php.net/manual/en/function.ldap-get-attributes.php
The second method, at first read, react exactly the same but return proper came case attributes names.