ntlm_sspi_auth.cc File Reference
#include "squid.h"
#include "base64.h"
#include "helper/protocol_defines.h"
#include "ntlmauth/ntlmauth.h"
#include "ntlmauth/support_bits.cci"
#include "sspi/sspwin32.h"
#include "util.h"
#include <cctype>
#include <lm.h>
Include dependency graph for ntlm_sspi_auth.cc:

Go to the source code of this file.

Macros

#define FAIL_DEBUG   0
 

Functions

static int Valid_Group (char *UserName, char *Group)
 
static NtlmError ntlm_check_auth (ntlm_authenticate *auth, char *user, char *domain, int auth_length)
 
static void helperfail (const char *reason)
 
static void usage ()
 
static void process_options (int argc, char *argv[])
 
static bool token_decode (size_t *decodedLen, uint8_t decoded[], const char *buf)
 
static int manage_request ()
 
int main (int argc, char *argv[])
 

Variables

int NTLM_packet_debug_enabled = 0
 
static int have_challenge
 
char * NTAllowedGroup
 
char * NTDisAllowedGroup
 
int UseDisallowedGroup = 0
 
int UseAllowedGroup = 0
 
char * my_program_name = nullptr
 

Macro Definition Documentation

◆ FAIL_DEBUG

#define FAIL_DEBUG   0

Definition at line 68 of file ntlm_sspi_auth.cc.

Function Documentation

◆ helperfail()

static void helperfail ( const char *  reason)
static

Definition at line 229 of file ntlm_sspi_auth.cc.

References SEND_BH.

Referenced by manage_request().

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ manage_request()

◆ ntlm_check_auth()

static NtlmError ntlm_check_auth ( ntlm_authenticate auth,
char *  user,
char *  domain,
int  auth_length 
)
static

◆ process_options()

static void process_options ( int  argc,
char *  argv[] 
)
static

◆ token_decode()

static bool token_decode ( size_t decodedLen,
uint8_t  decoded[],
const char *  buf 
)
static

◆ usage()

static void usage ( )
static

Definition at line 247 of file ntlm_sspi_auth.cc.

References my_program_name.

Referenced by process_options().

◆ Valid_Group()

static int Valid_Group ( char *  UserName,
char *  Group 
)
static

Definition at line 101 of file ntlm_sspi_auth.cc.

References FALSE, NULL, and TRUE.

Referenced by ntlm_check_auth().

Variable Documentation

◆ have_challenge

int have_challenge
static

Definition at line 89 of file ntlm_sspi_auth.cc.

Referenced by manage_request().

◆ my_program_name

char* my_program_name = nullptr

Definition at line 244 of file ntlm_sspi_auth.cc.

Referenced by main(), and usage().

◆ NTAllowedGroup

char* NTAllowedGroup

Definition at line 90 of file ntlm_sspi_auth.cc.

Referenced by ntlm_check_auth(), and process_options().

◆ NTDisAllowedGroup

char* NTDisAllowedGroup

Definition at line 91 of file ntlm_sspi_auth.cc.

Referenced by ntlm_check_auth(), and process_options().

◆ NTLM_packet_debug_enabled

int NTLM_packet_debug_enabled = 0

Definition at line 88 of file ntlm_sspi_auth.cc.

Referenced by manage_request(), and process_options().

◆ UseAllowedGroup

int UseAllowedGroup = 0

Definition at line 93 of file ntlm_sspi_auth.cc.

Referenced by ntlm_check_auth(), and process_options().

◆ UseDisallowedGroup

int UseDisallowedGroup = 0

Definition at line 92 of file ntlm_sspi_auth.cc.

Referenced by ntlm_check_auth(), and process_options().

 

Introduction

Documentation

Support

Miscellaneous