Project

General

Profile

radius_auth_port_number.patch

Luke Murphey, 10/28/2015 09:03 PM

Download (1009 Bytes)

View differences:

radius_auth_uber/bin/radius_auth.py 2015-09-09 07:52:37.000000000 -0700
1122 1122
        password -- The password to check when authenticating
1123 1123
        """
1124 1124
        
1125
        # pull out port number
1126
        if ':' in server:
1127
          server, port = server.split(':')
1128
          port = RadiusAuth.stringToIntegerOrDefault(port, 1812)
1129
        else:
1130
          port = 1812
1131
        
1125 1132
        # Create a new connection to the server
1126
        srv = Client(server=server, secret=secret, dict=Dictionary( RadiusAuth.getDictionaryFile() ))
1133
        srv = Client(server=server, authport=port, secret=secret, dict=Dictionary( RadiusAuth.getDictionaryFile() ))
1127 1134
        
1128 1135
        # Create the authentication packet
1129 1136
        req=srv.CreateAuthPacket(code=pyrad.packet.AccessRequest, User_Name=username, NAS_Identifier=self.identifier)