Hi, I am having a problem with the same ejb security. I have read a lot of the
articles and forums but I still have the problem. I use Anil`s setup for the
Jaas security login modules and deploy it with my app. It gets deployed, and I
used the JB AS5 way of propagating login credentials as you
Hi,
client.login must be called only once.
Please start a new thread, and provide us with more details on your login
module and security configuration and on your client code.
Did you check that your user is authenticated by the login module? Maybe the
login fails and the login module falls
H,
I created this thread:
http://www.jboss.org/index.html?module=bbop=viewtopicp=4222074#4222074
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4222075#4222075
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4222075
jaikiran wrote :
| This works with JBoss-5.0 GA.
|
Spoke too soon. A bit of debugging shows that using
SecurityClient client = SecurityClientFactory.getSecurityClient();
| client.setSimple(anil, mypass);
|
from a standalone client to access a secure EJB on JBoss-5.0 GA server always
jaikiran wrote : However, is there a way where i can clear of the user
credentials and relogin with a new password. The usecase i am trying is :
|
| // Login with incorrect password
| | SecurityClient client = SecurityClientFactory.getSecurityClient();
| | client.setSimple(anil,
jaikiran wrote :
| A bit of debugging shows that using
|
| SecurityClient client = SecurityClientFactory.getSecurityClient();
| | client.setSimple(anil, mypass);
| |
|
| from a standalone client to access a secure EJB on JBoss-5.0 GA server
always fails with Invalid User.
SecurityClient client = SecurityClientFactory.getSecurityClient();
| client.setSimple(anil, mypass);
|
This works with JBoss-5.0 GA. However, is there a way where i can clear of the
user credentials and relogin with a new password. The usecase i am trying is :
// Login with incorrect
| SecurityClient client = SecurityClientFactory.getSecurityClient();
| client.setSimple(anil, mypass);
|
| or
|
| client.setJaas(other, mycallbackhandler);
|
| client.login();
|
|
Hi Javid
I have the same Problem with the JndiLoginInitialContextFactory approach.
The sample runs fine with JBoss 4.2.2.GA but with Version 5.0.0.CR2 i'm
getting an Invalid User Message.
You can find another non JAAS approach (with the usage of LoginContext) here: