valid.h File Reference
#include "sspi/sspwin32.h"
#include <lm.h>
#include <sys/types.h>
Include dependency graph for valid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NTV_NO_ERROR   0
 
#define NTV_SERVER_ERROR   1
 
#define NTV_GROUP_ERROR   2
 
#define NTV_LOGON_ERROR   3
 
#define LOGON32_LOGON_NETWORK   3
 
#define NTV_DEFAULT_DOMAIN   "."
 

Functions

int Valid_User (char *UserName, char *Password, char *Group)
 
static void debug (char *format,...)
 

Variables

char * NTAllowedGroup
 
char * NTDisAllowedGroup
 
int UseDisallowedGroup
 
int UseAllowedGroup
 
int debug_enabled
 
char Default_NTDomain [DNLEN+1]
 
const char * errormsg
 

Macro Definition Documentation

◆ LOGON32_LOGON_NETWORK

#define LOGON32_LOGON_NETWORK   3

Definition at line 54 of file valid.h.

◆ NTV_DEFAULT_DOMAIN

#define NTV_DEFAULT_DOMAIN   "."

Definition at line 57 of file valid.h.

◆ NTV_GROUP_ERROR

#define NTV_GROUP_ERROR   2

Definition at line 50 of file valid.h.

◆ NTV_LOGON_ERROR

#define NTV_LOGON_ERROR   3

Definition at line 51 of file valid.h.

◆ NTV_NO_ERROR

#define NTV_NO_ERROR   0

Definition at line 48 of file valid.h.

◆ NTV_SERVER_ERROR

#define NTV_SERVER_ERROR   1

Definition at line 49 of file valid.h.

Function Documentation

◆ debug()

static void debug ( char *  format,
  ... 
)
static

Definition at line 88 of file valid.h.

References debug_enabled.

◆ 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 120 of file valid.cc.

References debug(), Default_NTDomain, errormsg, 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, Valid_Group(), and xstrncpy().

Variable Documentation

◆ debug_enabled

int debug_enabled
extern

Definition at line 13 of file debug.cc.

Referenced by debug(), hex_dump(), LDAPArguments(), main(), MainSafe(), process_options(), and processingLoop().

◆ Default_NTDomain

char Default_NTDomain[DNLEN+1]
extern

Definition at line 43 of file valid.cc.

Referenced by process_options(), and Valid_User().

◆ errormsg

const char* errormsg
extern

Definition at line 44 of file valid.cc.

Referenced by main(), and Valid_User().

◆ NTAllowedGroup

char* NTAllowedGroup
extern

Definition at line 46 of file basic_sspi_auth.cc.

Referenced by ntlm_check_auth(), process_options(), and Valid_User().

◆ NTDisAllowedGroup

char* NTDisAllowedGroup
extern

Definition at line 47 of file basic_sspi_auth.cc.

Referenced by ntlm_check_auth(), process_options(), and Valid_User().

◆ UseAllowedGroup

int UseAllowedGroup
extern

Definition at line 49 of file basic_sspi_auth.cc.

Referenced by ntlm_check_auth(), process_options(), and Valid_User().

◆ UseDisallowedGroup

int UseDisallowedGroup
extern

Definition at line 48 of file basic_sspi_auth.cc.

Referenced by ntlm_check_auth(), process_options(), and Valid_User().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors