ext_lm_group_acl.cc File Reference
#include "squid.h"
#include "helper/protocol_defines.h"
#include "rfc1738.h"
#include "util.h"
#include <cassert>
#include <cctype>
#include <cstring>
#include <windows.h>
#include <lm.h>
#include <ntsecapi.h>
Include dependency graph for ext_lm_group_acl.cc:

Go to the source code of this file.

Functions

char * AllocStrFromLSAStr (LSA_UNICODE_STRING LsaStr)
 
char * GetDomainName (void)
 
static int wcstrcmparray (const wchar_t *str, const char **array)
 
int Valid_Local_Groups (char *UserName, const char **Groups)
 
int Valid_Global_Groups (char *UserName, const char **Groups)
 
static void usage (const char *program)
 
void process_options (int argc, char *argv[])
 
int main (int argc, char *argv[])
 

Variables

int use_global = 0
 
int use_PDC_only = 0
 
const char * program_name
 
pid_t mypid
 
char * machinedomain
 
int use_case_insensitive_compare = 0
 
char * DefaultDomain = nullptr
 
const char NTV_VALID_DOMAIN_SEPARATOR [] = "\\/"
 

Function Documentation

◆ AllocStrFromLSAStr()

char * AllocStrFromLSAStr ( LSA_UNICODE_STRING  LsaStr)

Definition at line 109 of file ext_lm_group_acl.cc.

References NULL, safe_free, and xmalloc.

Referenced by GetDomainName().

◆ GetDomainName()

char * GetDomainName ( void  )

Definition at line 131 of file ext_lm_group_acl.cc.

References AllocStrFromLSAStr(), and debug().

Referenced by main().

◆ main()

◆ process_options()

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

◆ usage()

static void usage ( const char *  program)
static

Definition at line 457 of file ext_lm_group_acl.cc.

Referenced by process_options().

◆ Valid_Global_Groups()

int Valid_Global_Groups ( char *  UserName,
const char **  Groups 
)

◆ Valid_Local_Groups()

int Valid_Local_Groups ( char *  UserName,
const char **  Groups 
)

Definition at line 237 of file ext_lm_group_acl.cc.

References assert, debug(), NULL, and wcstrcmparray().

Referenced by main().

◆ wcstrcmparray()

static int wcstrcmparray ( const wchar_t *  str,
const char **  array 
)
static

Definition at line 220 of file ext_lm_group_acl.cc.

References debug(), and use_case_insensitive_compare.

Referenced by Valid_Global_Groups(), and Valid_Local_Groups().

Variable Documentation

◆ DefaultDomain

char* DefaultDomain = nullptr

Definition at line 105 of file ext_lm_group_acl.cc.

Referenced by main(), process_options(), and Valid_Global_Groups().

◆ machinedomain

char* machinedomain

Definition at line 103 of file ext_lm_group_acl.cc.

Referenced by main(), and Valid_Global_Groups().

◆ mypid

pid_t mypid

Definition at line 102 of file ext_lm_group_acl.cc.

Referenced by main().

◆ NTV_VALID_DOMAIN_SEPARATOR

const char NTV_VALID_DOMAIN_SEPARATOR[] = "\\/"

Definition at line 106 of file ext_lm_group_acl.cc.

Referenced by Valid_Global_Groups().

◆ program_name

const char* program_name

Definition at line 101 of file ext_lm_group_acl.cc.

Referenced by main(), process_options(), and Valid_Global_Groups().

◆ use_case_insensitive_compare

int use_case_insensitive_compare = 0

Definition at line 104 of file ext_lm_group_acl.cc.

Referenced by main(), process_options(), and wcstrcmparray().

◆ use_global

int use_global = 0

Definition at line 99 of file ext_lm_group_acl.cc.

Referenced by main(), and process_options().

◆ use_PDC_only

int use_PDC_only = 0

Definition at line 100 of file ext_lm_group_acl.cc.

Referenced by main(), process_options(), and Valid_Global_Groups().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors