]> eyrie.org Git - kerberos/kadmin-remctl.git/commitdiff
Added another case for kpasswd error translation
authorJon Robertson <jonrober@stanford.edu>
Tue, 16 Feb 2010 17:59:57 +0000 (09:59 -0800)
committerJon Robertson <jonrober@stanford.edu>
Tue, 16 Feb 2010 17:59:57 +0000 (09:59 -0800)
Added case for Heimdal error where password is short but not extremely short,
mapping to the one MIT too short error.

kadmin-backend-heim

index 5fdc61d9bc88149f67de0ccf0090d4ff92361c37..050f44c096fe5ba6bd83f87f675c76168f6a7538 100755 (executable)
@@ -433,7 +433,7 @@ sub kpasswd {
         $after =~ s/\..*//s;
         $after =~ s/\r?\n/ /g;
         $after =~ s/\s+See the kpasswd man page.*//s;
-        if ($after =~ /^External password quality program failed: it\'s WAY too short/) {
+        if ($after =~ /^External password quality program failed: (it's WAY|it is) too short/) {
             $after = 'New password is too short';
         } elsif ($after =~ /^External password quality program failed: it is based on a dictionary word/
             || $after =~ /^External password quality program failed: it does not contain enough DIFFERENT characters/) {