留言板
NullPointerException with Siteminder
Hello,
I am trying to use SiteMinder single sign on in my Liferay 6.2 installation.I have set Siteminder enabled in the admin interface and I have also created a portal-ext.properties file with the following content:
siteminder.auth.enabled=true
siteminder.import.from.ldap=false
siteminder.user.header=SM_USER
To test the SiteMinder configuration I set a httpheader SM_USER to a certain value by using the Google Chrome plugin "Modify Headers for Google Chrome".
When I now go to my Liferay URL (in this case http://localhost:8080), i am expecting to be automatically logged in with the username specified in the SM_USER. I am also expecting the user to be created in the Liferay database.
However, I am not being automatically logged in and in the SystemOut log file i get the following error messages:
14:00:30,606 ERROR [http-bio-8080-exec-1][AutoLoginFilter:262] Current URL / generates exception: java.lang.NullPointerException
I know that the exception is related to SiteMinder, because if I remove the HTTP Header "SM_USER" I don't get the error message anymore.
Anyone who knows what is wrong?
Best regards
/Björn Törnqvist
I am trying to use SiteMinder single sign on in my Liferay 6.2 installation.I have set Siteminder enabled in the admin interface and I have also created a portal-ext.properties file with the following content:
siteminder.auth.enabled=true
siteminder.import.from.ldap=false
siteminder.user.header=SM_USER
To test the SiteMinder configuration I set a httpheader SM_USER to a certain value by using the Google Chrome plugin "Modify Headers for Google Chrome".
When I now go to my Liferay URL (in this case http://localhost:8080), i am expecting to be automatically logged in with the username specified in the SM_USER. I am also expecting the user to be created in the Liferay database.
However, I am not being automatically logged in and in the SystemOut log file i get the following error messages:
14:00:30,606 ERROR [http-bio-8080-exec-1][AutoLoginFilter:262] Current URL / generates exception: java.lang.NullPointerException
I know that the exception is related to SiteMinder, because if I remove the HTTP Header "SM_USER" I don't get the error message anymore.
Anyone who knows what is wrong?
Best regards
/Björn Törnqvist