From c965878bdd96582b01a4c7cdc82bdc8e3203008d Mon Sep 17 00:00:00 2001 From: kkalev Date: Tue, 9 Dec 2003 14:21:18 +0000 Subject: [PATCH] Use the User-Password attribute instead of Password in user_test.php3 --- Changelog | 1 + htdocs/user_test.php3 | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index a880fbe..e0abac0 100644 --- a/Changelog +++ b/Changelog @@ -30,6 +30,7 @@ Ver 1.65: * Add a general_nas_type and a per nas type directive and pass that to snmpfinger. Updated snmpfinger to also support lucent equipment apart from cisco * Update the HOWTO file with a few comments on the general_nas_type directive +* Use the User-Password attribute instead of Password in user_test.php3 Ver 1.63: * Do an eval on the attribute description strings in the user_edit page. That will allow the login-time creation page to work properly. diff --git a/htdocs/user_test.php3 b/htdocs/user_test.php3 index d149463..bcbdc3e 100644 --- a/htdocs/user_test.php3 +++ b/htdocs/user_test.php3 @@ -83,13 +83,13 @@ if ($test_user == 1){ if ($test_login){ $test=1; fwrite($fp, "User-Name = \"$config[general_test_account_login]\"\n"); - fwrite($fp, "Password = \"$config[general_test_account_password]\"\n"); + fwrite($fp, "User-Password = \"$config[general_test_account_password]\"\n"); pclose($fp); } else{ fwrite($fp, "User-Name = \"$login\"\n"); if ($auth_proto == 'pap') - fwrite($fp, "Password = \"$passwd\"\n"); + fwrite($fp, "User-Password = \"$passwd\"\n"); else if ($auth_proto == 'chap') fwrite($fp, "CHAP-Password = \"$passwd\"\n"); if (strlen($extra)) -- 2.39.5