valid.cc File Reference
#include "squid.h"
#include "util.h"
#include "auth/basic/SSPI/valid.h"
Include dependency graph for valid.cc:

Go to the source code of this file.

Functions

int Valid_Group (char *UserName, char *Group)
 
int Valid_User (char *UserName, char *Password, char *Group)
 

Variables

char Default_NTDomain [DNLEN+1] = NTV_DEFAULT_DOMAIN
 
const char * errormsg
 
const char NTV_SERVER_ERROR_MSG [] = "Internal server errror"
 
const char NTV_GROUP_ERROR_MSG [] = "User not allowed to use this cache"
 
const char NTV_LOGON_ERROR_MSG [] = "No such user or wrong password"
 
const char NTV_VALID_DOMAIN_SEPARATOR [] = "\\/"
 

Function Documentation

int Valid_Group ( char *  UserName,
char *  Group 
)

Definition at line 61 of file valid.cc.

References DWORD, FALSE, i, NULL, and TRUE.

Referenced by Valid_User().

int Valid_User ( char *  UserName,
char *  Password,
char *  Group 
)

Valid_User return codes.

Return values
0User authenticated successfully.
1Server error.
2Group membership error.
3Logon error; Incorrect password or username given.

Definition at line 128 of file valid.cc.

References debug, Default_NTDomain, errormsg, i, NTAllowedGroup, NTDisAllowedGroup, NTV_DEFAULT_DOMAIN, NTV_GROUP_ERROR, NTV_GROUP_ERROR_MSG, NTV_LOGON_ERROR, NTV_LOGON_ERROR_MSG, NTV_NO_ERROR, NTV_SERVER_ERROR, NTV_SERVER_ERROR_MSG, NTV_VALID_DOMAIN_SEPARATOR, NULL, SSP_LogonUser(), UseAllowedGroup, UseDisallowedGroup, and Valid_Group().

Variable Documentation

char Default_NTDomain[DNLEN+1] = NTV_DEFAULT_DOMAIN

Definition at line 51 of file valid.cc.

Referenced by process_options(), and Valid_User().

const char* errormsg

Definition at line 52 of file valid.cc.

Referenced by main(), and Valid_User().

const char NTV_GROUP_ERROR_MSG[] = "User not allowed to use this cache"

Definition at line 55 of file valid.cc.

Referenced by Valid_User().

const char NTV_LOGON_ERROR_MSG[] = "No such user or wrong password"

Definition at line 56 of file valid.cc.

Referenced by Valid_User().

const char NTV_SERVER_ERROR_MSG[] = "Internal server errror"

Definition at line 54 of file valid.cc.

Referenced by Valid_User().

const char NTV_VALID_DOMAIN_SEPARATOR[] = "\\/"

Definition at line 57 of file valid.cc.

Referenced by Valid_User().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors