OpenAM – Can’t Log on to Admin Console

This one cost me some time!

Symptoms

After installing and configuring OpenAM you’re unable to log on to the admin console with the amAdmin account and password you set during the install.  It doesn’t give an error message, just drops you back to the login page.

 

 

Cause

When you go through the custom configuration wizard you get asked for the cookie domain. If your OpenAM server is openam.mydomain.co.nz then your cookie domain should be .mydomain.co.nz but by default the wizard just takes the trailing two domain components from the server name – i.e. .co.nz. Unless you specifically set the cookie domain correctly you’ll get the issue described above.  As you can imagine this issue wouldn’t occur if your OpenAM server was called openam.mydomain.com.

This means that if you have a domain name with more than 2 domain components then you’ll always need to run the custom config wizard.

 

 

 

, ,

2 Responses to OpenAM – Can’t Log on to Admin Console

  1. Phil April 7, 2012 at 8:09 am #

    Just came across this today. How did you wind up fixing? Did you reset and start from scratch? P.S. Love your blog tagline.

    • RhysGoodwin April 7, 2012 at 11:11 am #

      Hi Phil,

      As long as you run the custom config wizard and specify the cookie domain correctly it should work. But there are other things that can cause the the same login issue, I came across a number of them when trying to fix this issue. You might need to dig into the logs and see what is happening.

      Cheers,
      Rhys

Leave a Reply