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 = NULL
 
const char NTV_VALID_DOMAIN_SEPARATOR [] = "\\/"
 

Function Documentation

char* AllocStrFromLSAStr ( LSA_UNICODE_STRING  LsaStr)

Definition at line 109 of file ext_lm_group_acl.cc.

References len, NULL, safe_free, and xmalloc.

Referenced by GetDomainName().

char* GetDomainName ( void  )

Definition at line 131 of file ext_lm_group_acl.cc.

References AllocStrFromLSAStr(), debug, DWORD, LPVOID, and NULL.

Referenced by main().

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

Definition at line 457 of file ext_lm_group_acl.cc.

Referenced by process_options().

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

Definition at line 237 of file ext_lm_group_acl.cc.

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

Referenced by main().

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

char* DefaultDomain = NULL

Definition at line 105 of file ext_lm_group_acl.cc.

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

char* machinedomain

Definition at line 103 of file ext_lm_group_acl.cc.

Referenced by main(), and Valid_Global_Groups().

pid_t mypid

Definition at line 102 of file ext_lm_group_acl.cc.

Referenced by main().

const char NTV_VALID_DOMAIN_SEPARATOR[] = "\\/"

Definition at line 106 of file ext_lm_group_acl.cc.

Referenced by Valid_Global_Groups().

const char* program_name

Definition at line 101 of file ext_lm_group_acl.cc.

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

int use_case_insensitive_compare = 0

Definition at line 104 of file ext_lm_group_acl.cc.

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

int use_global = 0

Definition at line 99 of file ext_lm_group_acl.cc.

Referenced by main(), and process_options().

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