Re: how to auto redirect to https from http

2008-02-07 Thread Hazem DAOUD

Hi Dave,

Try to add this to web.xml under tomcat_install_dir/conf:

/security-constraint
web-resource-collection
   web-resource-nameProtected Context/web-resource-name
 url-pattern/*/url-pattern
/web-resource-collection
 !-- auth-constraint goes here if you requre authentication --
user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint/


That works for me.

Regards.

--Hazem.

Dave a écrit :

Hi,
  when user types http://www.mydomain.com, how to redirect to secure url 
https://www.mydomain.com?  I know that a servlet filter can do that. Is there 
an easier way?
   
  In server.xml,  redirectPort=8443 for port 80, it did not work as I expected.
   
   Connector port=80 address=${jboss.bind.address}

 maxThreads=250 strategy=ms maxHttpHeaderSize=8192
 emptySessionPath=true
 enableLookups=false redirectPort=8443 acceptCount=100
 connectionTimeout=2 disableUploadTimeout=true/
  
Connector port=8443 address=${jboss.bind.address}

   maxThreads=100 strategy=ms maxHttpHeaderSize=8192
   emptySessionPath=true
   scheme=https secure=true clientAuth=false
   keystoreFile=${jboss.server.home.dir}/keystore
   keystorePass=123456 sslProtocol = TLS /

  Thanks for help.
   
  Dave


   
-

Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
  




Error 12 for sso token ID when tomcat is secured

2007-09-17 Thread Hazem . Daoud

Hello,

Here is the configuration i am trying to deploy:
- Apache server 2.0.55 secured with ssl
- Tomcat 6.0.14 also secured with ssl
- An fam-samples.war configured as IdP on tomcat
- Web agent installed on apache server

Now if a non authenticated user tries to access a resource on apache, 
the web agent redirect him to IdP for authentication. After giving the 
write login and password he's redirected to the resource initially 
requested. Here i got an Internal server error and when i looked in 
the amAgent file for error i found this:


--
2007-09-17 15:17:06.594 Error 6447:98a16d8 all: 
LineBuffer::findEndOfLine(): 
2007-09-17 15:17:06.608 Error 6447:98a16d8 all: 
LineBuffer::findEndOfLine(): 
2007-09-17 15:17:06.617 Error 6447:98a16d8 all: 
LineBuffer::findEndOfLine(): 
2007-09-17 15:17:06.618 Error 6447:98a16d8 AM_SSO_SERVICE: 
SSOTokenService::getSessionInfo(): Error 12 for sso token ID 
[EMAIL PROTECTED]
2007-09-17 15:17:06.618 Error 6447:98a16d8 PolicyEngine: 
am_policy_evaluate: InternalException in Service::initialize() with 
error message:Session query failed during service creation. and code:12

--

I tried to look in the web agent configuration file AmAgent.properties 
for some properties to change but i didn't found the solution!


Is there an issue for this problem?

Note: If tomcat is not secured all works perfectly.

Hope you'll give me the needed answer.

Best regards,

--Hazem.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]