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 ?
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.
Shutdown Confluence
IconMake sure the MyUser service account have all the proper permissions to access Confluence database.
- Edit the <Confluence Home>\confluence.cfg.xml file.
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>
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>
Save the file.
Start Confluence.
This should do the trick.
Cheers,
Rodrigo
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 :).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
According to https://jira.atlassian.com/browse/JRA-25791, it seemed that the method does not work for JIRA. It only works for Confluence and Crowd
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.