Sécu: Le mot de passe ne doit pas apparaitre meme crypté sauf pour admin qui peut apparaitre crypté.
This commit is contained in:
parent
410733b0a5
commit
02171d7a0b
@ -837,7 +837,7 @@ else
|
|||||||
if ($fuser->pass) print eregi_replace('.','*',$fuser->pass);
|
if ($fuser->pass) print eregi_replace('.','*',$fuser->pass);
|
||||||
else
|
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");
|
else print $langs->trans("Hidden");
|
||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
|
|||||||
@ -144,22 +144,6 @@ if ($conf->global->LDAP_SERVER_TYPE == "activedirectory")
|
|||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Password not crypted
|
|
||||||
if ($conf->global->LDAP_FIELD_PASSWORD)
|
|
||||||
{
|
|
||||||
print '<tr><td width="25%" valign="top">'.$langs->trans("LDAPFieldPasswordNotCrypted").'</td>';
|
|
||||||
print '<td>'.$fuser->pass.'</td>';
|
|
||||||
print "</tr>\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Password crypted
|
|
||||||
if ($conf->global->LDAP_FIELD_PASSWORD_CRYPTED)
|
|
||||||
{
|
|
||||||
print '<tr><td width="25%" valign="top">'.$langs->trans("LDAPFieldPasswordCrypted").'</td>';
|
|
||||||
print '<td>'.$fuser->pass_crypted.'</td>';
|
|
||||||
print "</tr>\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
// LDAP DN
|
// LDAP DN
|
||||||
print '<tr><td>LDAP '.$langs->trans("LDAPUserDn").'</td><td class="valeur">'.$conf->global->LDAP_USER_DN."</td></tr>\n";
|
print '<tr><td>LDAP '.$langs->trans("LDAPUserDn").'</td><td class="valeur">'.$conf->global->LDAP_USER_DN."</td></tr>\n";
|
||||||
|
|
||||||
@ -193,7 +177,8 @@ if ($conf->global->LDAP_SYNCHRO_ACTIVE == 'dolibarr2ldap')
|
|||||||
}
|
}
|
||||||
|
|
||||||
print "</div>\n";
|
print "</div>\n";
|
||||||
print "<br>\n";
|
|
||||||
|
if ($conf->global->LDAP_SYNCHRO_ACTIVE == 'dolibarr2ldap') print "<br>\n";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user