#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>
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()
Definition at line 510 of file ext_lm_group_acl.cc.
References debug(), DefaultDomain, GetDomainName(), HELPER_INPUT_BUFFER, HLP_MSG, machinedomain, mypid, NULL, process_options(), program_name, rfc1738_unescape(), SEND_BH, SEND_ERR, SEND_OK, use_case_insensitive_compare, use_global, use_PDC_only, Valid_Global_Groups(), Valid_Local_Groups(), VERSION, and xstrdup.
◆ process_options()
| void process_options | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 470 of file ext_lm_group_acl.cc.
References debug_enabled, DefaultDomain, getopt(), optarg, opterr, optopt, program_name, usage(), use_case_insensitive_compare, use_global, use_PDC_only, and xstrndup().
Referenced by main().
◆ usage()
|
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 | ||
| ) |
Definition at line 312 of file ext_lm_group_acl.cc.
References assert, debug(), DefaultDomain, machinedomain, NTV_VALID_DOMAIN_SEPARATOR, NULL, program_name, use_PDC_only, wcstrcmparray(), and xstrncpy().
Referenced by main().
◆ 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 |
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().
