Module eradius_auth

user authentication helper functions.

Description

user authentication helper functions

Function Index

ascii_to_unicode/1turn a plain text password (either binary or list representation) into UTF-16 binary representation.
challenge_response/2calculate MS-CHAP challenge response.
challenge_response/2calculate MS-CHAP challenge response.
chap/3CHAP authentication.
check_password/2check the request password using all available authentication mechanisms.
des_key_from_hash/1
mppe_generate_session_keys/3
mppe_get_asymetric_send_start_key/2calculate first MPPE send key.
mppe_get_master_key/2calculate MPPE master key.
ms_chap/3MS-CHAP authentication.
ms_chap_v2/4MS-CHAP-V2 authentication.
nt_hash/1calculte MD4 hash for value.
nt_password_hash/1calculate the MD4 hash of a plain text password the NT way.
pap/2PAP authentication.
v2_generate_authenticator_response/5
v2_generate_nt_response/4generate MS-CHAP NT-Response.

Function Details

ascii_to_unicode/1

ascii_to_unicode(Bin) -> any()

turn a plain text password (either binary or list representation) into UTF-16 binary representation.

challenge_response/2

challenge_response(Challenge, PasswdHash) -> any()

calculate MS-CHAP challenge response

challenge_response/2

challenge_response(Challenge, PasswdHash) -> any()

calculate MS-CHAP challenge response

chap/3

chap(Passwd::binary(), X2::binary(), ChapChallenge::binary()) -> boolean()

CHAP authentication

check_password/2

check_password(Password::binary(), Radius_request::#radius_request{}) -> false | {boolean(), eradius_lib:attribute_list()}

check the request password using all available authentication mechanisms. Tries CHAP, then MS-CHAP, then MS-CHAPv2, finally PAP.

des_key_from_hash/1

des_key_from_hash(Hash) -> any()

mppe_generate_session_keys/3

mppe_generate_session_keys(PasswdHash, NTResponse, SessionKeyStrength) -> any()

mppe_get_asymetric_send_start_key/2

mppe_get_asymetric_send_start_key(MasterKey, SessionKeyLength) -> any()

calculate first MPPE send key

mppe_get_master_key/2

mppe_get_master_key(PasswordHashHash, NTResponse) -> any()

calculate MPPE master key

ms_chap/3

ms_chap(Passwd::binary(), Challenge::binary(), X3::binary()) -> false | {true, eradius_lib:attribute_list()}

MS-CHAP authentication

ms_chap_v2/4

ms_chap_v2(UserName::binary(), Passwd::binary(), AuthenticatorChallenge::binary(), X4::binary()) -> false | {true, eradius_lib:attribute_list()}

MS-CHAP-V2 authentication

nt_hash/1

nt_hash(Value) -> any()

calculte MD4 hash for value

nt_password_hash/1

nt_password_hash(Passwd) -> any()

calculate the MD4 hash of a plain text password the NT way

pap/2

pap(X1::binary(), X2::binary()) -> boolean()

PAP authentication

v2_generate_authenticator_response/5

v2_generate_authenticator_response(PasswdHash, NTResponse, PeerChallenge, AuthenticatorChallenge, UserName) -> any()

v2_generate_nt_response/4

v2_generate_nt_response(AuthenticatorChallenge, PeerChallenge, UserName, PasswdHash) -> any()

generate MS-CHAP NT-Response


Generated by EDoc