From a7e307b95255dcccbbf802cd1b0f54fa3ed2dc13 Mon Sep 17 00:00:00 2001 From: mxi1 Date: Wed, 2 Dec 2009 08:51:34 +0000 Subject: [PATCH] the encrypted pw in the passwd table can work on SLES now git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4707 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 10e039911..9b772b6b7 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -1254,7 +1254,7 @@ sub becomeuser { return undef; } $passent=$passent->{password}; - if ($passent =~ /^\$1\$.*\$/) { #MD5 hash, calculate before comparison + if ($passent =~ /^\$(2a|1)\$.*\$/) { #MD5 or Blowfish hash, calculate before comparison $pass = crypt($pass,$passent); } #Not bothering with old DES method, for now assume plaintext if not set if ($pass eq $passent) {