473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

How to use Single Sign On in Tomcat 6 .?

in server.xml
what i need to change....


server.xml
Expand|Select|Wrap|Line Numbers
  1. <?xml version='1.0' encoding='utf-8'?>
  2. <!--
  3.   Licensed to the Apache Software Foundation (ASF) under one or more
  4.   contributor license agreements.  See the NOTICE file distributed with
  5.   this work for additional information regarding copyright ownership.
  6.   The ASF licenses this file to You under the Apache License, Version 2.0
  7.   (the "License"); you may not use this file except in compliance with
  8.   the License.  You may obtain a copy of the License at
  9.  
  10.       http://www.apache.org/licenses/LICENSE-2.0
  11.  
  12.   Unless required by applicable law or agreed to in writing, software
  13.   distributed under the License is distributed on an "AS IS" BASIS,
  14.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15.   See the License for the specific language governing permissions and
  16.   limitations under the License.
  17. -->
  18. <!-- Note:  A "Server" is not itself a "Container", so you may not
  19.      define subcomponents such as "Valves" at this level.
  20.      Documentation at /docs/config/server.html
  21.  -->
  22. <Server port="8005" shutdown="SHUTDOWN">
  23.  
  24.   <!--APR library loader. Documentation at /docs/apr.html -->
  25.   <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  26.   <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  27.   <Listener className="org.apache.catalina.core.JasperListener" />
  28.   <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
  29.   <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  30.   <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  31.  
  32.   <!-- Global JNDI resources
  33.        Documentation at /docs/jndi-resources-howto.html
  34.   -->
  35.   <GlobalNamingResources>
  36.     <!-- Editable user database that can also be used by
  37.          UserDatabaseRealm to authenticate users
  38.     -->
  39.     <Resource name="UserDatabase" auth="Container"
  40.               type="org.apache.catalina.UserDatabase"
  41.               description="User database that can be updated and saved"
  42.               factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
  43.               pathname="conf/tomcat-users.xml" />
  44.   </GlobalNamingResources>
  45.  
  46.   <!-- A "Service" is a collection of one or more "Connectors" that share
  47.        a single "Container" Note:  A "Service" is not itself a "Container", 
  48.        so you may not define subcomponents such as "Valves" at this level.
  49.        Documentation at /docs/config/service.html
  50.    -->
  51.   <Service name="Catalina">
  52.  
  53.     <!--The connectors can use a shared executor, you can define one or more named thread pools-->
  54.     <!--
  55.     <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" 
  56.         maxThreads="150" minSpareThreads="4"/>
  57.     -->
  58.  
  59.  
  60.     <!-- A "Connector" represents an endpoint by which requests are received
  61.          and responses are returned. Documentation at :
  62.          Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
  63.          Java AJP  Connector: /docs/config/ajp.html
  64.          APR (HTTP/AJP) Connector: /docs/apr.html
  65.          Define a non-SSL HTTP/1.1 Connector on port 8080
  66.     -->
  67.     <Connector port="8088" protocol="HTTP/1.1" 
  68.                connectionTimeout="20000" 
  69.                redirectPort="8443" />
  70.     <!-- A "Connector" using the shared thread pool-->
  71.     <!--
  72.     <Connector executor="tomcatThreadPool"
  73.                port="8080" protocol="HTTP/1.1" 
  74.                connectionTimeout="20000" 
  75.                redirectPort="8443" />
  76.     -->           
  77.     <!-- Define a SSL HTTP/1.1 Connector on port 8443
  78.          This connector uses the JSSE configuration, when using APR, the 
  79.          connector should be using the OpenSSL style configuration
  80.          described in the APR documentation -->
  81.     <!--
  82.     <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
  83.                maxThreads="150" scheme="https" secure="true"
  84.                clientAuth="false" sslProtocol="TLS" />
  85.     -->
  86.  
  87.     <!-- Define an AJP 1.3 Connector on port 8009 -->
  88.     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
  89.  
  90.  
  91.     <!-- An Engine represents the entry point (within Catalina) that processes
  92.          every request.  The Engine implementation for Tomcat stand alone
  93.          analyzes the HTTP headers included with the request, and passes them
  94.          on to the appropriate Host (virtual host).
  95.          Documentation at /docs/config/engine.html -->
  96.  
  97.     <!-- You should set jvmRoute to support load-balancing via AJP ie :
  98.     <Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">         
  99.     --> 
  100.     <Engine name="Catalina" defaultHost="localhost">
  101.  
  102.       <!--For clustering, please take a look at documentation at:
  103.           /docs/cluster-howto.html  (simple how to)
  104.           /docs/config/cluster.html (reference documentation) -->
  105.       <!--
  106.       <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
  107.       -->        
  108.  
  109.       <!-- The request dumper valve dumps useful debugging information about
  110.            the request and response data received and sent by Tomcat.
  111.            Documentation at: /docs/config/valve.html -->
  112.       <!--
  113.       <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
  114.       -->
  115.  
  116.       <!-- This Realm uses the UserDatabase configured in the global JNDI
  117.            resources under the key "UserDatabase".  Any edits
  118.            that are performed against this UserDatabase are immediately
  119.            available for use by the Realm.  -->
  120.       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
  121.              resourceName="UserDatabase"/>
  122.  
  123.       <!-- Define the default virtual host
  124.            Note: XML Schema validation will not work with Xerces 2.2.
  125.        -->
  126.       <Host name="localhost"  appBase="webapps"
  127.             unpackWARs="true" autoDeploy="true"
  128.             xmlValidation="false" xmlNamespaceAware="false">
  129.  
  130.         <!-- SingleSignOn valve, share authentication between web applications
  131.              Documentation at: /docs/config/valve.html -->
  132.         <!--
  133.         <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
  134.         -->
  135.  
  136.         <!-- Access log processes all example.
  137.              Documentation at: /docs/config/valve.html -->
  138.         <!--
  139.         <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
  140.                prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
  141.         -->
  142.  
  143.       </Host>
  144.     </Engine>
  145.   </Service>
  146. </Server>
  147.  
