Modification de la gestion des mots de passe crypté pour faciliter les evolutions et interactions avec plugins.
This commit is contained in:
parent
9a044d1665
commit
bf0c1b3594
@ -115,6 +115,22 @@ print '</tr>';
|
|||||||
// Login
|
// Login
|
||||||
print '<tr><td>'.$langs->trans("Login").'</td><td class="valeur">'.$adh->login.' </td></tr>';
|
print '<tr><td>'.$langs->trans("Login").'</td><td class="valeur">'.$adh->login.' </td></tr>';
|
||||||
|
|
||||||
|
// Password not crypted
|
||||||
|
if ($conf->global->LDAP_FIELD_PASSWORD)
|
||||||
|
{
|
||||||
|
print '<tr><td>'.$langs->trans("LDAPFieldPasswordNotCrypted").'</td>';
|
||||||
|
print '<td class="valeur">'.$fuser->pass.'</td>';
|
||||||
|
print "</tr>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Password crypted
|
||||||
|
if ($conf->global->LDAP_FIELD_PASSWORD_CRYPTED)
|
||||||
|
{
|
||||||
|
print '<tr><td>'.$langs->trans("LDAPFieldPasswordCrypted").'</td>';
|
||||||
|
print '<td class="valeur">'.$fuser->pass_crypted.'</td>';
|
||||||
|
print "</tr>\n";
|
||||||
|
}
|
||||||
|
|
||||||
// Type
|
// Type
|
||||||
print '<tr><td>'.$langs->trans("Type").'</td><td class="valeur">'.$adh->type."</td></tr>\n";
|
print '<tr><td>'.$langs->trans("Type").'</td><td class="valeur">'.$adh->type."</td></tr>\n";
|
||||||
|
|
||||||
|
|||||||
@ -33,6 +33,7 @@ require_once(DOL_DOCUMENT_ROOT."/lib/ldap.class.php");
|
|||||||
|
|
||||||
$user->getrights('commercial');
|
$user->getrights('commercial');
|
||||||
|
|
||||||
|
$langs->load("admin");
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
$langs->load("ldap");
|
$langs->load("ldap");
|
||||||
|
|
||||||
@ -143,7 +144,21 @@ if ($conf->global->LDAP_SERVER_TYPE == "activedirectory")
|
|||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$langs->load("admin");
|
// 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";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user