Implemented mschap authentication. More...
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/rad_assert.h>
#include <freeradius-devel/md5.h>
#include <freeradius-devel/sha1.h>
#include <ctype.h>
#include "rlm_mschap.h"
#include "mschap.h"
#include "smbdes.h"
#include "auth_wbclient.h"
Go to the source code of this file.
Macros | |
#define | ACB_AUTOLOCK 0x04000000 |
Account auto locked. More... | |
#define | ACB_DISABLED 0x00010000 |
User account disabled. More... | |
#define | ACB_DOMTRUST 0x00400000 |
Interdomain trust account. More... | |
#define | ACB_HOMDIRREQ 0x00020000 |
Home directory required. More... | |
#define | ACB_MNS 0x00200000 |
MNS logon user account. More... | |
#define | ACB_NORMAL 0x00100000 |
Normal user account. More... | |
#define | ACB_PW_EXPIRED 0x00020000 |
Password Expired. More... | |
#define | ACB_PWNOEXP 0x02000000 |
User password does not expire. More... | |
#define | ACB_PWNOTREQ 0x00040000 |
User password not required. More... | |
#define | ACB_SVRTRUST 0x01000000 |
Server trust account. More... | |
#define | ACB_TEMPDUP 0x00080000 |
Temporary duplicate account. More... | |
#define | ACB_WSTRUST 0x00800000 |
Workstation trust account. More... | |
Functions | |
static int | CC_HINT (nonnull(1, 2, 4, 5)) |
static int | CC_HINT (nonnull(1, 2, 4, 5, 6)) |
static rlm_rcode_t | CC_HINT (nonnull) |
static int | mod_bootstrap (CONF_SECTION *conf, void *instance) |
static int | mod_detach (UNUSED void *instance) |
static int | mod_instantiate (CONF_SECTION *conf, void *instance) |
static void | mppe_add_reply (REQUEST *request, char const *name, uint8_t const *value, size_t len) |
static void | mppe_chap2_gen_keys128 (uint8_t const *nt_hashhash, uint8_t const *response, uint8_t *sendkey, uint8_t *recvkey) |
static void | mppe_chap2_get_keys128 (uint8_t const *nt_hashhash, uint8_t const *nt_response, uint8_t *sendkey, uint8_t *recvkey) |
static void | mppe_GetAsymmetricStartKey (uint8_t *masterkey, uint8_t *sesskey, int keylen, int issend) |
static void | mppe_GetMasterKey (uint8_t const *nt_hashhash, uint8_t const *nt_response, uint8_t *masterkey) |
void | mschap_add_reply (REQUEST *request, unsigned char ident, char const *name, char const *value, size_t len) |
static rlm_rcode_t | mschap_error (rlm_mschap_t *inst, REQUEST *request, unsigned char ident, int mschap_result, int mschap_version, VALUE_PAIR *smb_ctrl) |
static ssize_t | mschap_xlat (char **out, size_t outlen, void const *mod_inst, UNUSED void const *xlat_inst, REQUEST *request, char const *fmt) |
static int | pdb_decode_acct_ctrl (char const *p) |
static int | write_all (int fd, char const *buf, int len) |
Variables | |
static const uint8_t | magic1 [27] |
static const uint8_t | magic2 [84] |
static const uint8_t | magic3 [84] |
static const CONF_PARSER | module_config [] |
static const CONF_PARSER | passchange_config [] |
module_t | rlm_mschap |
static const uint8_t | SHSpad1 [40] |
static const uint8_t | SHSpad2 [40] |
Implemented mschap authentication.
Definition in file rlm_mschap.c.
#define ACB_AUTOLOCK 0x04000000 |
Account auto locked.
Definition at line 61 of file rlm_mschap.c.
#define ACB_DISABLED 0x00010000 |
User account disabled.
Definition at line 51 of file rlm_mschap.c.
#define ACB_DOMTRUST 0x00400000 |
Interdomain trust account.
Definition at line 57 of file rlm_mschap.c.
#define ACB_HOMDIRREQ 0x00020000 |
Home directory required.
Definition at line 52 of file rlm_mschap.c.
#define ACB_MNS 0x00200000 |
MNS logon user account.
Definition at line 56 of file rlm_mschap.c.
#define ACB_NORMAL 0x00100000 |
Normal user account.
Definition at line 55 of file rlm_mschap.c.
#define ACB_PW_EXPIRED 0x00020000 |
Password Expired.
Definition at line 62 of file rlm_mschap.c.
#define ACB_PWNOEXP 0x02000000 |
User password does not expire.
Definition at line 60 of file rlm_mschap.c.
#define ACB_PWNOTREQ 0x00040000 |
User password not required.
Definition at line 53 of file rlm_mschap.c.
#define ACB_SVRTRUST 0x01000000 |
Server trust account.
Definition at line 59 of file rlm_mschap.c.
#define ACB_TEMPDUP 0x00080000 |
Temporary duplicate account.
Definition at line 54 of file rlm_mschap.c.
#define ACB_WSTRUST 0x00800000 |
Workstation trust account.
Definition at line 58 of file rlm_mschap.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 1323 of file rlm_mschap.c.
|
static |
Definition at line 1297 of file rlm_mschap.c.
|
static |
Definition at line 1281 of file rlm_mschap.c.
void mschap_add_reply | ( | REQUEST * | request, |
unsigned char | ident, | ||
char const * | name, | ||
char const * | value, | ||
size_t | len | ||
) |
Definition at line 680 of file rlm_mschap.c.
|
static |
|
static |
Definition at line 149 of file rlm_mschap.c.
|
static |
Definition at line 64 of file rlm_mschap.c.
|
static |
|
static |
Definition at line 1253 of file rlm_mschap.c.
|
static |
Definition at line 1258 of file rlm_mschap.c.
|
static |
Definition at line 1269 of file rlm_mschap.c.
|
static |
Definition at line 548 of file rlm_mschap.c.
|
static |
Definition at line 540 of file rlm_mschap.c.
module_t rlm_mschap |
Definition at line 2032 of file rlm_mschap.c.
|
static |
Definition at line 1241 of file rlm_mschap.c.
|
static |
Definition at line 1247 of file rlm_mschap.c.