Apr 25 '11 #1
0 1389

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Tom | last post by:
I am trying to establish an infrastructure whereby I want only one login screen for my .net application users. In my experience, if the user's domain is different than the application domain,...
4
by: Peter Tragardh | last post by:
I'm searching for info on how to authenticate a user in the same way that for example Source Safe does. I would like my system to use Windows as the authenticator, so that the user doesn't have to...
1
by: Cowboy \(Gregory A. Beamer\) | last post by:
Quite a few months back, I was able to create a single sign on app for all apps on a single box (perhaps a domain, but never tested) by setting the auth cookie name to an identical value: ...
1
by: Rodney Lane | last post by:
Hi I am investigating the possibility writing an application which uses single sign on with ASP.Net / VB.Net and was wondering if anyone has endeavoured to do this yet. I will most likely be...
3
by: daniel | last post by:
Hi, i want to use dotnet web form to do SSO with AD now, but i don't know to do it. where can i look for relative article or sample code ? thanks.
2
by: Spam Catcher | last post by:
Hi all, I'm looking to implement a single sign on solution for .NET applications. This single sign on solution will need to work against a variety of back- end databases (i.e. SQL (mainly),...
4
by: Jai | last post by:
Hi, I have a problem related to Login System. I am developing 3 websites for some institution.Now they want that if anybody had sign up for there site1.com(say), than he or she should be able...
3
by: Pouria | last post by:
Hi, Does anyone have any experience with single sign on for .Net windows applications or windows services? So the idea is to be able to use the user credentials from logging into windows to...
7
by: hamarsheh | last post by:
Hi everbody! i need single sign on software for our php website , For all application, because we used visual basic and php, and another things so we need software to do single sign on , that the...
9
by: Phillip B Oldham | last post by:
Are there any FOSS Python Single-Sign-on Servers? We're looking to centralise the sign-on for our numerous "internal" webapps (across multiple servers, languages, and domains) to speed user...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.