View | Details | Raw Unified | Return to bug 25031
Collapse All | Expand All

(-)src/support/dbmmanage (-1 / +1 lines)
Lines 338-344 Link Here
338
    } elsif (substr($chkpass, 0, 5) eq '{SHA}') {
338
    } elsif (substr($chkpass, 0, 5) eq '{SHA}') {
339
        need_sha1_crypt;
339
        need_sha1_crypt;
340
        $crypt_method = "sha1";
340
        $crypt_method = "sha1";
341
    } elsif (length($chkpass) == 13 && $chkpass ne $testpass) {
341
    } elsif ((length($chkpass) == 13 && $chkpass ne $testpass) || ($chkpass =~ m/^\$[0-9]\$/)) {
342
        $crypt_method = "crypt";
342
        $crypt_method = "crypt";
343
    } else {
343
    } else {
344
        $crypt_method = "plain";
344
        $crypt_method = "plain";

Return to bug 25031