[jboss-user] [Security & JAAS/JBoss] - Re: Simple JAAS authentication not working....

2008-06-13 Thread piotr.koper
Try add @SecurityDomain at your bean definition: | @SecurityDomain("esf") | @Stateless | @Remote({IMySecuredBean.class}) | public class MySecuredBean implements IMySecuredBean | { | ... | } | it works for me. regards koper View the original post : http://www.jboss.com/index.h

[jboss-user] [Security & JAAS/JBoss] - Re: Sending Principal back to Client?

2008-06-13 Thread piotr.koper
Hi. As much as I know - You can't. SecurityAssociation is only container for credentials. But, in your ServerLoginModule You have method getIdentity() which return logged principal. On client side try to get this info from LoginContext, with method getSubject(). koper View the original post

[jboss-user] [Security & JAAS/JBoss] - Re: Re-login a user programmatically after changing his pass

2008-05-22 Thread piotr.koper
I think JBoss stores password in cache. Try to clear cache after changing password. piotr.koper View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152871#4152871 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode

[jboss-user] [Security & JAAS/JBoss] - One DynamicLoginConfig and Two applications - possible?

2008-05-20 Thread piotr.koper
g.xml because it uses some bean which is deployed with AppA.ear. Any suggestions or critics :-) sincere piotr.koper usefull informations: * os: windows xp sp2 * jboss version: 4.2.2.GA * jdk: 1.5.0_u11 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=41

[jboss-user] [Security & JAAS/JBoss] - Re: Where the customized login module should be deployed

2007-10-29 Thread piotr.koper
| | jboss.security:service=XMLLoginConfig | | | jboss.security:service=JaasSecurityManager | | | | I hope this helps :-) piotr.koper View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p

[jboss-user] [Security & JAAS/JBoss] - Re: Custom credential object and cache

2007-10-26 Thread piotr.koper
specific for my login module. Now it works exactly as I expected. Many thanks for answer. piotr.koper View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099448#4099448 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode

[jboss-user] [Security & JAAS/JBoss] - Custom credential object and cache

2007-10-23 Thread piotr.koper
| { | // implementations of Local and Remote interfaces | } * In my servlet: LoginContext lc = new LoginContext("sec-domain", instanceOfCallbackHandler); | lc.login(); Thanks for any help or suggestions piotr.koper View the original post : http://www.jboss.com/index.html

[jboss-user] [Security & JAAS/JBoss] - Re: Custom LoginModule, standalone application, InitialConte

2007-09-27 Thread piotr.koper
er to LoginModule through InitialContext environment params. Now i have my own Callback, that implements Callback interface... But in login method i have an exception: UnsupportedCallbackException. Even when I'm trying to logg in with LoginContext - the same problem. piotr.koper View the original po

[jboss-user] [Security & JAAS/JBoss] - Custom LoginModule, standalone application, InitialContext i

2007-09-18 Thread piotr.koper
loginContext.login(); callbackHandler fills NameCallback and PasswordCallback. Any suggestion will be appreciate :-) Regards piotr.koper View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085356#4085356 Reply to the post : http://w