Config.dsnNeedsAuthentication

Tells if the data source identified as dsn_name needs any authentication. If a <username> and optionally a <password> are specified, they are ignored.

class Config
static
bool
dsnNeedsAuthentication
(
string dsnName
)

Parameters

dsnName string

the name of a DSN, in the "[<username>[:<password>]@]<DSN>" format

Return Value

Type: bool

TRUE if an authentication is needed