Changes

m
Line 36: Line 36:  
{{ActivationModuleFr}}
 
{{ActivationModuleFr}}
   −
 
+
== Configurer le lien LDAP-Dolibarr pour la synchronisation manuelle ==
 
'''Les informations à fournir dans la configuration du module LDAP sont les suivantes:'''
 
'''Les informations à fournir dans la configuration du module LDAP sont les suivantes:'''
   Line 98: Line 98:  
<br />
 
<br />
 
[[File:Capture d’écran du 2020-04-30 17-39-38.png|center|thumb]]
 
[[File:Capture d’écran du 2020-04-30 17-39-38.png|center|thumb]]
<br />N'oubliez pas de modifier votre fichier de configuration de l'application, voici un exemple qui fonctionne avec openLDAP :<blockquote>'''nano /srv/dolibarr/prod/htdocs/conf/conf.php'''</blockquote><br /><syntaxhighlight lang="php">
+
 
 +
== Configurer pour utiliser le mot de passe LDAP pour se loguer ==
 +
 
 +
Modifier votre fichier de configuration de l'application '''htdocs/conf/conf.php''' pour demander à Dolibarr de tester la validité du mot de passe au serveur LDAP, voici un exemple qui fonctionne avec openLDAP :
 +
 
 +
<syntaxhighlight lang="php">
 
[...]
 
[...]
 
// Authentication settings
 
// Authentication settings
 
//$dolibarr_main_authentication='dolibarr';
 
//$dolibarr_main_authentication='dolibarr';
$dolibarr_main_authentication='ldap,dolibarr';  // Permet de garder la double authentification si souci avec LDAP (gardez un compte non LDAP admin !)
+
$dolibarr_main_authentication='ldap,dolibarr';  // To be able to login with both the LDAP or the Dolibarr password (if there is problem with the LDAP server, keep a non LDAP password for one admin user !)
 
$dolibarr_main_auth_ldap_host='<ldap>ou<ldaps>:  //<hostname>';  // Plusieurs serveurs peuvent être ajouter en séparant par une virgule.
 
$dolibarr_main_auth_ldap_host='<ldap>ou<ldaps>:  //<hostname>';  // Plusieurs serveurs peuvent être ajouter en séparant par une virgule.
 
$dolibarr_main_auth_ldap_port='<389>ou<636>';    // Port
 
$dolibarr_main_auth_ldap_port='<389>ou<636>';    // Port
Line 110: Line 115:  
$dolibarr_main_auth_ldap_dn='dc=company,dc=com'; // Ex: ou=users,dc=my-domain,dc=com
 
$dolibarr_main_auth_ldap_dn='dc=company,dc=com'; // Ex: ou=users,dc=my-domain,dc=com
 
$dolibarr_main_auth_ldap_filter = '';            // If defined, two previous parameters are not used to find a user into LDAP. Ex: (uid=%1%) or &(uid=%1%)(isMemberOf=$
 
$dolibarr_main_auth_ldap_filter = '';            // If defined, two previous parameters are not used to find a user into LDAP. Ex: (uid=%1%) or &(uid=%1%)(isMemberOf=$
$dolibarr_main_auth_ldap_admin_login='uid=admin,dc=company,dc=com';
+
$dolibarr_main_auth_ldap_admin_login='uid=admin,dc=company,dc=com';     // Required only if anonymous bind disabled. Ex: cn=admin,dc=example,dc=com
$dolibarr_main_auth_ldap_admin_pass='YourPassword';
+
$dolibarr_main_auth_ldap_admin_pass='secret';           // Required only if anonymous bind disabled. Ex: secret
 
$dolibarr_main_auth_ldap_debug='false';
 
$dolibarr_main_auth_ldap_debug='false';
 
[...]
 
[...]