diff -uwr radius_auth/bin/radius_auth.py radius_auth_uber/bin/radius_auth.py --- radius_auth/bin/radius_auth.py 2013-08-22 22:20:14.000000000 -0700 +++ radius_auth_uber/bin/radius_auth.py 2015-09-09 07:52:37.000000000 -0700 @@ -1122,8 +1122,15 @@ password -- The password to check when authenticating """ + # pull out port number + if ':' in server: + server, port = server.split(':') + port = RadiusAuth.stringToIntegerOrDefault(port, 1812) + else: + port = 1812 + # Create a new connection to the server - srv = Client(server=server, secret=secret, dict=Dictionary( RadiusAuth.getDictionaryFile() )) + srv = Client(server=server, authport=port, secret=secret, dict=Dictionary( RadiusAuth.getDictionaryFile() )) # Create the authentication packet req=srv.CreateAuthPacket(code=pyrad.packet.AccessRequest, User_Name=username, NAS_Identifier=self.identifier)