nkatsaros / docker-atlassian-crowd

Identity management for users, web apps, and directory servers
5 stars 8 forks source link

No login possible after setup #2

Closed daankets closed 9 years ago

daankets commented 9 years ago

After the initial configuration (without integrated applications) and user setup, logging in with the initial password is not possible (wrong password).

nkatsaros commented 9 years ago

Make a new instance and set the base url ip address as localhost instead of whatever Crowd recommends. Are you using boot2docker? I think this occurs because it uses two network adapters and one of them isn't allowed to speak to crowd.

daankets commented 9 years ago

I'm on CoreOS

On 25 Nov 2014, at 17:27, Nicholas Katsaros notifications@github.com wrote:

Make a new instance and set the base url ip address as localhost instead of whatever Crowd recommends. Are you using boot2docker? I think this occurs because it uses two network adapters and one of them isn't allowed to speak to crowd.

— Reply to this email directly or view it on GitHub.

nkatsaros commented 9 years ago

Did you try setting the base url to http://localhost:8095/crowd on installation? This allowed me to login. If you want more control I think you will have to mount a file to /var/atlassian/crowd/crowd.properties because they don't let you edit the base url from within crowd after installation.

Another option is to use the correct base url and add the ip that is being denied (you can find it using docker logs) to the cwd_application_address database table. More details are available at https://jira.atlassian.com/browse/CWD-2315

daankets commented 9 years ago

Better solution would be to add the hostname flag. This will ensure an entry like this in your hosts file:

127.0.1.1    public.container.hostname
docker run --name crowd-test-insecure **--hostname="public.container.hostname"** -p 8095:8095 nkatsaros/atlassian-crowd:latest