$73 GRAYBYTE WORDPRESS FILE MANAGER $43

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 147.79.69.41 | ADMIN IP 216.73.216.215
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python311/lib/python3.11/site-packages/pyroute2/cli/auth/

HOME
Current File : /opt/alt/python311/lib/python3.11/site-packages/pyroute2/cli/auth//auth_radius.py
import os

import pyrad.packet
from pyrad.client import Client
from pyrad.dictionary import Dictionary


class RadiusAuthManager(object):
    def __init__(self, headers):
        user = headers['X-Auth-User']
        password = headers['X-Auth-Password']

        client = Client(
            server=os.environ.get('RADIUS_SERVER'),
            secret=os.environ.get('RADIUS_SECRET').encode('ascii'),
            dict=Dictionary('dictionary'),
        )

        req = client.CreateAuthPacket(
            code=pyrad.packet.AccessRequest, User_Name=user
        )

        req['User-Password'] = req.PwCrypt(password)
        reply = client.SendPacket(req)
        self.auth = reply.code

    def check(self, obj, tag):
        return self.auth == pyrad.packet.AccessAccept

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
8 May 2024 6.33 PM
root / root
0755
__pycache__
--
8 May 2024 6.33 PM
root / root
0755
__init__.py
0 KB
8 May 2024 6.33 PM
root / root
0644
auth_keystone.py
1.166 KB
8 May 2024 6.33 PM
root / root
0644
auth_radius.py
0.756 KB
8 May 2024 6.33 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF