Alors j’ai try de changer (mais tout mes autres services fonctionnent comme ça) avec le cn j’ai :
ErrorBadLoginPassword
alors que avec uid j’ai :
Impossible de trouver l’utilisateur monusername dans la base Dolibarr.
La différence s’explique aussi (sauf erreur de ma part) par le fait que l’admin est créé au dpkg-reconfigure slapd alors que les utilisateurs sont créés via fusiondirectory.
Le log n’apparait pas en haut a gauche et j’ai une erreur dans le log par contre :
2018-12-04 18:12:06 INFO 62.147.242.8 checkLoginPassEntity usertotest=MonUser entitytotest=1 authmode=ldap
2018-12-04 18:12:06 INFO 62.147.242.8 functions_ldap::check_user_password_ldap usertotest=MonUser passwordtotest=** entitytotest=1
2018-12-04 18:12:06 INFO 62.147.242.8 functions_ldap::check_user_password_ldap Server:127.0.0.1, Port:389, Protocol:3, Type:openldap
2018-12-04 18:12:06 INFO 62.147.242.8 functions_ldap::check_user_password_ldap uid/samacountname=uid, dn=ou=people,dc=Mon-Domaine,dc=com, Admin:cn=admin,dc=Mon-Domaine,dc=com, Pass:MonMotDePasse
2018-12-04 18:12:07 DEBUG 62.147.242.8 Ldap::connect_bind try bindauth on 127.0.0.1 user=cn=admin,dc=Mon-Domaine,dc=com password=********************
2018-12-04 18:12:07 DEBUG 62.147.242.8 Ldap::connect_bind return=2
2018-12-04 18:12:07 INFO 62.147.242.8 Ldap::fetch search with searchDN=ou=people,dc=Mon-Domaine,dc=com filter=(uid=MonUser)
2018-12-04 18:12:07 INFO 62.147.242.8 Ldap::fetch search found 1 records
2018-12-04 18:12:07 DEBUG 62.147.242.8 Ldap::connect_bind try bindauth on 127.0.0.1 user=uid=MonUser,ou=people,dc=Mon-Domaine,dc=com password=
2018-12-04 18:12:07 DEBUG 62.147.242.8 Ldap::connect_bind return=2
2018-12-04 18:12:07 INFO 62.147.242.8 functions_ldap::check_user_password_ldap Authentification ok
2018-12-04 18:12:07 INFO 62.147.242.8 functions_ldap::check_user_password_ldap Sync ldap2dolibarr
2018-12-04 18:12:07 INFO 62.147.242.8 Ldap::fetch search with searchDN=ou=people,dc=Mon-Domaine,dc=com filter=(uid=MonUser)
2018-12-04 18:12:07 INFO 62.147.242.8 Ldap::fetch search found 1 records
2018-12-04 18:12:07 DEBUG 62.147.242.8 sql=SELECT u.rowid, u.lastname, u.firstname, u.employee, u.gender, u.birth, u.email, u.job, u.skype,
u.signature, u.office_phone, u.office_fax, u.user_mobile, u.address, u.zip, u.town, u.fk_state as state_id, u.fk_country as country_id, u.admin,
u.login, u.note, u.pass, u.pass_crypted, u.pass_temp, u.api_key, u.fk_soc, u.fk_socpeople, u.fk_member, u.fk_user, u.ldap_sid, u.statut, u.lang,
u.entity, u.datec as datec, u.tms as datem, u.datelastlogin as datel, u.datepreviouslogin as datep, u.photo as photo, u.openid as openid, u.accountancy_code,
u.thm, u.tjm, u.salary, u.salaryextra, u.weeklyhours, u.color, u.dateemployment, u.ref_int, u.ref_ext, u.default_range, u.default_c_exp_tax_cat,
c.code as country_code, c.label as country, d.code_departement as state_code, d.nom as state
FROM llx_user as u
LEFT JOIN llx_c_country as c ON u.fk_country = c.rowid
LEFT JOIN llx_c_departements as d ON u.fk_state = d.rowid
WHERE u.entity IS NOT NULL
AND (u.ldap_sid = ‹ 0-0 › OR u.login = ‹ MonUser ›) LIMIT 1 ORDER BY u.entity ASC
2018-12-04 18:12:07 ERR 62.147.242.8 DoliDBPgsql::query SQL Error message: ERREUR: 42601: erreur de syntaxe sur ou près de « ORDER »
LINE 1: …ldap_sid = ‹ 0-0 › OR u.login = ‹ MonUser ›) LIMIT 1 ORDER BY u…
LOCATION: scanner_yyerror, scan.l:1087 (DB_ERROR_SYNTAX)
2018-12-04 18:12:07 ERR 62.147.242.8 DoliDBPgsql::query SQL Error usesavepoint = 0
2018-12-04 18:12:07 DEBUG 62.147.242.8 sql=SELECT u.rowid, u.lastname, u.firstname, u.employee, u.gender, u.birth, u.email, u.job, u.skype,
u.signature, u.office_phone, u.office_fax, u.user_mobile, u.address, u.zip, u.town, u.fk_state as state_id,
u.fk_country as country_id, u.admin, u.login, u.note, u.pass, u.pass_crypted, u.pass_temp, u.api_key, u.fk_soc,
u.fk_socpeople, u.fk_member, u.fk_user, u.ldap_sid, u.statut, u.lang, u.entity, u.datec as datec, u.tms as datem,
u.datelastlogin as datel, u.datepreviouslogin as datep, u.photo as photo, u.openid as openid,
u.accountancy_code, u.thm, u.tjm, u.salary, u.salaryextra, u.weeklyhours, u.color, u.dateemployment,
u.ref_int, u.ref_ext, u.default_range, u.default_c_exp_tax_cat, c.code as country_code,
c.label as country, d.code_departement as state_code, d.nom as state
FROM llx_user as u LEFT JOIN llx_c_country as c ON u.fk_country = c.rowid
LEFT JOIN llx_c_departements as d ON u.fk_state = d.rowid WHERE u.entity IN (0, 1)
AND u.login = ‹ MonUser ›
ORDER BY u.entity ASC
2018-12-04 18:12:07 DEBUG 62.147.242.8 User::fetch user not found
2018-12-04 18:12:07 INFO 62.147.242.8 User not found, connexion refused
2018-12-04 18:12:07 DEBUG 62.147.242.8 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where lang=‹ fr_FR ›
2018-12-04 18:12:07 INFO 62.147.242.8 — End access to /index.php
2018-12-04 18:12:07 INFO 62.147.242.8 — Access to /index.php showing the login form and exit
2018-12-04 18:12:07 DEBUG 62.147.242.8 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where lang=‹ fr_FR ›
2018-12-04 18:12:07 INFO 62.147.242.8 — End access to /index.php
2018-12-04 18:12:08 INFO 62.147.242.8 — Access to /theme/eldy/style.css.php - action=, massaction=
2018-12-04 18:12:08 DEBUG 62.147.242.8 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where lang=‹ fr_FR ›
2018-12-04 18:12:08 DEBUG 62.147.242.8 Menubase::menuLoad mymainmenu= myleftmenu= type_user=0 menu_handler=eldy tabMenu size=0
2018-12-04 18:12:08 DEBUG 62.147.242.8 sql=SELECT m.rowid, m.type, m.module, m.fk_menu, m.fk_mainmenu, m.fk_leftmenu, m.url,
m.titre, m.langs, m.perms, m.enabled, m.target, m.mainmenu, m.leftmenu, m.position
FROM llx_menu as m WHERE m.entity IN (0,1) AND m.menu_handler IN (‹ eldy ›,‹ all ›) AND m.usertype IN (0,2) ORDER BY m.position, m.rowid
2018-12-04 18:12:08 INFO 62.147.242.8 — End access to /theme/eldy/style.css.php
2018-12-04 18:12:08 INFO 62.147.242.8 — Access to /core/js/lib_head.js.php - action=, massaction=
2018-12-04 18:12:08 DEBUG 62.147.242.8 sql=SELECT transkey, transvalue FROM llx_overwrite_trans where lang=‹ fr_FR ›
2018-12-04 18:12:08 INFO 62.147.242.8 — End access to /core/js/lib_head.js.php
Du coup je pense qu’il y a un bug.
Je vais faire un pointeur vers ici depuis le forum de bug.