User-Visible kadmin-remctl Changes
+kadmin-remctl 3.2 (unreleased)
+
+ Properly handle incorrect password errors from Heimdal's kpasswd.
+ Previously, if change_passwd failed because the original password was
+ incorrect, kadmin-remctl would output a confusing Expect error.
+
kadmin-remctl 3.1 (2010-07-21)
In the Heimdal backend, don't set KADM5_POLICY_NORMAL_MASK or
my ($num, $error, $match, $before, $after)
= $kpasswd->expect (2, 'kpasswd: krb5_get_init_creds:',
+ 'kpasswd: Password incorrect',
'-re', 'New password for \S+:');
- if ($num == 1) {
- $after =~ s/\r?\n.*//s;
- $after =~ s/^\s+//;
- if ($after eq 'Preauthentication failed') {
- $after = 'Password incorrect while getting initial ticket';
+ if ($num == 1 || $num == 2) {
+ if ($num == 1) {
+ $after =~ s/\r?\n.*//s;
+ $after =~ s/^\s+//;
+ if ($after eq 'Preauthentication failed') {
+ $after = 'Password incorrect';
+ }
+ } else {
+ $after = 'Password incorrect';
}
warn "error: $after\n";
print "retstr: $after\n";