univention.radius package

univention.radius.get_NetworkAccess()[source]

Submodules

univention.radius.networkaccess module

univention.radius.networkaccess.convert_network_access_attr(attributes)[source]
univention.radius.networkaccess.convert_ucs_debuglevel(ucs_debuglevel)[source]
univention.radius.networkaccess.decode_stationId(stationId)[source]
univention.radius.networkaccess.parse_username(username)[source]

convert username from host/-format to $-format if required

univention.radius.networkaccess.get_ldapConnection()[source]
exception univention.radius.networkaccess.NetworkAccessError(msg)[source]

Bases: exceptions.Exception

exception univention.radius.networkaccess.UserNotAllowedError(msg)[source]

Bases: univention.radius.networkaccess.NetworkAccessError

exception univention.radius.networkaccess.MacNotAllowedError(msg)[source]

Bases: univention.radius.networkaccess.NetworkAccessError

exception univention.radius.networkaccess.NoHashError(msg)[source]

Bases: univention.radius.networkaccess.NetworkAccessError

exception univention.radius.networkaccess.UserDeactivatedError(msg)[source]

Bases: univention.radius.networkaccess.NetworkAccessError

class univention.radius.networkaccess.NetworkAccess(username, stationId, loglevel=None, logfile=None)[source]

Bases: object

_setup_logger(loglevel, logfile)[source]
build_access_dict(ldap_result)[source]
get_user_network_access(uid)[source]
get_station_network_access(mac_address)[source]
get_groups_network_access(dn)[source]
evaluate_ldap_network_access(access, level='')[source]
check_proxy_filter_policy()[source]

Dummy function for UCS@school

check_network_access()[source]
check_station_whitelist()[source]
getNTPasswordHash()[source]

stationId may be None if it was not supplied to the program

univention.radius.pyMsChapV2 module

univention.radius.pyMsChapV2.md4(data)[source]
univention.radius.pyMsChapV2.DesEncrypt(data, key)[source]
univention.radius.pyMsChapV2.HashNtPasswordHash(PasswordHash)[source]
univention.radius.pyMsChapV2.ChallengeResponse(Challenge, PasswordHash)[source]
univention.radius.pyMsChapV2.executeTestVectors()[source]

univention.radius.school_networkaccess module

class univention.radius.school_networkaccess.SchoolNetworkAccess(*args, **kwargs)[source]

Bases: univention.radius.networkaccess.NetworkAccess

load_info()[source]
check_proxy_filter_policy()[source]
evaluate_proxy_network_access(username)[source]