Dolibarr ne trouve pas ldap

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.17
What app is this about: Dolibarr

Describe your issue

Bonjour,
Sur une installation toute fraiche de yunohost, j’installe une à une les applications dont j’ai besoin… nextcloud : ok, mattermost : ok
Mais ca coince pour dolibarr… si j’en crois les logs d’installation il n’arrive pas à se connecter à ldap. Donc impossible de me connecter.
Je dois renseigner les paramètres ldap à la main dans un fichier de conf ? ou il existe une commande pour créer un utilisateur dolibarr ?
merci

Share relevant logs or error messages

Info : Installation de dolibarr…
Info : Provisioning sources…
Info : Provisioning system_user…
Info : Provisioning install_dir…
Info : Provisioning permissions…
Info : Provisioning apt…
Info : Provisioning database…
Info : [++…] > Configuring dolibarr’s MySQL database…
Info : [##+++…] > Setting up source files…
Info : [#####+++…] > Adding dolibarr’s configuration file…
Info : [########+++…] > Adding system configurations related to dolibarr…
Info : [###########+++…] > Configuring dolibarr …
Info : [##############+++…] > Configuring LDAP for dolibarr…
Attention : PHP Warning: Undefined property: stdClass::$LDAP_FIELD_LOGIN_SAMBA in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 70
Attention : PHP Warning: Undefined property: stdClass::$LDAP_FIELD_PASSWORD in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 71
Attention : PHP Warning: Undefined property: stdClass::$LDAP_FIELD_PASSWORD_CRYPTED in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 72
Attention : PHP Warning: Undefined property: stdClass::$LDAP_FIELD_TITLE in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 81
Attention : PHP Warning: Undefined property: stdClass::$LDAP_FIELD_DESCRIPTION in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 82
Attention : PHP Warning: Undefined property: stdClass::$LDAP_FIELD_SID in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 83
Attention : PHP Warning: Undefined array key “telephonenumber” in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Trying to access array offset on null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Undefined array key “facsimiletelephonenumber” in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Trying to access array offset on null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Undefined array key “mobile” in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Trying to access array offset on null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Undefined array key “telephonenumber” in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Trying to access array offset on null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Undefined array key “facsimiletelephonenumber” in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Trying to access array offset on null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Undefined array key “mobile” in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Trying to access array offset on null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Undefined array key “telephonenumber” in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Trying to access array offset on null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Undefined array key “facsimiletelephonenumber” in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Trying to access array offset on null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Undefined array key “mobile” in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Trying to access array offset on null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Undefined array key “telephonenumber” in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Trying to access array offset on null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Undefined array key “facsimiletelephonenumber” in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Trying to access array offset on null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Undefined array key “mobile” in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Trying to access array offset on null in /var/www/dolibarr/htdocs/core/class/ldap.class.php on line 1170
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 204
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 205
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 221
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 223
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 224
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 204
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 205
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 221
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 223
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 224
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 204
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 205
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 221
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 223
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 224
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 204
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 205
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 221
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 223
Attention : PHP Warning: Undefined array key “” in /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php on line 224
Info : LDAP user update ended with error
Info : [####################] > Installation of dolibarr completed
Succès ! Installation terminée

1 Like

Il y a toujours ces erreurs dans l’installation, mais normalement le LDAP fonctionne tout de même. En passant par le portail de l’utilisateur admin qui a été choisi…

Je viens de tester une installation fraîche, je confirme. Une fois installé, il faut juste se rendre sur le portail de l’utilisateur et cliquer sur la tuile Dolibarr.

merci pour le retour.
dans mon cas, dolibarr n’apparaissait pas sur le portail, j’avais assigné un domaine dédié (j’imagine que c’est pour ça)
et pour régler le probleme j’ai dû modifier le fichier le fichier de conf avec ceci :

$dolibarr_main_authentication=‘ldap’;

$dolibarr_main_auth_ldap_host=‘127.0.0.1’;
$dolibarr_main_auth_ldap_port=‘389’;
$dolibarr_main_auth_ldap_version=‘3’;
$dolibarr_main_auth_ldap_servertype=‘openldap’;
$dolibarr_main_auth_ldap_login_attribute=‘uid’;
$dolibarr_main_auth_ldap_dn=‘ou=users,dc=yunohost,dc=org’;

Curieux… ça devrait marcher , même sur un domaine dédié, avec l’utilisateur choisi lors de l’install qui devient Superadmin…

là aussi, je trouve cela bizarre, chez moi ça casse Dolibarr en ajoutant cela…
Par contre il y a une histoire de cookies, il faut bien se déconnecter si on l’étais avec un autre user sur le portail et vider les cookies…

Dans la webadmin >domaines >ton domaine principal : il y’a une option “afficher les applications des autres domaines”. Il faut l’activer.

merci … j’étais passé à coté

ca doit venir de là … en tout cas merci, mon installation fonctionne