On dirait qu'un mot de passe vide ne correspond pas à la complexité du mot de passe.
Voici ce que j'ai trouvé dans man passwd
As a general guideline, passwords should consist of 6 to 8 characters including one or
more characters from each of the following sets:
· lower case alphabetics
· digits 0 thru 9
· punctuation marks
Care must be taken not to include the system default erase or kill characters. passwd will reject any password which is not
suitably complex.
MODIFIER: , vous ne pouvez malheureusement pas définir le mot de passe pour qu'il se vide par l'intermédiaire de cette interface utilisateur.
lien
est la fonction qui décide d'activer ou non le bouton "Modifier".
if (strlen (password) < MIN_PASSWORD_LEN) {
can_change = FALSE;
if (password[0] == '#define MIN_PASSWORD_LEN 6
') {
tooltip = _("You need to enter a new password");
}
else {
tooltip = _("The new password is too short");
}
}
else if (strcmp (password, verify) != 0) {
can_change = FALSE;
if (verify[0] == 'As a general guideline, passwords should consist of 6 to 8 characters including one or
more characters from each of the following sets:
· lower case alphabetics
· digits 0 thru 9
· punctuation marks
Care must be taken not to include the system default erase or kill characters. passwd will reject any password which is not
suitably complex.
') {
tooltip = _("You need to confirm the password");
}
else {
tooltip = _("The passwords do not match");
}
}
else if (!um->old_password_ok) {
can_change = FALSE;
if (old_password[0] == ' if (strlen (password) < MIN_PASSWORD_LEN) {
can_change = FALSE;
if (password[0] == '#define MIN_PASSWORD_LEN 6
') {
tooltip = _("You need to enter a new password");
}
else {
tooltip = _("The new password is too short");
}
}
else if (strcmp (password, verify) != 0) {
can_change = FALSE;
if (verify[0] == '%pre%') {
tooltip = _("You need to confirm the password");
}
else {
tooltip = _("The passwords do not match");
}
}
else if (!um->old_password_ok) {
can_change = FALSE;
if (old_password[0] == '%pre%') {
tooltip = _("You need to enter your current password");
}
else {
tooltip = _("The current password is not correct");
}
}
else {
can_change = TRUE;
tooltip = NULL;
}
gtk_widget_set_sensitive (um->ok_button, can_change);
') {
tooltip = _("You need to enter your current password");
}
else {
tooltip = _("The current password is not correct");
}
}
else {
can_change = TRUE;
tooltip = NULL;
}
gtk_widget_set_sensitive (um->ok_button, can_change);
Le mot de passe minimal len 6 est codé en dur: (
lien
%pre%