Hi,
You have to :
configure your realm for example,
<Realm className="org.apache.catalina.realm.JAASRealm"                 
                        appName="Sample"       
        
userClassNames="weblogic.security.principal.WLSUserImpl"       
        
roleClassNames="weblogic.security.principal.WLSGroupImpl" 
                        debug="99"/>
"in this case your can't access easily to subject"
Configure your jaas config file.
<app> {
        <myLoginModule> <option> debug=true <params> 
};
use the system property to declare jaas login file.
-Djava.security.auth.login.config=<your path>
Deploy your wlclient.jar in common/lib.
Configure your webapp to secure urls.
I think its all.


-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 7 février 2005 16:18
À : tomcat-user@jakarta.apache.org
Objet : jaas with wlclient.jar returns no principals

We are developing a j2ee app using tomcat for the web container and 
weblogic for the ejb container. 
We are using jaas for authentication with weblogic. 
When our war is deployed on tomcat, using the wlclient.jar,  the jaas 
authentication returns no principals with the subject.  When we deploy our 
war on weblogic (or test a jaas client using weblogic.jar), the jaas 
authentication returns principlas.

What can we do to make the jaas authentication with a war deployed on 
tomcat work with weblogic?


Using WLClient.jar:
Subject is: Subject:
        Private Credential: 
[EMAIL PROTECTED]
        Private Credential: SubjectProxy[23994289]

Size of Principals: 0
Principals: 

Using Weblogic.jar:
Subject is: Subject:
        Principal: mjLDAP
        Private Credential: 
[EMAIL PROTECTED]
        Private Credential: 
[EMAIL PROTECTED]

Size of Principals: 1
Principals: 
mjLDAP

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to