]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
Allow the user to add extra attributes in the test user page
authorkkalev <kkalev>
Mon, 23 Sep 2002 12:38:18 +0000 (12:38 +0000)
committerkkalev <kkalev>
Mon, 23 Sep 2002 12:38:18 +0000 (12:38 +0000)
Changelog
htdocs/user_test.php3

index 774e8c93c588312a181eb613b93033b9fb5a96e6..8e7f78ff14fdb6a54090fd4736af4d8984105bdf 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -7,6 +7,7 @@ Ver 1.60:
 * Add a few more comments in the admin.conf
 * Update the FAQ with an entry about the Online Users page not showing anything.
 * Update the FAQ with an entry about sessions.
+* Allow the user to add extra attributes in the test user page
 Ver 1.59:
 * Small html fixes in user_edit.php3 and password.php3
 * Show number of failed logins in the last 7 days in the user admin page
index c71a83cb4b7bf77fd21946475d654551e073ba03..177716e5150cb1d80cd0b916f2eb6bb1ce660032 100644 (file)
@@ -89,6 +89,8 @@ if ($test_user == 1){
                                fwrite($fp, "Password = \"$passwd\"\n");
                        else if ($auth_proto == 'chap')
                                fwrite($fp, "CHAP-Password = \"$passwd\"\n");
+                       if (strlen($extra))
+                               fwrite($fp,$extra);
                        pclose($fp);
                }
                $reply = file($tmp_file);
@@ -160,6 +162,14 @@ Radius Server Port
 </tr>
 <tr>
 <td align=right bgcolor="#d0ddb0">
+Extra Attributes
+</td>
+<td>
+<textarea name="extra" cols="35" wrap="PHYSICAL" rows="4"></textarea>
+</td>
+</tr>
+<tr>
+<td align=right bgcolor="#d0ddb0">
 Authentication Protocol
 </td>
 <td>