Can Stash be configured to access SQL Server using a Domain User Login on Linux?

In our environment for database access we are given AD Logins that we use as service accounts. The SQL Server documentation describes connecting with a database user in Linux but doesn't say if it is possible or not to use an AD Login. Basically I need to be able to specify the domain and username.

I can connect on Linux via odbc/freetds by specifying the username as DOMAIN//USERNAME or DOMAIN/USERNAME. Sometimes you have to escape the slash.

2 answers

Hi Stephen, in this KB article you have the instructions on how edit the jdbc URL of your database. If you want to authenticate with an user of your domain, you can add the parameter domain=MYCOMPANYDOMAIN to your URL. Example:

jdbc.url=jdbc:sqlserver://<hostname>;domain=MYCOMPANYDOMAIN

The rest would be the same. I hope it helps.

Cheers

Hi Tiago,

Currently I have this

jdbc.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
jdbc.url=jdbc:sqlserver://&lt;HOSTNAME&gt;:1433;databaseName=Stash;domain=&lt;DOMAIN&gt;;
jdbc.password=&lt;PASSWORD&gt;
jdbc.user=&lt;USERNAME&gt;

But I still get this error:

The following problem occurred which prevents Atlassian Stash from starting correctly:

  • The database, as currently configured, is not accessible.

Some additional notes:

  • The machine is running RHEL 6.4
  • I installed it initially with the internal database (I can reinstall if that will help as this is our dev machine so no data that has to be saved)

Thanks,

Stephen

I ended up switching to a standard sql user.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

2,363 views 9 12
Read article

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