
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 error" |
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
◆ Valid_Group()
int Valid_Group | ( | char * | UserName, |
char * | Group | ||
) |
◆ Valid_User()
int Valid_User | ( | char * | UserName, |
char * | Password, | ||
char * | Group | ||
) |
Valid_User return codes.
- Return values
-
0 User authenticated successfully. 1 Server error. 2 Group membership error. 3 Logon error; Incorrect password or username given.
Definition at line 128 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, and Valid_Group().
Variable Documentation
◆ Default_NTDomain
char Default_NTDomain[DNLEN+1] = NTV_DEFAULT_DOMAIN |
Definition at line 51 of file valid.cc.
Referenced by process_options(), and Valid_User().
◆ errormsg
const char* errormsg |
Definition at line 52 of file valid.cc.
Referenced by main(), and Valid_User().
◆ NTV_GROUP_ERROR_MSG
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().
◆ NTV_LOGON_ERROR_MSG
const char NTV_LOGON_ERROR_MSG[] = "No such user or wrong password" |
Definition at line 56 of file valid.cc.
Referenced by Valid_User().
◆ NTV_SERVER_ERROR_MSG
Definition at line 54 of file valid.cc.
Referenced by Valid_User().
◆ NTV_VALID_DOMAIN_SEPARATOR
const char NTV_VALID_DOMAIN_SEPARATOR[] = "\\/" |
Definition at line 57 of file valid.cc.
Referenced by Valid_User().