diff --git a/htdocs/includes/login/functions_ldap.php b/htdocs/includes/login/functions_ldap.php index 91ad308f7ad..64c41f041f2 100644 --- a/htdocs/includes/login/functions_ldap.php +++ b/htdocs/includes/login/functions_ldap.php @@ -118,7 +118,7 @@ function check_user_password_ldap($usertotest,$passwordtotest) $ldap->close(); sleep(1); $langs->load('ldap'); - $_SESSION["dol_loginmesg"]=$langs->trans("UserMustChangePassNextLogon",$ldap->domainFQDN); + $_SESSION["dol_loginmesg"]=$langs->trans("YouMustChangePassNextLogon",$ldap->domainFQDN); return $login; } else diff --git a/htdocs/langs/en_US/ldap.lang b/htdocs/langs/en_US/ldap.lang index 74c1324a754..1706a958fbf 100644 --- a/htdocs/langs/en_US/ldap.lang +++ b/htdocs/langs/en_US/ldap.lang @@ -1,6 +1,7 @@ # Dolibarr language file - en_US - ldap DomainPassword=Password for domain -UserMustChangePassNextLogon=You must change your password on the domain %s +YouMustChangePassNextLogon=You must change your password on the domain %s +UserMustChangePassNextLogon=User must change password on the domain %s LdapUacf_NORMAL_ACCOUNT=User account LdapUacf_DONT_EXPIRE_PASSWORD=Password never expires LdapUacf_ACCOUNTDISABLE=Account is disabled on this domain @@ -23,3 +24,4 @@ SynchronizeDolibarr2Ldap=Synchronize user (Dolibarr -> LDAP) UserSynchronized=User synchronized ForceSynchronize=Force synchronizing Dolibarr -> LDAP ErrorFailedToReadLDAP=Failed to read LDAP database. Check LDAP module setup and database accessibility. +DomainUser=Domain user %s \ No newline at end of file diff --git a/htdocs/langs/en_US/users.lang b/htdocs/langs/en_US/users.lang index 8480a045416..102a2b8fae5 100755 --- a/htdocs/langs/en_US/users.lang +++ b/htdocs/langs/en_US/users.lang @@ -79,7 +79,6 @@ GuiLanguage=Interface language InternalUser=Internal user MyInformations=My data ExportDataset_user_1=Dolibarr's users and properties -DomainUser=Domain user Reactivate=Reactivate CreateInternalUserDesc=This form allows you to creat an user internal to your company/fundation. To creat an external user (customer, supplier, ...), use button 'Create Dolibarr user' from third party's contact card. InternalExternalDesc=An internal user is a user that is part of your company/fundation.
An external user is a customer, supplier or other.

In both cases, permissions defines rights on Dolibarr, also external user can have a different menu manager than internal user (See Home - Setup - Display) diff --git a/htdocs/langs/fr_FR/ldap.lang b/htdocs/langs/fr_FR/ldap.lang index b2a3b1f81b3..a66c1174344 100644 --- a/htdocs/langs/fr_FR/ldap.lang +++ b/htdocs/langs/fr_FR/ldap.lang @@ -1,6 +1,7 @@ # Dolibarr language file - fr_FR - ldap DomainPassword=Mot de passe du domaine -UserMustChangePassNextLogon=Vous devez modifier votre mot de passe sur le domaine %s +YouMustChangePassNextLogon=Vous devez modifier votre mot de passe sur le domaine %s +UserMustChangePassNextLogon=L'utilisateur doit modifier son mot de passe sur le domaine %s LdapUacf_NORMAL_ACCOUNT=Compte Utilisateur LdapUacf_DONT_EXPIRE_PASSWORD=Le mot de passe n'expire jamais LdapUacf_ACCOUNTDISABLE=Le compte est désactivé sur le domaine @@ -23,3 +24,4 @@ SynchronizeDolibarr2Ldap=Synchroniser utilisateur (Dolibarr -> LDAP) UserSynchronized=Utilisateur synchronisé ForceSynchronize=Forcer synchro Dolibarr -> LDAP ErrorFailedToReadLDAP=Echec de la lecture de l'annuaire LDAP. Vérifier la configuration du module LDAP et l'accessibilité de l'annuaire. +DomainUser=Utilisateur du domaine %s diff --git a/htdocs/langs/fr_FR/users.lang b/htdocs/langs/fr_FR/users.lang index 9a7e2946ba9..b8cf365782d 100755 --- a/htdocs/langs/fr_FR/users.lang +++ b/htdocs/langs/fr_FR/users.lang @@ -79,7 +79,6 @@ GuiLanguage=Langage de l'interface InternalUser=Utilisateur interne MyInformations=Mes informations ExportDataset_user_1=Utilisateurs Dolibarr et attributs -DomainUser=Utilisateur du domaine Reactivate=Réactiver CreateInternalUserDesc=Cet écran permet de créer un utilisateur interne à votre société/institution. Pour créer un utilisateur externe (client, fournisseur, ...), utiliser le bouton 'Créer utilisateur Dolibarr' qui se trouve sur la fiche contact du tiers en question. InternalExternalDesc=Un utilisateur interne est un utilisateur appartenant à votre société/institution.
Un utilisateur externe est un utilisateur client, fournisseur ou autre.

Dans les 2 cas, les permissions utilisateurs définissent les droits d'accès mais l'utilisateur externe peut en plus avoir un gestionnaire de menu différent de l'utilisateur interne (Voir Accueil - Configuration - Affichage) diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index 244ad11ba12..8e4b0081fac 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -727,7 +727,7 @@ else $passDoNotExpire = 1; } } - if ($ldap->pwdlastset == 0 && $ldap->pwdlastset != "") + if ($ldap->pwdlastset == 0) { $userChangePassNextLogon = 1; } @@ -882,7 +882,7 @@ else } else if ($fuser->ldap_sid) { - print $langs->trans("DomainUser"); + print $langs->trans("DomainUser",$ldap->domainFQDN); } else {