Commit 0557d91e authored by Ray Bellis's avatar Ray Bellis

change test user name

parent d2c5ba72
#!/bin/sh
radclient -r 1 127.0.0.1:1812 auth secret <<__EOT__
User-Name = ray
User-Name = myuser
User-Password = mypass
Framed-Protocol = 1
NAS-IP-Address = 10.1.2.1
......
......@@ -7,7 +7,7 @@ RADIUS.Dictionary.load('dictionary.rfc2865');
let client = new RADIUS.Client({host: '127.0.0.1', secret: 'secret'});
let attrs = new RADIUS.AttributeList();
attrs.add('User-Name', 'ray');
attrs.add('User-Name', 'myuser');
attrs.add('User-Password', 'mypass');
client.request('Access-Request', attrs).then(function(p) {
......
......@@ -4,7 +4,7 @@ const RADIUS = require('.');
const logic = {
auth: function(req, res) {
if (req.get('User-Name') == 'ray' &&
if (req.get('User-Name') == 'myuser' &&
req.get('User-Password') == 'mypass')
{
res.code = 'Access-Accept';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment