Thanks scott,
It almost did it, I had to change a bit:
AuthenticationManager manager = (AuthenticationManager)
m_ctx.lookup("java:/jaas/MyPolicy");
...
Principal user = new SimplePrincipal(userName);
Subject subject = new Subject();
// this method filled the current subject
// So I had to skip - (Subject) PolicyContext.getContext
(SUBJECT_CONTEXT_KEY);
// since the subject became NULL.
if (manager.isValid(user, password, subject)) {
And thats it,
thanks allot,
Dan Berke
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923210#3923210
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923210
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user