This string includes the properties used to connect with the Kerberos authentication.

jdbc:datadirect:greenplum://servername:port;
DatabaseName=databasename;AuthenticationMethod=kerberos;
ServicePrincipalName=serviceprincipalname[property=value[;...]];

where:

servername

is the IP address or name of the server to which you are connecting.

port

is the number of the TCP/IP port.

databasename

specifies the name of the database to which you want to connect.

serviceprincipalname
specifies the three-part service principal name registered with the key distribution center (KDC).
property=value
specifies connection property settings. Multiple properties are separated by a semi-colon.

The following example connection string includes the properties required for connecting with the user ID/password authentication.

Connection conn = DriverManager.getConnection
  ("jdbc:datadirect:greenplum://server1:5432;
    DatabaseName=greenplumDB;AuthenticationMethod=kerberos;
    ServicePrincipalName=postgres/myserver.example.com@EXAMPLE.COM;");