../pvss.htm menu.gif basics.gif

getKerberosSecurity()

Returns the Kerberos security level for the connection to a specified manager.

Synopsis

int getKerberosSecurity([int manId]);

Parameters

    Parameters

    Description

    manId

    The manager ID that is returned with the function convManIdToInt (see example below) The default is the Event Manager.

    The return values can be:

     

    -1: Error, for example, no connection to the specified manager

    0: No security level ("none")

    1: Authentication ("authentication")

    2:  Integrity ("integrity")

    3. Encryption ("encryption")

Return value

-1: Error, for example, no connection to the specified manager

0: No security level ("none")

1: Authentication ("authentication")

2: Integrity ("integrity")

3. Encryption ("encryption")

Description

Returns the Kerberos security level for the connection to a specified manager. When the manager ID was not specified, this function connects to the active Event manager and not automatically to this on host 1.

IconExample

The following example returns the Kerberos security level for the connection to the Event Manager.

main()
{
   int manID,sys;
   dyn_char managers;
   char rep;
   managers = makeDynChar(EVENT_MAN);
   sys = getSystemId("System1:"); //Returns the system ID of the specified system
   rep = 2; //Replica number
   manID = convManIdToInt(EVENT_MAN, 1,sys,rep); //Function call with all parameters
   DebugN(manID); //Integer corresponding to the manager identifier

   

   int retK;
   retK = getKerberosSecurity(manID);
   DebugN("Kerberos security level ", retK);
}

Member of

Kerberos authentication

Availability

CTRL

See also

    convManIdToInt()

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved