Our add-ons for Jira, Confluence, Bitbucket, Cruicible and Bamboo follow an almost identical pattern. If you have one of those products, this guide is for you.
This guide with establish password-less Integrated Windows Authentication single sign-on for a JIRA instance available at https://issues.example.com
The Windows uses are logged into their computers using the Active Directory domain EXAMPLE.LOCAL
In this example, we assume a Microsoft Active Directory/LDAP User Directory has already been set up for the same domain.
We also assume that you have Domain Admin rights such that you can create and configure user accounts in AD. If you don't have these permissions yourself, you might have to ask a colleague for help
We recommend setting up a test environment before you go to production.
This youtube video shows the basic steps taken to setup kerberos login, and how the login experience will be when this is set up.
Widget Connector width 600 url https://www.youtube.com/watch?v=WTQRLPDxZwM height 400 Table of Contents
In our add-on configuration page, click Run Kerberos Setup Wizard.
This wizard helps you in the following ways:
In many cases the wizard can suggest appropriate configuration values for you automatically.
If this is the case, you will be notified. You might want to jump straight to the tasksummary using the suggested values instead of going though each step.
For the purpose of this guide though, we will run through each steps of the wizard.
Connecting to your Active Directory lets the wizard inspect your AD, suggest values and validate that your configuration is valid.
You can choose a pre-configured User Directory, or connect to an Active Directory server of your choice:
If issues.examle.local is a DNS CNAME record, say for server123.example.local, then the canonical name is: server123.example.local
Otherwise, if it's a DNS A record, then the canonical name is issues.example.com
Usually, the wizard can determine this for you by looking it up in DNS on the server.
If that fails, the wizard will instruct you on how to determine this manually on the client side.
Note that even if you access JIRA using the short name http://issues, the canonical name is always in FQDN form. (It is never just issues, but issues.example.com)
The Kerberos Realm name looks something like EXAMPLE.LOCAL or ACCOUNTING.COMPANY.COM
It is your Active Directory Domain name in upper case, dot-separated format.
If the wizard can't look this up in AD, it will instruct you on how to determine this on your client.
Kerberos services need to be mapped to an Active Directory account. We recommend you use a separate AD account for the purpose of mapping each Kerberos service.
Unless your instance is already mapped, the wizard will suggest an account name such as svc-jirasso-issues
The wizard will suggest the strongest encryption type supported by your environment.
Some factors which may limit your choice of encryption strength:
In January 2018 Java 8 update 161 was released having support for AES 256.
If your service is already mapped to account, then the strongest configured encryption type for that account is recommended.
In this case, the wizard has recommended AES-256:
Anchor tasksummary tasksummary
The final page of the wizard starts by displaying the configuration determined in the previous steps:
Step 1 of the task list describes describes how to create and / or configure the service account.
Depending on your AD permissions, you might need to hand this task over to your AD team.
The account svc-jirasso-issues needs to be created with "password never expires".
Then, in the account options, we need to enable "This account supports Kerberos AES 256 bit encryption":
Shows you how to create a keytab file using ktpass. Again, this is a task you might have to delegate to your AD team.
Finally, you may upload the keytab file created. After the upload has finished a logon test will be performed.
Note that if you have multiple domains, then you are offered to add keys to the existing keytab file.
A quick review of the syntax:
|Command / parameter||Description|
|ktpass is pre-installed in Windows 2008 onward. Located in c:\Windows\System32|
HTTP is always used for web servers, also when using https.
issues.example.com is the canonical DNS name of JIRA
EXAMPLE.LOCAL is the Kerberos realm name of the Active Directory Domain
Maps the /princ name above to the account svc-jirasso-issues.
ktpass will add this attribute on the account:
|Specifies the encryption type used when generating keys in the keytab. Must match the account supported encryption type.|
|The general ptype, recommended by Microsoft.|
|Output location of the generated keytab file|
Running the ktpass command will output a keytab file and register issues.examples.com as an HTTP Kerberos service.
Specifically, ktpass will:
servicePrincipalNameattribute on the account with the value
Note that ktpass must be running in a "run as administrator" cmd window by a user with Domain Admin permissions.
After uploading the keytab file, you will be redirected to the Kerberos Authentication Test page.
If you're lucky this test will succeed on your first try:
In our case, we got a failing test. Internet Explorer has not been configured to send Kerberos tickets to issues.example.com. It falls back to sending NTLM tickets instead (which is seen as a usename and password popup)
We need to make sure issues.example.com is placed in the Local Intranet Security Zone, since that is a requirement for Internet Explorer to send Kerberos tickets.
The zone settings are usually set enterprise-wide using Group Policies. Here's the GPO we used to place *.example.com and issues.example.com in the Local Intranet Zone (Zone 1):
For more details on configuring Zone settings, and configuring Chrome and Firefox on Windows, Mac and Linux, see our Browser Configuration Guide
Mobile devices and computers not configured for Kerberos Single Sign-on can be offered SAML SSO instead.