Purpose

Determines which authentication method the driver uses when establishing a connection. If the specified authentication method is not supported by the database server, the connection fails and the driver throws an exception.

Valid Values

userIdPassword | kerberos | none

Behavior

If set to userIdPassword, the driver uses LDAP authentication through user ID and password configured in the LDAP server.

If set to kerberos, the driver uses Kerberos authentication. The ServicePrincipalName property must be specified.

If set to none, the driver does not use authentication. Only the required properties must be specified for connection.

Notes

  • The User property provides the user ID of the LDAP server. The Password property provides the password of the LDAP server.

Data Source Method

public String getAuthenticationMethod()

public void setAuthenticationMethod(String)

Default

userIdPassword

Data Type

String