Configuring Azure Active Directory Authentication
- Last Updated: January 22, 2018
- 2 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
Note: Azure Active Directory authentication requires Java SE 7 or higher.
Note: When
using Azure AD authentication, the driver requires root CA certificates to establish an SSL
connection to a database. The driver determines the location of the truststore containing
the required certificates by using the default JRE cacerts file unless a different file has been specified by the
javax.net.ssl.trustStore java system property. The truststore location cannot be specified
using the driver's Truststore property.
To configure the driver to use Azure AD authentication:
Connection conn = DriverManager.getConnection
("jdbc:datadirect:sqlserver://your_server.database.windows:1433;
AuthenticationMethod=ActiveDirectoryPassword;HostNameInCertificate=*.database.windows;
User=test@mydomain.com;Password=secret");