btimby / py-radius

RADIUS authentication module
Other
62 stars 38 forks source link

The demo code in README doesnt work as expected #26

Open omgitstehtris opened 4 years ago

omgitstehtris commented 4 years ago

The line radius.authenticate(username, password, secret, host='radius', port=1812) doesn't seem to work as expected.

I believe this is because secret is supposed to be a kwarg. radius.authenticate takes args: (self, username, password, **kwargs). So if you print the username/password later in radius.py, it outputs the password and secret.

I got around it by doing radius.authenticate(username=username, password=password, secret=secret, host='radius', port=1812)