hi danch,
my client/auth.conf on server side is :
simple org.jboss.security.plugins.samples.SimpleServerLoginModule required;
};
// The default server login module
other {org.jboss.security.plugins.samples.JaasServerLoginModule
required;
};
session-roles {
org.jboss.security.plugins.samples.JaasServerLoginModule required
password-stacking="useFirstPass";
org.jboss.security.plugins.samples.RolesLoginModule required;
};
yes i have a jboss.xml in my .jar's META-INF
that sets:
security-domainjava:/jaas/other/security-domain
and only for the container config that i wil use for this sample :
container-nameStandard Stateless SessionBean/container-name
role-mapping-managerjava:/jaas/session-roles/role-mapping-manager
and i have no old files of older version in my classpath.
all jar files loaded in the classpath came from the dist/lib or dist/lib/ext
where dist={jboss_home}
and i have no add lines on my standardjboss.xml
securefalse/secure
and no security-domain
no role-mapping-manager
and no authentication-module
where is the problem ?
thierry
- Original Message -
From: "danch" [EMAIL PROTECTED]
To: "Thierry Birre" [EMAIL PROTECTED]
Sent: Wednesday, March 21, 2001 4:58 PM
Subject: Re: [JBoss-user] JAAS Based Security in JBoss
Hmm. This has been working for me for some time (although for the last
week or so it was broken with different simptoms than yours - I don't
know if this was my config or something that happened when the security
was split into a separate module. At any rate CVS from this morning
works.)
This 'null principal' makes me wonder: what does your server-side
auth.conf look like. The stock one from the JBoss build should work.
Do you have a jboss.xml in your jar's META-INF that sets
authentication-module and role-mapping-manager? Are you sure you don't
have older (maybe JBoss 2.0) stuff on your client's classpath?
Thierry Birre wrote:
This message was sent from Geocrawler.com by "Thierry Birre"
[EMAIL PROTECTED]
yes i'm calling from a stand-alone client and i
point this client to the good client/auth.conf
java -Djava.security.auth.login.config=file://
${jboss_home}/client/auth.conf SessionClient
scott echoman
i have exactly follow config instructions of
the "JAAS Based Security in JBoss Custom Security
in JBoss Using the JBossSX Framework" page of the
new manual :
http://www.jboss.org/documentation/HTML/ch09s32.ht
ml
but i always have the same error principal=null ?
thanks!
thierry
---
I assume that you're calling from a stand-alone
client? Did you point
that client at the auth.conf in the
JBoss_home/client directory, or
the one in conf/default? The client needs to read
the auth.conf from the
client directory in order to Do the Right Thing.
danch
thierry birre wrote:
hi jboss-users
i'm using the last 2.1 version of jboss with
embedded tomcat on windows
2000.
i read the page of the new manual :
http://www.jboss.org/documentation/HTML/ch09s32.ht
ml
after configuring all files :
jboss.jcml, standardjboss.xml, auth.conf,
roles.properties and
users.properties
all the deployment phase is ok.
but when i run the SessionClient i have a
remote exception :
_on the client window :_
Created LoginContext
[JAASSecurity] User 'scott' authenticated.
Found StatelessSessionHome
java.rmi.ServerException: RemoteException
occurred in server thread;
nested exception is:
java.rmi.RemoteException:
checkSecurityAssociation; nested
exception is:
java.lang.SecurityException:
Authentication exception
java.rmi.RemoteException:
checkSecurityAssociation; nested exception is:
java.lang.SecurityException:
Authentication exception
java.lang.SecurityException: Authentication
exception
at
sun.rmi.transport.StreamRemoteCall.exceptionReceiv
edFromServer(Unknown
Source)
at
sun.rmi.transport.StreamRemoteCall.executeCall
(Unknown Source)
at sun.rmi.server.UnicastRef.invoke
(Unknown Source)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInv
oker_Stub.invokeHome(Unknown
Source)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.in
voke(HomeProxy.java:248)
at $Proxy0.create(Unknown Source)
at SessionClient.main
(SessionClient.java:78)
_on the server window :_
[J2EE Deployer Default] Deploy J2EE
application:
file:/C:/java/platform/dist/deploy/ssbean.jar
[J2EE Deployer Default] Create application
ssbean.jar
[J2EE Deployer Default] install module
ssbean.jar
[Container factory]
Deploying:file:/C:/java/platform/dist/tmp/deploy/D
efault/ssbean.jar
[Verifier] Verifying
file:/C:/java/platform