UCMDB Support Tip: How to connect to DB using NT Authentication when using a generic DB adapter?

Hello All,

 

In order to connect to an MS SQL Server that requires NT authentication, you will need a driver that can parse domain (i.e jTDS JDBC Driver). The authentication is done according to the given parameters (domain, username, password), and not with the current running process NT credentials.

 

1. In the persistence.xml you need to edit the following properties as follows:

 

<!--The driver class name"/-->

<property name="hibernate.connection.driver_class"

  value="net.sourceforge.jtds.jdbc.Driver"/>

<property name="hibernate.connection.url" value="jdbc:jtds:sqlserver://[host name]:[port];DatabaseName=[database name];domain=[the domain]"/>

<!--DB login credentials"/-->

<property name="hibernate.connection.username" value="[username]"/>

<property name="hibernate.connection.password" value="[password]"/>

2. Place the JDBC driver file under: <probe installation folder>\lib\.

3. Restart the probe.

Tags: