webagent caught in infinite loop upon first invocation

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

webagent caught in infinite loop upon first invocation

Olivier Rivat
Hi,

I am trying to run the Getting started with openam example

installation
-openam 13
-apache 2.2.31
-openam webagent 4.0

I am trying to bring up teh example in teh "getting started document":
-installed and configured openam
-installed apache
-installed webagent



By teh way, I am also using ssh tunneling between client and target host with local port forwarding
It means that on my client application running on teh target can be accessed as localhost
openam and webagent are running on the targethost


client <----->  proxy <------> target host
                       X.Y.Z.W            10.1.0.16




The issyue I do have is that  when I am trying to connect to  http://www.example.com:8000 from my client
the webagent is caught in infinite loop on the target host.

Below is wht does teh web agent shows, when put in debug.
At this stage, I haven't found any further similar issue when googling the web.

Any hints what it could mean, and how I coudl sort this out ?

Regards,
Oliver




l is set to 'http://www.example.com:8000/UpdateAgentCacheServlet?shortcircuit=false'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config_xml.c:111] am_parse_config_xml() com.sun.identity.agents.config.remote.logfile is set to 'amAgent_www_example_com_8000.log'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config_xml.c:111] am_parse_config_xml() com.sun.identity.agents.config.attribute.multi.value.separator is set to '|'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config_xml.c:132] am_parse_config_xml() com.sun.identity.agents.config.cookie.secure is set to '0'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config_xml.c:132] am_parse_config_xml() com.sun.identity.agents.config.debug.file.size is set to '10000000'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config_xml.c:111] am_parse_config_xml() com.sun.identity.agents.config.agenturi.prefix is set to 'http://www.example.com:8000/amagent'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config_xml.c:132] am_parse_config_xml() com.sun.identity.agents.config.override.protocol is set to '0'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config_xml.c:111] am_parse_config_xml() com.sun.identity.agents.config.userid.param is set to 'UserToken'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1434] am_get_agent_config(): agent configuration stored in a cache
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:28.919 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:28.919 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:30.319 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:30.320 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:31.835 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:31.835 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:33.258 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:33.258 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:34.626 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:34.626 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:35.827 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:35.827 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:37.167 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:37.168 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:38.592 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:38.592 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
                                                                                     

Garanti sans virus. www.avast.com

_______________________________________________
Visit the OpenAM forum at https://forgerock.org/forum/fr-projects/openam/
OpenAM mailing list
[hidden email]
https://lists.forgerock.org/mailman/listinfo/openam
Reply | Threaded
Open this post in threaded view
|

Re: webagent caught in infinite loop upon first invocation

Jari Ahonen

Redirect loops between web agent and OpenAM login URL are nearly always caused by cookie configuration/scope errors.

 

Make sure the openam server and agent are set to use the same session cookie and that your client and server are both within scope of that session cookie. Doing a header trace on the client is one way to make sure it is actually sending the appropriate cookies to both web agent and openam server.

 

- Jari

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Olivier Rivat
Sent: Friday, May 13, 2016 10:06 PM
To: [hidden email]
Cc: [hidden email]
Subject: [OpenAM] webagent caught in infinite loop upon first invocation

 

Hi,

I am trying to run the Getting started with openam example

installation
-openam 13
-apache 2.2.31
-openam webagent 4.0

I am trying to bring up teh example in teh "getting started document":
-installed and configured openam
-installed apache
-installed webagent



By teh way, I am also using ssh tunneling between client and target host with local port forwarding
It means that on my client application running on teh target can be accessed as localhost
openam and webagent are running on the targethost


client <----->  proxy <------> target host
                       X.Y.Z.W            10.1.0.16




The issyue I do have is that  when I am trying to connect to  http://www.example.com:8000 from my client
the webagent is caught in infinite loop on the target host.

Below is wht does teh web agent shows, when put in debug.
At this stage, I haven't found any further similar issue when googling the web.

Any hints what it could mean, and how I coudl sort this out ?

Regards,
Oliver




l is set to 'http://www.example.com:8000/UpdateAgentCacheServlet?shortcircuit=false'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config_xml.c:111] am_parse_config_xml() com.sun.identity.agents.config.remote.logfile is set to 'amAgent_www_example_com_8000.log'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config_xml.c:111] am_parse_config_xml() com.sun.identity.agents.config.attribute.multi.value.separator is set to '|'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config_xml.c:132] am_parse_config_xml() com.sun.identity.agents.config.cookie.secure is set to '0'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config_xml.c:132] am_parse_config_xml() com.sun.identity.agents.config.debug.file.size is set to '10000000'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config_xml.c:111] am_parse_config_xml() com.sun.identity.agents.config.agenturi.prefix is set to 'http://www.example.com:8000/amagent'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config_xml.c:132] am_parse_config_xml() com.sun.identity.agents.config.override.protocol is set to '0'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config_xml.c:111] am_parse_config_xml() com.sun.identity.agents.config.userid.param is set to 'UserToken'
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1434] am_get_agent_config(): agent configuration stored in a cache
2016-05-13 21:36:27.553 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:28.919 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:28.919 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:30.319 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:30.320 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:31.835 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:31.835 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:33.258 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:33.258 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:34.626 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:34.626 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:35.827 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:35.827 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:37.167 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:37.168 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
2016-05-13 21:36:38.592 +0200 DEBUG [0x7fa4f4495700:7130][source/apache/agent22.c:658] amagent_auth_handler(): begin
2016-05-13 21:36:38.592 +0200 DEBUG [0x7fa4f4495700:7130][source/config.c:1483] am_get_agent_config(): agent configuration read from a cache
                                                                                     

Image removed by sender.

Garanti sans virus. www.avast.com

 


_______________________________________________
Visit the OpenAM forum at https://forgerock.org/forum/fr-projects/openam/
OpenAM mailing list
[hidden email]
https://lists.forgerock.org/mailman/listinfo/openam