The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
NTLM authentication against the wbclient library. More...
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/util/debug.h>
#include <wbclient.h>
#include <core/ntstatus.h>
#include "rlm_mschap.h"
#include "mschap.h"
#include "auth_wbclient.h"
Go to the source code of this file.
Macros | |
#define | NT_LENGTH 24 |
#define | WBC_MSV1_0_ALLOW_MSVCHAPV2 0x00010000 |
Functions | |
int | do_auth_wbclient (rlm_mschap_t const *inst, request_t *request, uint8_t const *challenge, uint8_t const *response, uint8_t nthashhash[NT_DIGEST_LENGTH], mschap_auth_call_env_t *env_data) |
Check NTLM authentication direct to winbind via Samba's libwbclient library. More... | |
static char * | wbclient_normalise_username (TALLOC_CTX *ctx, struct wbcContext *wb_ctx, char const *dom_name, char const *name) |
Use Winbind to normalise a username. More... | |
NTLM authentication against the wbclient library.
Definition in file auth_wbclient.c.
#define NT_LENGTH 24 |
Definition at line 42 of file auth_wbclient.c.
#define WBC_MSV1_0_ALLOW_MSVCHAPV2 0x00010000 |
Definition at line 39 of file auth_wbclient.c.
int do_auth_wbclient | ( | rlm_mschap_t const * | inst, |
request_t * | request, | ||
uint8_t const * | challenge, | ||
uint8_t const * | response, | ||
uint8_t | nthashhash[NT_DIGEST_LENGTH], | ||
mschap_auth_call_env_t * | env_data | ||
) |
Check NTLM authentication direct to winbind via Samba's libwbclient library.
[in] | inst | Module instance. |
[in] | request | Current request. |
[in] | challenge | MS CHAP challenge. |
[in] | response | MS CHAP response. |
[out] | nthashhash | Hash returned on success. |
[in] | env_data | Call_env data for current authentication. |
Definition at line 93 of file auth_wbclient.c.
|
static |
Use Winbind to normalise a username.
[in] | ctx | The talloc context where the result is parented from |
[in] | wb_ctx | The winbind context |
[in] | dom_name | The domain of the user |
[in] | name | The username (without the domain) to be normalised |
Definition at line 54 of file auth_wbclient.c.