I may be cracked (so please argue) but here is my

basic idea:

JAAS
   Subject
        Principal -- Credential
        Roles

Mailbox
  name
  roles []
  folders []

Folder
  name
  mailbox-name
  roles[]

If you have any of the roles associated with the mailbox, you can access the 
mailbox.  Mailboxes have folders (for pop you only access "INBOX").  Folders 
are also associated with roles.  If you have any roles associated with a folder 
you can access it.

We need to read more IMAP to find out whether you should see folders that you 
can't access or whether that should just be an option or what.

We can store other information in the Subject such as "DefaultMailbox" = 
"INBOX" when using a JBMail specific login module, but the goal is to allow 
users to be able to use the generic JBoss login modules as well.  (Maybe we 
need to extend them to allow them to get other information, but the goal is 
what is important).

Other thoughts?  Questions?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3862226#3862226

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3862226


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to