Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
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

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

Example

...

 

Code Block
languagecpp
 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)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"