valid.h File Reference
#include "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

#define LOGON32_LOGON_NETWORK   3

Definition at line 57 of file valid.h.

#define NTV_DEFAULT_DOMAIN   "."

Definition at line 60 of file valid.h.

Referenced by Valid_User().

#define NTV_GROUP_ERROR   2

Definition at line 53 of file valid.h.

Referenced by Valid_User().

#define NTV_LOGON_ERROR   3

Definition at line 54 of file valid.h.

#define NTV_NO_ERROR   0

Definition at line 51 of file valid.h.

#define NTV_SERVER_ERROR   1

Definition at line 52 of file valid.h.

Function Documentation

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

Definition at line 91 of file valid.h.

References debug_enabled.

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

int debug_enabled

Definition at line 13 of file debug.cc.

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

char Default_NTDomain[DNLEN+1]

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().

char* NTAllowedGroup

Definition at line 52 of file basic_sspi_auth.cc.

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

char* NTDisAllowedGroup

Definition at line 53 of file basic_sspi_auth.cc.

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

int UseAllowedGroup

Definition at line 55 of file basic_sspi_auth.cc.

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

int UseDisallowedGroup

Definition at line 54 of file basic_sspi_auth.cc.

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors