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)
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)