]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
Use the User-Password attribute instead of Password in user_test.php3
authorkkalev <kkalev>
Tue, 9 Dec 2003 14:21:18 +0000 (14:21 +0000)
committerkkalev <kkalev>
Tue, 9 Dec 2003 14:21:18 +0000 (14:21 +0000)
Changelog
htdocs/user_test.php3

index a880fbedc13193ddeb95c25effcb806542dc1096..e0abac09867c5eba97bb1eeb97f63e18a461548a 100644 (file)
--- 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.
index d14946319be5ca59a04ab8188cd49cebaa8b1c7e..bcbdc3ed9d80617601506dd459800a70d4abcb66 100644 (file)
@@ -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))