...
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiTestConnect(SdaiString edmUserName,
SdaiString edmUserGroup,
SdaiString password);
|
Tests the connection of a user account from an EDMclient to a given EDMserver without performing the actual connection. This function may be used to check that all preconditions for connecting to an EDMserver are met.
...
Arguments
...
Type | Name | Comment |
SdaiString | edmUserName | The name of an edmUser in the actual EDMdatabase. User names are case insensitive. |
SdaiString | edmUserGroup | The name of an edmGroup in the actual EDMdatabase. This parameter is optional. |
SdaiString | password | The password for the edmUser specified by the <edmUserName> argument. |
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
EdmiError rstat;
SdaiString userName = "Johnny";
SdaiString groupName = "Supervisor";
SdaiString password = "4g67fd";
. . .
if (rstat = edmiTestConnect(userName, groupName, password)) {
switch (rstat) {
case edmiENOUSER: . . .; break;
case edmiEUSERNAME: . . .; break;
case edmiENOGROUP: . . .; break;
case edmiEGROUPNAME: . . .; break;
case edmiEPASSWORDREQUIRED:. . .; break;
case edmiEPASSWORD: . . .; break;
case edmiEWRONGPASSWORD: . . .; break;
case edmiETOOMANYCONNECTIONS: . . .; break;
case edmiEUSERNOTINGROUP: . . .; break;
case edmiEUNAVAILABLE: . . .; break;
case edmiE_STOPPED: . . .; break;
case edmiECOMMTIMEOUT: . . .; break;
default: . . .; break;
}
printf("\nError %d: Test Connect failed - %s", rstat,
edmiGetErrorText(rstat));
goto err;
}
rstat = edmiConnect(userName, groupName, password);
. . . |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|