SlideLoginModule with Jetty6

"Gillian Beggah" <[email protected]>
Newsgroups gmane.comp.jakarta.slide.user
Message-ID <[email protected]>
Hi All,
Has anybody has successfully used SlideLoginModule with Jetty6? I
embedded Jetty6 into my app and then give Jetty slide.war so my app
acts as a DAV server. I set all the necessary JAAS stuff to get the
authentication going. I see that authentication is working but always
failed with message:
        AUTH FAILURE: incorrect role for root

I tried user john, john2 but the result is the same.  After doing the
source level debugging, I found the error is in
JAASUserPrincipal.java. In particular getRoles() always returning
null.

I read for the maillist archive the following from Rob Moore

"  After some trolling, I discovered that Jetty's JAASGroup.ROLES field
  changed from "roles" in 4.2 to "__roles__" in 5. As a result,
  JAASUserPrincipal.getRoles() expects the group object to be named the
  equivalent of JAASGroup.ROLES and doesn't find the appropriate
  SlideGroup (since it passes back the former value).

  Anyhow, I hope this helps somebody along the line. Alas, I don't see any
  immediate way to fix this issue while maintaining backward
  compatibility. Perhaps SlideLoginModule could be made configurable so
  that a different implementation of SlideGroup or more generally
  java.security.acl.Group could be substituted. "

I am wondering if anybody has a solution to this issue.

Thank you in advance
Gil.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.