Configuring the driver for user ID/password authentication
- Last Updated: September 11, 2025
- 1 minute read
- DataDirect Connectors
- JDBC
- Documentation
The driver supports the User ID/password authentication. It authenticates the user to the database using a user name and password.
In addition, the driver supports the SCRAM-SHA-256 hashing mechanism for
enhanced security during authentication. During the connection process, the driver
determines whether to send the password in hashed form or as clear text, depending on the
server's configuration.
Note: When TLS/SSL is enabled on both the
server and the driver, and the server is configured to use SCRAM-SHA-256, the driver
automatically uses SCRAM-SHA-256-PLUS for password encryption.
To configure the driver to use user ID/password authentication:
-
Set the AuthenticationMethod property to
userIdPassword. - Set the User property to provide the user ID.
- Set the Password property to provide the password.
-
Specify values for minimum required properties for establishing a
connection.
- Set the ServerName property to specify either the IP address in IPv4 or IPv6 format, or the server name for your server.
- Set the PortNumber property to specify the TCP port of the primary database server that is listening for connections to the database.
Connection conn = DriverManager.getConnection
("jdbc:datadirect:greenplum://server1:5432;
AuthenticationMethod=userIdPassword;User=test;
Password=secret);