DOLIBARR ENVIRONMENT
- Version: 8.0.3
- Operating System: Debian 9
- Web Server: Apache/2.4.25 (Debian)
- PHP: 5.6.4
- Database: Maria DB 10.4
- URL(s): /index.php?mainmenu=home
I am receiving warning messages at the top of the web page upon first connecting to Dolibarr. The warning messages are:
Warning: ldap_get_values_len(): Cannot get the value(s) of attribute Decoding error in /var/www/html/core/class/ldap.class.php on line 1168
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/core/class/ldap.class.php:1168) in /var/www/html/main.inc.php on line 1094
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/core/class/ldap.class.php:1168) in /var/www/html/main.inc.php on line 1097
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/core/class/ldap.class.php:1168) in /var/www/html/main.inc.php on line 1098
A similar error was encountered by another user, and he recounts this here:
The behavior of my Dolibarr front-end is identical to this user:
- The errors are only reproducible when using LDAP as main authentication.
- The warnings are only present upon first authenticating into Dolibarr. Further navigation in Dolibarr, even back to the original home page, does not produce/reproduce any errors.
- The LDAP authentication is successful. Dolibarr is still functional despite the warnings present upon first login.
I also replicated the entire process with Dolibarr version 8.0.4, but the same errors were produced.
I would like to make the necessary changes that would allow users to access the web page without receiving any error messages. Any help with this would be appreciated.
Thanks for your response. It looks as though the function getObjectSid($ldapUser) checks to see if your are using Windows AD, and then if you are not it continues on to the next IF statement. It looks as though when this function is called it is bypassing the first IF statement (Windows AD flow check), and proceeding on to the next if statement (which contains line 1168).
I’ve also confirmed that my Dolibarr front-end and conf.php are configured for OpenLDAP Version 3. I’m not a PHP expert so my interpretation may be off. Let me know!
Warning: ldap_get_values_len(): Cannot get the value(s) of attribute Decoding error in /var/www/html/core/class/ldap.class.php on line 1169
bool(false) -4 Decoding error
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/core/class/ldap.class.php:1168) in /var/www/html/main.inc.php on line 1094
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/core/class/ldap.class.php:1168) in /var/www/html/main.inc.php on line 1097
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/core/class/ldap.class.php:1168) in /var/www/html/main.inc.php on line 1098
Let me know if this output helps identify a problem.