[Top] [Prev] [Next] [Bottom] [Contents]

SaIsValidLoginRec

Checks against the database server to see if the Login information is valid.

Synopsis

#include "SaAddLogin.h"
int SaIsValidLoginRec(int vendor, char* server, char* uname, 
char* passwd);

Arguments

vendor
The vendor type of the database server to check the login information.
server
The name of the database server to check the login information.
uname
The login name of the user on the database server.
passwd
The user's password on the server.

Return Values

Returns TRUE if the Login information is valid, and FALSE if invalid.

Description

SaIsValidLogin accepts Login information for a given database server and returns TRUE if the information is valid;, FALSE if it's invalid, or an internal error occurs. Use this function along with SaAddLoginRec to bypass the default Login Manager of Sapphire/Web. The vendor type code must be one of the following defined constants:

SGESYBASE (for Sybase)
SGEORACLE (for Oracle)
SGEINFORMIX (for Informix)
Note: For Oracle users, the server name must be "Oracle" and the database name is your database name, alias, or connection string.

See Also



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.