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.get_ldapConnection()[source]
exception univention.radius.networkaccess.NetworkAccessError(msg)[source]

Bases: 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

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 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.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]

Dummy function for UCS@school

evaluate_proxy_network_access(username)[source]

univention.radius.utils module

univention.radius.utils.decode_stationId(stationId)[source]
univention.radius.utils.parse_username(username)[source]

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