unsure why docBase for <Context is set to webapps/admin instead of webapps

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> To: users@tomcat.apache.org
> From: ebe...@hotmail.com
> Subject: How to define a Realm as a global resource and use it as a 
> ResourceLink?
> Date: Fri, 7 Aug 2009 15:27:43 -0400
> 
> Hi,
> 
> I would have thought this to be straightforward.  I finally got my LDAP 
> authentication working properly with my JNDIRealm configured within my 
> container (I tried both engine and context).
> In order to secure and clean things up a little, I would like to move my 
> JNDIRealm definition to a global resource and use it within my context, but 
> I can't seem to get it working.
> 
> This is what I have:
>   <GlobalNamingResources>
>    <!-- LDAP directory resource -->
>    <Resource name="SnoopyLDAP" auth="Container"
>              type="org.apache.catalina.realm.JNDIRealm"
>              connectionURL="ldap://snoopy.domain.com:389";
>              userPattern="uid={0},ou=People,dc=domain,dc=com"
>              roleBase="ou=Tomcat,ou=Group,dc=domain,dc=com"
>              roleName="cn"
>              roleSearch="(uniqueMember={0})"
>              digest="md5" />
> 
>      </GlobalNamingResources>
> 
> ....
> 
> <Context docBase="${catalina.home}/webapps/admin" privileged="true"
>          antiResourceLocking="false" antiJARLocking="false">
> 
>     <ResourceLink name="users" global="SnoopyLDAP" 
> type="org.apache.catalina.realm.JNDIRealm"/>
> 
> </Context>
> 
> 
> Unfortunately, this does not even open a connection to the server.  Do I 
> need to specify it in some other manner?  I checked the documentation for 
> the <Realm> object, but there doesn't seem to be any parameter that allows 
> me to link it to a global resource.
> 
> Thanks for the help!
> 
> Eric 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

_________________________________________________________________
Express your personality in color! Preview and select themes for Hotmail®. 
http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009

Reply via email to