I hace a webapp configured with security. So I need to login on it,
using BASIC authentication. When I do:
Repository r = (Repository) ctx.lookup("repo");
Session session = r.login();
Jackrabbit is supposed to get credentials from the authenticated user,
but fails.
In my protected JSP i do:
AccessControlContext acc = AccessController.getContext();
Subject subject = Subject.getSubject(acc);
but the subject is null. It seems to be a JBoss problem with this
workaround (I use JBOss 4.0.2):
Context ctx = new InitialContext();
org.jboss.security.SubjectSecurityManager mgr =
(org.jboss.security.SubjectSecurityManager)ctx.lookup("java:comp/env/security/securityMgr");
Subject sub = mgr.getActiveSubject();
So, Can anybody confirm that r.login() fails?
Thanks in advance.
--
Paco Avila <[EMAIL PROTECTED]>