Bon bah je continue tout seul, au moins si quelqu’un a un souci il pourra suivre ce que j’ai fait.
Pour le coup j’ai activer le syslog et le mode DEBUG… pfff franchement pas terrible ce qu’il se passe derrière tout ça…
J’ai bien configuré mon fichier de conf en dur.
Maintenant, je peux me connecter en laissant le champs password vide !
debug en laissant le champs password vide :
DEBUG: Logging LDAP steps
DEBUG: Server:192.168.xx.xx, Port:389, Protocol:3, Type:activedirectory DEBUG: uid/samacountname=samaccountname, dn=, Admin:, Pass: DEBUG: login ldap = userTest
DEBUG: UACF =
DEBUG: pwdLastSet =
DEBUG: badPasswordTime =
DEBUG: sid = -1
debug en mettant le mot de passe (normalement valide):
DEBUG: Logging LDAP steps
DEBUG: Server:192.168.xx.xx, Port:389, Protocol:3, Type:activedirectory DEBUG: uid/samacountname=samaccountname, dn=, Admin:, Pass:
Coté log, en essayant de me connecter avec un user/pass valide :
2011-07-25 12:47:56 INFO 192.168.90.167 nologin index functions_ldap::check_user_password_ldap usertotest=userTest
2011-07-25 12:47:56 INFO 192.168.90.167 nologin index functions_ldap::check_user_password_ldap Server:192.168.xx.xx, Port:389, Protocol:3, Type:activedirectory
2011-07-25 12:47:56 INFO 192.168.90.167 nologin index functions_ldap::check_user_password_ldap uid/samacountname=samaccountname, dn=, Admin:, Pass:
2011-07-25 12:47:56 DEBUG 192.168.90.167 nologin index Ldap::connect_bind try bindauth for activedirectory on 192.168.xx.xx user=samaccountname=userTest,dc=ciaf,dc=local
2011-07-25 12:47:56 WARN 192.168.90.167 nologin index Ldap::connect_bind return=-1
2011-07-25 12:47:56 INFO 192.168.90.167 nologin index functions_ldap::check_user_password_ldap Authentification ko failed to connect to LDAP for 'userTest'
2011-07-25 12:47:57 DEBUG 192.168.90.167 nologin index Bad password, connexion refused
2011-07-25 12:47:57 INFO 192.168.90.167 nologin index Interfaces::run_triggers action=USER_LOGIN_FAILED Launch triggers for file 'interface_modPropale_PropalWorkflow.class.php'
2011-07-25 12:47:57 INFO 192.168.90.167 nologin index Interfaces::run_triggers action=USER_LOGIN_FAILED Launch triggers for file 'interface_modAgenda_ActionsAuto.class.php'
2011-07-25 12:47:57 INFO 192.168.90.167 nologin index Interfaces::run_triggers action=USER_LOGIN_FAILED Triggers for file 'interface_modNotification_Notification.class.php' need module to be enabled
2011-07-25 12:47:57 INFO 192.168.90.167 nologin index Interfaces::run_triggers action=USER_LOGIN_FAILED Launch triggers for file 'interface_all_Logevents.class.php'
2011-07-25 12:47:57 INFO 192.168.90.167 nologin index Interfaces::run_triggers action=USER_LOGIN_FAILED Launch triggers for file 'interface_modLdap_Ldapsynchro.class.php'
Et en me connectant sans mot de passe :
2011-07-25 12:49:54 INFO 192.168.90.167 nologin index functions_ldap::check_user_password_ldap usertotest=userTest
2011-07-25 12:49:54 INFO 192.168.90.167 nologin index functions_ldap::check_user_password_ldap Server:192.168.xx.xx, Port:389, Protocol:3, Type:activedirectory
2011-07-25 12:49:54 INFO 192.168.90.167 nologin index functions_ldap::check_user_password_ldap uid/samacountname=samaccountname, dn=, Admin:, Pass:
2011-07-25 12:49:54 DEBUG 192.168.90.167 nologin index Ldap::connect_bind try bindauth for activedirectory on 192.168.xx.xx user=samaccountname=userTest,dc=ciaf,dc=local
2011-07-25 12:49:54 DEBUG 192.168.90.167 nologin index Ldap::connect_bind return=2
2011-07-25 12:49:54 INFO 192.168.90.167 nologin index functions_ldap::check_user_password_ldap Authentification ok
2011-07-25 12:49:54 DEBUG 192.168.90.167 nologin index User::Fetch sql=SELECT u.rowid, u.name, u.firstname, u.email, u.office_phone, u.office_fax, u.user_mobile, u.admin, u.login, u.webcal_login, u.phenix_login, u.phenix_pass, u.note, u.pass, u.pass_crypted, u.pass_temp, u.fk_societe, u.fk_socpeople, u.fk_member, 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 FROM llx_user as u WHERE u.entity IN (0,1) AND (u.ldap_sid = '-1' OR u.login = 'userTest') LIMIT 1
2011-07-25 12:49:54 DEBUG 192.168.90.167 nologin index User::Fetch sql=SELECT u.rowid, u.name, u.firstname, u.email, u.office_phone, u.office_fax, u.user_mobile, u.admin, u.login, u.webcal_login, u.phenix_login, u.phenix_pass, u.note, u.pass, u.pass_crypted, u.pass_temp, u.fk_societe, u.fk_socpeople, u.fk_member, 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 FROM llx_user as u WHERE u.entity IN (0,1) AND u.login = 'userTest'
2011-07-25 12:49:54 INFO 192.168.90.167 userTest index This is a new started user session. _SESSION['dol_login']=userTest Session id=xxxxxxxxxxxxxxxxxxx
2011-07-25 12:49:54 DEBUG 192.168.90.167 userTest index BEGIN Transaction
2011-07-25 12:49:54 DEBUG 192.168.90.167 userTest index Update last login date for user->id=19 UPDATE llx_user SET datepreviouslogin = datelastlogin, datelastlogin = 20110725124954, tms = tms WHERE rowid = 19
2011-07-25 12:49:54 INFO 192.168.90.167 userTest index Interfaces::run_triggers action=USER_LOGIN Launch triggers for file 'interface_modPropale_PropalWorkflow.class.php'
2011-07-25 12:49:54 INFO 192.168.90.167 userTest index Interfaces::run_triggers action=USER_LOGIN Launch triggers for file 'interface_modAgenda_ActionsAuto.class.php'
2011-07-25 12:49:54 INFO 192.168.90.167 userTest index Interfaces::run_triggers action=USER_LOGIN Triggers for file 'interface_modNotification_Notification.class.php' need module to be enabled
2011-07-25 12:49:54 INFO 192.168.90.167 userTest index Interfaces::run_triggers action=USER_LOGIN Launch triggers for file 'interface_all_Logevents.class.php'
2011-07-25 12:49:54 INFO 192.168.90.167 userTest index Interfaces::run_triggers action=USER_LOGIN Launch triggers for file 'interface_modLdap_Ldapsynchro.class.php'
2011-07-25 12:49:54 DEBUG 192.168.90.167 userTest index COMMIT Transaction
2011-07-25 12:49:54 DEBUG 192.168.90.167 userTest index User::getRights sql=SELECT r.module, r.perms, r.subperms FROM llx_user_rights as ur, llx_rights_def as r WHERE r.id = ur.fk_id AND r.entity = 1 AND ur.fk_user= 19 AND r.perms IS NOT NULL
2011-07-25 12:49:54 DEBUG 192.168.90.167 userTest index User::getRights sql=SELECT r.module, r.perms, r.subperms FROM llx_usergroup_rights as gr, llx_usergroup_user as gu, llx_rights_def as r WHERE r.id = gr.fk_id AND gr.fk_usergroup = gu.fk_usergroup AND gu.fk_user = 19 AND r.perms IS NOT NULL AND r.entity = 1
2011-07-25 12:49:54 INFO 192.168.90.167 userTest index --- Access to /dolibarr/htdocs/index.php
2011-07-25 12:49:54 INFO 192.168.90.167 userTest index Menubase::menuTopCharger sql=SELECT m.rowid, m.mainmenu, m.titre, m.url, m.langs, m.perms, m.enabled, m.target FROM llx_menu as m WHERE m.type = 'top' AND m.entity = 1 AND m.menu_handler in('eldy','all') AND m.usertype in (0,2) ORDER BY m.position
2011-07-25 12:49:54 INFO 192.168.90.167 userTest index Menubase::menuLeftCharger sql=SELECT m.rowid, m.fk_menu, m.url, m.titre, m.langs, m.perms, m.enabled, m.target, m.mainmenu, m.leftmenu FROM llx_menu as m WHERE m.menu_handler in('eldy','all') AND m.entity = 1 AND m.usertype in (0,2) ORDER BY m.position, m.rowid
2011-07-25 12:49:54 DEBUG 192.168.90.167 userTest index InfoBox::listBoxes get default box list sql=SELECT b.rowid, b.box_id, b.position, b.box_order, b.fk_user, d.file, d.note FROM llx_boxes as b, llx_boxes_def as d WHERE b.box_id = d.rowid AND d.entity = 1 AND b.position = 0 AND b.fk_user = 0 ORDER BY b.box_order
2011-07-25 12:49:54 DEBUG 192.168.90.167 userTest index DoliDB::disconnect
Je galère quoi…