diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index 6a8d8c93d6c..f21aad183c1 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -837,7 +837,7 @@ else if ($fuser->pass) print eregi_replace('.','*',$fuser->pass); else { - if ($user->admin) print $langs->trans("Crypted").': '.$fuser->pass_indatabase; + if ($user->admin) print $langs->trans("Crypted").': '.$fuser->pass_indatabase_crypted; else print $langs->trans("Hidden"); } print ""; diff --git a/htdocs/user/ldap.php b/htdocs/user/ldap.php index fb92a2c72c6..c285235ab4c 100644 --- a/htdocs/user/ldap.php +++ b/htdocs/user/ldap.php @@ -144,22 +144,6 @@ if ($conf->global->LDAP_SERVER_TYPE == "activedirectory") print "\n"; } -// Password not crypted -if ($conf->global->LDAP_FIELD_PASSWORD) -{ - print ''.$langs->trans("LDAPFieldPasswordNotCrypted").''; - print ''.$fuser->pass.''; - print "\n"; -} - -// Password crypted -if ($conf->global->LDAP_FIELD_PASSWORD_CRYPTED) -{ - print ''.$langs->trans("LDAPFieldPasswordCrypted").''; - print ''.$fuser->pass_crypted.''; - print "\n"; -} - // LDAP DN print 'LDAP '.$langs->trans("LDAPUserDn").''.$conf->global->LDAP_USER_DN."\n"; @@ -193,7 +177,8 @@ if ($conf->global->LDAP_SYNCHRO_ACTIVE == 'dolibarr2ldap') } print "\n"; -print "
\n"; + +if ($conf->global->LDAP_SYNCHRO_ACTIVE == 'dolibarr2ldap') print "
\n";