access Jira database through windows integrated secruity

Currently our Jira instance is configured to run as an windows services and access MS SQL database through a SQL server authentication. Therefore,the login user name and password are stored in dbconfig.xml file.

Is there a way we can access MS SQL database through windows integrated security? By that means, I want to access database by the account that is running Jira windows service and we no longer store the username and password in the dbconfig.xml file.

I was searching documentations online but did not really find an official version for it. I am not sure whether there is one.

Could you please point me the right direction ?

3 answers

1 accepted

1 votes

Hi there!

It seems that a KB was created recently for confluence regarding this functionality. I believe that JIRA will use the same steps in dbconfig.xml file, but you will need to store the domain username and password in the dbconfig file though.

  1. Shutdown Confluence


    Make sure the MyUser service account have all the proper permissions to access Confluence database.

  2. Edit the <Confluence Home>\confluence.cfg.xml file.
  3. Search for the following:

    <property name="hibernate.connection.password">DbUserPass</property>
    <property name="hibernate.connection.url">jdbc:jtds:sqlserver://localhost:1433/dummy;</property>
    <property name="hibernate.connection.username">DatabaseUser</property>
  4. Upload the ";domain=MyDomain" at the end of the connection URL, the "MyUser" login in the connection username and the user pass in connection password. It will look like the following:

    <property name="hibernate.connection.password">MyUserPassword</property>
    <property name="hibernate.connection.url">jdbc:jtds:sqlserver://localhost:1433/dummy;domain=MyDomain</property>
    <property name="hibernate.connection.username">MyUser</property>
  5. Save the file.

  6. Start Confluence.

This should do the trick.



Hey Chenhao,

In case you want to use SSO and avoid storing the service account password in the config.cfg.xml file you can follow this guide as well :).

Thanks and Regards,
David|Atlassian Support

According to, it seemed that the method does not work for JIRA. It only works for Confluence and Crowd

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,110 views 13 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot