radius-0.7.1.0: Remote Authentication Dial In User Service (RADIUS)

Copyright(c) Erick Gonzalez 2017
LicenseBSD3
Maintainererick@codemonkeylabs.de
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Network.RADIUS.Microsoft

Description

This module provides encoding for some of the Microsoft specific attributes, particularly those needed for MSCHAPv2.

Synopsis

Documentation

encodeMPPESendKeyAttribute Source #

Arguments

:: Word16

16 bit random salt

-> ByteString

MPPE send key

-> ByteString

Password

-> ByteString

Authenticator in Access-Request message

-> PacketAttribute 

Encode the MS-MPPE-Send-Key RADIUS attribute as per [RFC2548]

encodeMPPERecvKeyAttribute Source #

Arguments

:: Word16

16 bit random salt

-> ByteString

MPPE recv key

-> ByteString

Password

-> ByteString

Authenticator in Access-Request message

-> PacketAttribute 

Encode the MS-MPPE-Recv-Key RADIUS attribute as per [RFC2548]

encodeMPPEEncryptionPolicyAttribute Source #

Arguments

:: Word32

Policy value

-> PacketAttribute 

Encode MS-MPPE-Encryption-Policy as per [RFC2548]

encodeMPPEEncryptionTypesAttribute Source #

Arguments

:: Word32 
-> PacketAttribute

Encryption types value (see RFC)

Encode MS-MPPE-Encryption-Types as per [RFC2548]

encodePrimaryDNSServer :: IPv4 -> PacketAttribute Source #

Encode MS-DNS-Primary-DNA-Server as per [RFC2548]

encodeSecondaryDNSServer :: IPv4 -> PacketAttribute Source #

Encode MS-DNS-Secondary-DNA-Server as per [RFC2548]