You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by LERBSCHER Jean-Pierre <je...@cofiroute.fr> on 2005/02/08 09:50:42 UTC
RE : jaas with wlclient.jar returns no principals
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 : CMcDonald@shawsystems.com [mailto:CMcDonald@shawsystems.com]
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:
weblogic.security.auth.login.PasswordCredential@16bd8ea
Private Credential: SubjectProxy[23994289]
Size of Principals: 0
Principals:
Using Weblogic.jar:
Subject is: Subject:
Principal: mjLDAP
Private Credential:
weblogic.security.auth.login.PasswordCredential@273686
Private Credential:
weblogic.security.auth.login.PasswordCredential@6caf16
Size of Principals: 1
Principals:
mjLDAP
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org