diff --git a/htdocs/admin/adherent.php b/htdocs/admin/adherent.php index 3ea0368d669..67561d35948 100644 --- a/htdocs/admin/adherent.php +++ b/htdocs/admin/adherent.php @@ -54,27 +54,15 @@ $var=True; // Action mise a jour ou ajout d'une constante if ($_POST["action"] == 'update' || $_POST["action"] == 'add') { - if (isset($_POST["consttype"]) && $_POST["consttype"] != '') + if (! dolibarr_set_const($db, $_POST["constname"],$_POST["constvalue"],$typeconst[$_POST["consttype"]],0,isset($_POST["constnote"])?$_POST["constnote"]:'')) { - $sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = '".$_POST["constname"]."';"; - $db->query($sql); - $sql = ''; - $sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name,value,type,visible,note) VALUES ('".$_POST["constname"]."','".$_POST["constvalue"]."','".$typeconst[$_POST["consttype"]]."',0,'".$_POST["constnote"]."') ;"; - - } + print $db->error(); + } else { - $sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = '".$_POST["constname"]."';"; - $db->query($sql); - $sql =''; - $sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name,value,visible,note) VALUES ('".$_POST["constname"]."','".$_POST["constvalue"]."',0,'".$_POST["constnote"]."') ;"; - } - - if ($db->query($sql)) - { - Header("Location: adherent.php"); - } - + Header("Location: adherent.php"); + exit; + } } // Action activation d'un sous module du module adhérent @@ -94,6 +82,7 @@ if ($_GET["action"] == 'set') if ($result) { Header("Location: adherent.php"); + exit; } else { dolibarr_print_error($db); @@ -270,7 +259,7 @@ $db->close(); print '
'; -llxFooter(); +llxFooter('$Date$ - $Revision$'); function form_constantes($tableau){ diff --git a/htdocs/admin/ldap.php b/htdocs/admin/ldap.php index b89142e9860..7e19d6c9da3 100644 --- a/htdocs/admin/ldap.php +++ b/htdocs/admin/ldap.php @@ -3,6 +3,7 @@ * Copyright (C) 2004 Sebastien Di Cintio * Copyright (C) 2004 Benoit Mortier * Copyright (C) 2005 Regis Houssin + * Copyright (C) 2006 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -52,91 +53,60 @@ if (!$user->admin) if ($_GET["action"] == 'setvalue' && $user->admin) { - $sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'LDAP_SERVER_HOST';"; - $db->query($sql); + if (! dolibarr_set_const($db, 'LDAP_SERVER_TYPE',$_POST["type"])) + { + print $db->error(); + } + if (! dolibarr_set_const($db, 'LDAP_SERVER_PROTOCOLVERSION',$_POST["version"])) + { + print $db->error(); + } - $sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name,value,visible) VALUES - ('LDAP_SERVER_HOST','".$_POST["host"]."',0);"; - $db->query($sql); - - $sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'LDAP_SERVER_PORT';"; - $db->query($sql); - - $sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name,value,visible) VALUES - ('LDAP_SERVER_PORT','".$_POST["port"]."',0);"; - $db->query($sql); - - //suppression pour compatibilité divers config ldap - // - //$sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'LDAP_SUFFIX_DN';"; - //$db->query($sql); - - //$sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name,value,visible) VALUES - //('LDAP_SUFFIX_DN','".$_POST["suffix"]."',0);"; - //$db->query($sql); - - $sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'LDAP_ADMIN_DN';"; - $db->query($sql); - - $sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name,value,visible) VALUES - ('LDAP_ADMIN_DN','".$_POST["admin"]."',0);"; - $db->query($sql); - - $sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'LDAP_ADMIN_PASS';"; - $db->query($sql); - - $sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name,value,visible) VALUES - ('LDAP_ADMIN_PASS','".$_POST["pass"]."',0);"; - $db->query($sql); - - $sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'LDAP_USER_DN';"; - $db->query($sql); - - $sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name,value,visible) VALUES - ('LDAP_USER_DN','".$_POST["user"]."',0);"; - $db->query($sql); - - $sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'LDAP_GROUP_DN';"; - $db->query($sql); - - $sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name,value,visible) VALUES - ('LDAP_GROUP_DN','".$_POST["group"]."',0);"; - $db->query($sql); - - $sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'LDAP_CONTACT_ACTIVE';"; - $db->query($sql); - - $sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name,value,visible) VALUES - ('LDAP_CONTACT_ACTIVE','".$_POST["activecontact"]."',0);"; - $db->query($sql); - - $sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'LDAP_CONTACT_DN';"; - $db->query($sql); - - $sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name,value,visible) VALUES - ('LDAP_CONTACT_DN','".$_POST["contact"]."',0);"; - $db->query($sql); - - $sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'LDAP_SERVER_PROTOCOLVERSION';"; - $db->query($sql); - - $sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name,value,visible) VALUES - ('LDAP_SERVER_PROTOCOLVERSION','".$_POST["version"]."',0);"; - $db->query($sql); - - - $sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'LDAP_SERVER_TYPE';"; - $db->query($sql); - - $sql = "INSERT INTO ".MAIN_DB_PREFIX."const (name,value,visible) VALUES - ('LDAP_SERVER_TYPE','".$_POST["type"]."',0);"; - - if ($db->query($sql)) + if (! dolibarr_set_const($db, 'LDAP_SERVER_HOST',$_POST["host"])) + { + print $db->error(); + } + if (! dolibarr_set_const($db, 'LDAP_SERVER_PORT',$_POST["port"])) + { + print $db->error(); + } + if (! dolibarr_set_const($db, 'LDAP_ADMIN_DN',$_POST["admin"])) + { + print $db->error(); + } + if (! dolibarr_set_const($db, 'LDAP_ADMIN_PASS',$_POST["pass"])) + { + print $db->error(); + } + if (! dolibarr_set_const($db, 'LDAP_ADMIN_DN',$_POST["admin"])) + { + print $db->error(); + } + if (! dolibarr_set_const($db, 'LDAP_USER_DN',$_POST["user"])) + { + print $db->error(); + } + if (! dolibarr_set_const($db, 'LDAP_GROUP_DN',$_POST["group"])) + { + print $db->error(); + } + if (! dolibarr_set_const($db, 'LDAP_CONTACT_ACTIVE',$_POST["activecontact"])) + { + print $db->error(); + } + if (! dolibarr_set_const($db, 'LDAP_CONTACT_DN',$_POST["contact"])) + { + print $db->error(); + } + if ($db->query($sql)) { - Header("Location: ldap.php"); + Header("Location: ldap.php"); + exit; } } + + /* * Visu */ @@ -145,293 +115,216 @@ llxHeader(); print_titre($langs->trans("LDAPSetup")); -print '
'; -print ''; -print ''; -print ''; -print '
'; - -print ''; -print ''; -print ''; -print ''; -print "\n"; - -if (defined("LDAP_SERVER_HOST") && LDAP_SERVER_HOST) +// Test si fonction LDAP actives +if (! function_exists("ldap_connect")) { - print ''; -} -else -{ - print ''; -} -if (defined("LDAP_SERVER_PORT") && LDAP_SERVER_PORT) -{ - print ''; -} -else -{ - print ''; + $mesg=$langs->trans("LDAPFunctionsNotAvailableOnPHP"); } -//suppression pour compatibilité divers config ldap -// -//if (defined("LDAP_SUFFIX_DN") && LDAP_SUFFIX_DN) -//{ -// print ''; -//} -//else -//{ -// print ''; -//} +if ($mesg) print '
'.$mesg.'
'; -if (defined("LDAP_ADMIN_DN") && LDAP_ADMIN_DN) -{ - print ''; -} -else -{ - print ''; -} -if (defined("LDAP_ADMIN_PASS") && LDAP_ADMIN_PASS) -{ - print ''; -} -else -{ - print ''; -} -if (defined("LDAP_USER_DN") && LDAP_USER_DN) -{ - print ''; -} -else -{ - print ''; -} -if (defined("LDAP_GROUP_DN") && LDAP_GROUP_DN) -{ - print ''; -} -else -{ - print ''; -} -if (defined("LDAP_CONTACT_ACTIVE") && LDAP_CONTACT_ACTIVE) -{ - print ''; -} -else -{ - print ''; -} -if (defined("LDAP_CONTACT_DN") && LDAP_CONTACT_DN) -{ - print ''; -} -else -{ - print ''; -} -if (defined("LDAP_SERVER_TYPE") && LDAP_SERVER_TYPE) -{ - print ''; -} - else -{ - print ''; -} -print ''; - -print '
'.$langs->trans("Parameter").''.$langs->trans("Value").' 
'.$langs->trans("LDAPServer").''.LDAP_SERVER_HOST.'
'.$langs->trans("LDAPServer").''.$langs->trans("LDAPServerExample").'
'.$langs->trans("LDAPServerPort").''.LDAP_SERVER_PORT.'
'.$langs->trans("LDAPServerPort").''.$langs->trans("LDAPServerPortExample").'
'.$langs->trans("LDAPSuffix").''.LDAP_SUFFIX_DN.'
'.$langs->trans("LDAPSuffix").''.$langs->trans("LDAPSuffixExample").'
'.$langs->trans("DNAdmin").''.LDAP_ADMIN_DN.'
'.$langs->trans("DNAdmin").''.$langs->trans("DNAdminExample").'
'.$langs->trans("LDAPPassword").'********
'.$langs->trans("LDAPPassword").''.$langs->trans("LDAPPasswordExample").'
'.$langs->trans("DNUser").''.LDAP_USER_DN.'
'.$langs->trans("DNUser").''.$langs->trans("DNUserExample").'
'.$langs->trans("DNGroup").''.LDAP_GROUP_DN.'
'.$langs->trans("DNGroup").''.$langs->trans("DNGroupExample").'
'.$langs->trans("DNContactActive").''.$langs->trans("DNContactActiveYes").'
'.$langs->trans("DNContactActive").''.$langs->trans("DNContactActiveExample").'
'.$langs->trans("DNContact").''.LDAP_CONTACT_DN.'
'.$langs->trans("DNContact").''.$langs->trans("DNContactExample").'
'.$langs->trans("Type").''.LDAP_SERVER_TYPE.'
'.$langs->trans("Type").''.$langs->trans("TypeExample").'
'.$langs->trans("Version").''.LDAP_SERVER_PROTOCOLVERSION.'
'; - -print '
'; - -/* - * Modification - */ print '
'; -print ''; +print '
'; print ''; print ''; -print ''; +print ''; +print ''; print "\n"; -print ''; + +// Version +$var=!$var; +print ''; + +// Serveur +$var=!$var; +print ''; -print ''; + +// Port +$var=!$var; +print ''; +print ''; -//suppression pour compatibilité divers config ldap -// -//print ''; +// DNAdmin +$var=!$var; +print ''; -print ''; -print ''; -print ''; -print ''; -print ''; -print ''; +print ''; -print ''; -print ''; +print ''; +print "\n"; -if (defined("LDAP_SERVER_PROTOCOLVERSION") && LDAP_SERVER_PROTOCOLVERSION == 3) -{ - print ''; + +// DN Pour les utilisateurs +$var=!$var; +print ''; + +// DN pour les groupes +$var=!$var; +print ''; + + +print ''; +print ''; +print "\n"; + +// Synchro contact active +$var=!$var; +print ''; + +// DN Pour les contacts +$var=!$var; +print ''; + + +print ''; +print '
'.$langs->trans("Parameter").''.$langs->trans("Value").' '.$langs->trans("Value").''.$langs->trans("Example").'
'; + +$var=true; +$html=new Form($db); + +// Type +$var=!$var; +print '
'.$langs->trans("Type").''; +$arraylist=array(); +$arraylist['activedirectory']='Active Directory'; +$arraylist['openldap']='OpenLdap'; +$arraylist['egroupware']='Egroupware'; +$html->select_array('type',$arraylist,$conf->global->LDAP_SERVER_TYPE); +print ' 
'.$langs->trans("Version").''; +$arraylist=array(); +$arraylist['3']='Version 3'; +$arraylist['2']='Version 2'; +$html->select_array('version',$arraylist,$conf->global->LDAP_SERVER_PROTOCOLVERSION); +print ' 
'; print $langs->trans("LDAPServer").''; -print ''; -print '
'.$langs->trans("LDAPServerPort").''; -if (defined("LDAP_SERVER_PORT") && LDAP_SERVER_PORT) +print ''; +print ''.$langs->trans("LDAPServerExample").'
'.$langs->trans("LDAPServerPort").''; +if ($conf->global->LDAP_SERVER_PORT) { - print ''; + print ''; } else { print ''; } -print '
'.$langs->trans("LDAPServerPortExample").'
'.$langs->trans("LDAPSuffix").''; -//print ''; -//print '
'.$langs->trans("DNAdmin").''; +print ''; +print ' 
'.$langs->trans("DNAdmin").''; -print ''; -print '
'.$langs->trans("LDAPPassword").''; -if (defined("LDAP_ADMIN_PASS") && LDAP_ADMIN_PASS) +// Pass +$var=!$var; +print '
'.$langs->trans("LDAPPassword").''; +if ($conf->global->LDAP_ADMIN_PASS) { - print ''; + print ''; } else { - print ''; + print ''; } -print '
'.$langs->trans("DNUser").''; -print ''; -print '
'.$langs->trans("DNGroup").''; -print ''; -print '
'.$langs->trans("DNContactActive").''; -print '
'.$langs->trans("DNContact").''; -print ''; -print '
 
