Unable to login in Bamboo after user managed by JIRA
Asked by voila:

Hello ,

I faced a strange issue. Here are the things I did

What I was trying to do ?

Users manage by JIRA for bamboo

Steps I followed:

1. Make application links with JIRA and BAMBOO two ways

2. In Jira , authenticate bamboo app with password , so that when i can use jira to manage bamboo users

3. Go to bamboo back then use user repository then gave required fields like JIRA link , app name , password and all.

Result : Things went good.

Repurcussions :

1. When I login with root in bamboo then i was not able to see setting icon (on right top corner , which help me in administration ).

There were only two options (1. online help , 2. in drop down -- \> profile , logout)

2. I shutdown JIRA then i was not able to login to BAMBOO

Can any one help me out with repurcussion 1. why settings icon disappear from top right corner.

Thanks


Answers:
author: rsperafico
body: Hi Amit,

I would kindly ask you to follow the steps as per below:

**Lets start by setting up JIRA**

1. Start JIRA
2. Log in using an account with administrator privilegies.
3. Go to "**User Management** " \>\> "**Groups** "  
   3.1 Add a new groupd called "bamboo-admin"
4. Go to "**User Management** " \>\> "**Users** " \>\> "**Operations** " \>\> "**Groups** "  
   4.1 Join in your currently user to "bamboo-admin" group.
5. Go to "**User Management** " \>\> "**JIRA User Server** " \>\> "**Add Application** "  
   5.1 Type in the "**Application name** " (*e.g: bamboo* )  
   5.2 Type in a "**Password** "  
   5.3 Type in the "**IP Address** " to your Bamboo instance (*e.g: 192.168.10.23* )  
   5.4 Click on Save

*Please remember the "**Application name** " and "**Password**" used as it will be needed in Bamboo to establish a link between them.*

**Lets move on to Bamboo.**

As you have mentioned, you are not able to log in to your Bamboo instance. In order to grant access to the local user management (Bamboo), please follow the steps:

Open up \<tt\>\<bamboo-home\>/xml-data/configuration/atlassian-user.xml\</tt\> and replace its content with**ONLY** the following:  

```
<atlassian-user>    <repositories>        <hibernate name="Hibernate Repository" key="hibernateRepository" description="Hibernate Repository" cache="true"/>    </repositories></atlassian-user>
```

Start Bamboo and log in with your local admin.  
If they don't know/remember the password, following the instructions on this page: [Restoring passwords to recover admin users](https://confluence.atlassian.com/display/BAMBOO/Restoring+passwords+to+recover+admin+users), ask them to reset your local Bamboo admin password by replacing the hash with:  

```
{PKCS5S2}Bpkvn//DVjxjm/gSwKsLjDIt06e2Bfj9RHA5Z8mfMhMVGJkl9itnpzKST+BcHeFf
```

which is equal to "admin" and try to login with admin username and the password: "admin".  
If you are able to successfully login now, please try to integrate with Crowd/JIRA again and let us know if the problem still persists.

Now that you have access to your Bamboo, lets finish up the communication between Bamboo and JIRA.

1. Start Bamboo
2. Log in using an account with administrator privilegies.
3. Go to "**Bamboo administration"** \>\> "**Security** " \>\> "**User repository** "  
   3.1 Select "**Users and groups from JIRA or Crowd** "  
   3.2 Type in your JIRA url into "**Server URL** " (*e.g.: http://192.168.10.22:8080/\<contextpath\>* )  
   *Please notice I am not using proxy to it.* Instead, I am using the IP address from the server where my JIRA instance is running. Added to that is the port used by Tomcat to the JIRA instance.  
   In case you are unsure about the port number, please refer to:  
   **\<jira-install\>/conf/server.xml**  

   ```
   (...)<Service name="Catalina">        <Connector port="8080"(...)
   ```

   In case you have a context path (path="") set to JIRA instance, please refer to:  
   **\<jira-install\>/conf/server.xml**  

   ```
   (...)<Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">(...)?
   ```

   In the context above, you can notice I am not using any path. Here is an example of context path (*path="/jira"*) and you would access it as per <http://192.168.10.22/8080/jira>.  
   3.3. Type in the application name you have set in JIRA into "**Application name** " (*e.g.: bamboo* )   
   3.4. Click on "**Change password?** " and type in the password you have set for the application name into "**Password** "  
   3.5. Click on "**Save** "  
   3.6. Click on "**Synchronize now**"

Now you are able to log in to Bamboo using JIRA authentication.

Please refer to [Integrating Bamboo with Crowd](https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+Crowd) for further information.

--

Kind regards,

Rafael


Tags: bamboo-administration