Enabling Kerberos authentication

To enable Kerberos for the drivers, add the following to your program:

AuthenticationClient=<one of 'mitkerberos' or 'cybersafekerberos' or 'activedirectory'> and ServerPrincipal=<ASE server name>

where <ASE server name> is the logical name of the server or the principal as configured in the Key Distribution Center (KDC). The drivers will use this information to negotiate Kerberos authentication with the configured KDC and ASE server.

If you want the Kerberos client to look for the TGT in another cache, you might want to specify the userprincipal method.

If you use SQLDriverConnect with the SQL_DRIVER_NOPROMPT, ConnectString appears similar to the following:

char ConnectString[BUFSIZ];
strcpy(ConnectString, "Driver=Adaptive Server Enterprise;");
strcat(ConnectString, "UserID=sa;Password=;");
strcat(ConnectString, "Server=sampleserver;");
strcat(ConnectString, "Port=4100;Database=pubs2;");
strcat(ConnectString, "UseCursor=1;");
strcat(ConnectString, "AuthenticationClient=mitkerberos;");
strcat(ConnectString, " ServerPrincipal=MANGO;");