'.$langs->trans("Type").''; -print '
'.$langs->trans("Version").'
'.$langs->trans("LDAPSynchronizeUsersAndGroup").'
'.$langs->trans("DNUserGroupActive").''; +$arraylist=array(); +$arraylist['0']=$langs->trans("Yes"); +$html->select_array('activecontact',$arraylist,$conf->global->LDAP_USERGROUP_ACTIVE); +print ''.$langs->trans("NotYetAvailable").'
'.$langs->trans("DNUser").''; +print ''; +print ''.$langs->trans("DNUserExample").'
'.$langs->trans("DNGroup").''; +print ''; +print ''.$langs->trans("DNGroupExample").'
'.$langs->trans("LDAPSynchronizeContacts").'
'.$langs->trans("DNContactActive").''; +$arraylist=array(); +$arraylist['0']=$langs->trans("No"); +$arraylist['1']=$langs->trans("Yes"); +$html->select_array('activecontact',$arraylist,$conf->global->LDAP_CONTACT_ACTIVE); +print ''.$langs->trans("DNContactActiveExample").'
'.$langs->trans("DNContact").''; +print ''; +print ''.$langs->trans("DNContactExample").'
'; + +print '
'; -print '
'; -print ''; /* - * test de la connexion + * Test de la connexion */ - - -if (defined("LDAP_SERVER_HOST") && LDAP_SERVER_HOST) { - print ''.$langs->trans("TestConnectLdap").'

'; -} - - -if (defined("LDAP_SERVER_HOST") && LDAP_SERVER_HOST && LDAP_ADMIN_DN && LDAP_ADMIN_PASS && $_GET["action"] == 'test') +if (function_exists("ldap_connect")) { - $ds = dolibarr_ldap_connect(); - - if ($ds) - { - print img_picto('','info'); - print "connexion au serveur ldap réussie
"; - } - else - { - print img_picto('','alerte'); - - print "connexion au serveur ldap échouée"; - print "
"; - print ldap_error($ds); - print "
"; - } - if ((dolibarr_ldap_getversion($ds) == 3)) - { - print img_picto('','info'); - print "Serveur ldap configuré en version 3
"; - } - else - { - print img_picto('','info'); - print "Serveur ldap configuré en version 2
"; - } - - $bind = @dolibarr_ldap_bind($ds); - - if ($bind) - { - print img_picto('','info'); - print "connexion au dn $dn réussi
"; - } - else - { - print img_picto('','alerte'); + if ($conf->global->LDAP_SERVER_HOST) + { + print ''.$langs->trans("TestConnectLdap").'

'; + } + + + if ($conf->global->LDAP_SERVER_HOST && $conf->global->LDAP_ADMIN_DN && $conf->global->LDAP_ADMIN_PASS && $_GET["action"] == 'test') + { + // Test ldap_connect + $ds = dolibarr_ldap_connect(); + + if ($ds) + { + print img_picto('','info'); + print $langs->trans("LDAPTestOK").'
'; + } + else + { + print img_picto('','alerte'); + print $langs->trans("LDAPTestKO").'
'; + print "
"; + print ldap_error($ds); + print "
"; + } - print "connexion au dn $dn raté : "; - print ldap_error($ds); - print "
"; - } - - $unbind = @dolibarr_ldap_unbind($ds); - - if ($bind) - { - print img_picto('','info'); - print "déconnection du dn $dn réussi
"; - } - else - { - print img_picto('','alerte'); + // Test ldap_getversion + if ((dolibarr_ldap_getversion($ds) == 3)) + { + print img_picto('','info'); + print $langs->trans("LDAPSetupForVersion3").'
'; + } + else + { + print img_picto('','info'); + print $langs->trans("LDAPSetupForVersion2").'
'; + } + + // Test ldap_bind + $bind = @dolibarr_ldap_bind($ds); + if ($bind) + { + print img_picto('','info'); + print "Connexion au dn $dn réussi
"; + } + else + { + print img_picto('','alerte'); + + print "Connexion au dn $dn raté : "; + print ldap_error($ds); + print "
"; + } - print "déconnection du dn $dn raté"; - print "
"; - } + // Test ldap_unbind + $unbind = @dolibarr_ldap_unbind($ds); + if ($bind) + { + print img_picto('','info'); + print "Déconnection du dn $dn réussi
"; + } + else + { + print img_picto('','alerte'); + + print "Déconnection du dn $dn raté"; + print "
"; + } + } } $db->close(); -llxFooter(); +llxFooter('$Date$ - $Revision$'); + ?> diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index c3a1e9d3280..12362da0b28 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -1,7 +1,7 @@ * Copyright (C) 2003 Jean-Louis Bergamo - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2004 Éric Seigne * * This program is free software; you can redistribute it and/or modify @@ -30,9 +30,13 @@ require("./pre.inc.php"); +$mode=isset($_GET["mode"])?$_GET["mode"]:0; +$mesg=isset($_GET["mesg"])?urldecode($_GET["mode"]):""; + if (!$user->admin) accessforbidden(); + /* * Actions */ @@ -42,7 +46,7 @@ if ($_GET["action"] == 'set' && $user->admin) $result=Activate($_GET["value"]); $mesg=''; if ($result) $mesg=$result; - Header("Location: modules.php?spe=".$_GET["spe"]."&mesg=".urlencode($mesg)); + Header("Location: modules.php?mode=".$mode."&mesg=".urlencode($mesg)); exit; } @@ -51,7 +55,7 @@ if ($_GET["action"] == 'reset' && $user->admin) $result=UnActivate($_GET["value"]); $mesg=''; if ($result) $mesg=$result; - Header("Location: modules.php?spe=".$_GET["spe"]."&mesg=".urlencode($mesg)); + Header("Location: modules.php?mode=".$mode."&mesg=".urlencode($mesg)); exit; } @@ -143,33 +147,31 @@ llxHeader("",""); $h = 0; -$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?spe=0"; +$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?mode=0"; $head[$h][1] = $langs->trans("ModulesCommon"); -if (!$_GET["spe"]) $hselected=$h; +if ($mode==0) $hselected=$h; $h++; -$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?spe=1"; +$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?mode=1"; +$head[$h][1] = $langs->trans("ModulesInterfaces"); +if ($mode==1) $hselected=$h; +$h++; + +$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?mode=2"; $head[$h][1] = $langs->trans("ModulesSpecial"); -if ($_GET["spe"]) $hselected=$h; +if ($mode==2) $hselected=$h; $h++; dolibarr_fiche_head($head, $hselected, $langs->trans("Modules")); -if (!$_GET["spe"]) -{ - print $langs->trans("ModulesDesc")."
\n"; -} -else -{ - print $langs->trans("ModulesSpecialDesc")."
\n"; -} +if ($mode==0) print $langs->trans("ModulesDesc")."
\n"; +if ($mode==1) print $langs->trans("ModulesInterfaceDesc")."
\n"; +if ($mode==2) print $langs->trans("ModulesSpecialDesc")."
\n"; -if ($_GET["mesg"]) -{ - $mesg=urldecode($_GET["mesg"]); - print '
'.$mesg.'
'; -} + + +if ($mesg) print '
'.$mesg.'
'; print "
\n"; print "\n"; @@ -258,7 +260,7 @@ foreach ($orders as $key => $value) $atleastoneforfamily=0; } - if ((!$objMod->special && !$_GET["spe"] ) or ($objMod->special && $_GET["spe"])) + if ($objMod->special == $mode) { $atleastoneforfamily=1; $var=!$var; @@ -302,7 +304,7 @@ foreach ($orders as $key => $value) { // Module actif if ($family == 'base') print $langs->trans("Required"); - else print "numero."&action=reset&value=" . $modName . "&spe=" . $_GET["spe"] . "\">" . $langs->trans("Disable") . "\n"; + else print "numero."&action=reset&value=" . $modName . "&mode=" . $mode . "\">" . $langs->trans("Disable") . "\n"; if ($objMod->config_page_url) { @@ -345,7 +347,7 @@ foreach ($orders as $key => $value) } // Module non actif - print "numero."&action=set&value=" . $modName . "&spe=" . $_GET["spe"] . "\">" . $langs->trans("Activate") . "\n \n"; + print "numero."&action=set&value=" . $modName . "&mode=" . $mode . "\">" . $langs->trans("Activate") . "\n \n"; } print "\n"; diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 52da9e80127..2723ed2d1cb 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -392,9 +392,11 @@ MembersSetup=Members module setup MemberMainOptions=Main options AddSubscriptionIntoAccount=Add subscriptions into bank or cash account, of bank module AdherentMailRequired=EMail required to create a new member -##### LDAP setup #### +##### LDAP setup ##### LDAPSetup=LDAP Setup LDAPFunctionsNotAvailableOnPHP=LDAP functions are not availbale on your PHP +LDAPSynchronizeUsersAndGroup=Synchronize Dolibarr users and groups to LDAP +LDAPSynchronizeContacts=Synchronize Dolibarr contacts to LDAP LDAPTypeExample=OpenLdap, Egroupware or Active Directory LDAPServer=LDAP Server LDAPServerPort=LDAP server port @@ -408,9 +410,10 @@ LDAPServerExample=Server address (ex: localhost, 127.0.0.1, 192.168.0.2) #LDAPSuffixExample=Complete DN (ex: dc=company,dc=com) DNAdminExample=Complete DN (ex: cn=adminldap,dc=society,dc=com) LDAPPasswordExample=Admin password +DBUserGroupActive=Users and groups synchronization DNUserExample=Complete DN (ex: ou=users,dc=society,dc=com) DNGroupExample=Complete DN (ex: ou=groups,dc=society,dc=com) -DNContactActive=Contacts' synchronization? +DNContactActive=Contacts' synchronization DNContactActiveYes=Activated synchronization DNContactActiveExample=Activated/Unactivated synchronization DNContact=Dolibarr contacts' DN diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang index da53538ce15..d62ea728387 100644 --- a/htdocs/langs/fr_FR/admin.lang +++ b/htdocs/langs/fr_FR/admin.lang @@ -395,6 +395,8 @@ AdherentMailRequired=EMail obligatoire pour cr ##### LDAP setup ##### LDAPSetup=Configuration du module LDAP LDAPFunctionsNotAvailableOnPHP=Les fonctions LDAP ne sont pas disponibles sur votre PHP +LDAPSynchronizeUsersAndGroup=Synchronisation des utilisateurs et groupes Dolibarr vers LDAP +LDAPSynchronizeContacts=Synchronisation des contacts Dolibarr vers LDAP LDAPTypeExample=OpenLdap, Egroupware ou Active Directory LDAPServer=Serveur LDAP LDAPServerPort=Port du serveur LDAP @@ -408,9 +410,10 @@ LDAPServerExample=Adresse du serveur (ex: localhost, 127.0.0.1, 192.168.0.2) #LDAPSuffixExample=DN complet (ex: dc=societe,dc=com) DNAdminExample=DN complet (ex: cn=adminldap,dc=societe,dc=com) LDAPPasswordExample=Mot de passe de l'administrateur +DBUserGroupActive=Synchronisation des utilisateurs et groupes DNUserExample=DN complet (ex: ou=users,dc=societe,dc=com) DNGroupExample=DN complet (ex: ou=groups,dc=societe,dc=com) -DNContactActive=Synchronisation des contacts ? +DNContactActive=Synchronisation des contacts DNContactActiveYes=Synchronisation activée DNContactActiveExample=Synchronisation activée/désactivée DNContact=DN des contacts Dolibarr