edmiTestConnect

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


TypeNameComment
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


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

Options


 

Example


 

 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

There are no items with the selected labels at this time.