Re: mapping a user to a group using DataSourceUserManager

2000-11-07 Thread Christian Sell

Russ,

to my understanding, user/group-to-role mapping is done in
orion-application.xml (orion deployment files). Principals.xml defines users
and groups in a manner unrelated to J2EE roles and is thus comparable to the
user base you have in any other datastore.

regards,
Christian
- Original Message -
From: "Russ White" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Monday, November 06, 2000 4:57 PM
Subject: mapping a user to a group using DataSourceUserManager


 I have spent the morning looking through the archives and not really found
what
 I am looking for.

 I found that I can grab username and password from the
DataSourceUserManager
 just fine, but I have to map the user to a group manually still with
 priciples.xml.

 If this is the only way to do this then it is a real drag, and really
makes it
 almost useless in my book.

 Is there any way for me to grab a user's group from DataSourceUserManager?
 If so what is the property name?
 If not what are my other options?

 Thanks,
 Russ







RE: mapping a user to a group using DataSourceUserManager

2000-11-07 Thread Arved Sandstrom

The extra fields described in the API docs and the docs for
orion-application.xml, as they pertain to user managers, specifically
DataSourceUserManager, allow you to specify a groups table also (which can
be the same as the username+password table).

EJBUserManager also allows for groups.

This all works just fine, I've found, for retrieval, and mapping a user to a
role at login(), without having to specify users in principals.xml (which,
as you say, is the whole point). I think there are problems with some of the
methods, though, like addToGroup(), and getGroup(). This would affect
creation of new users and adding them to groups, but for an existing user
base you're OK.

Arved Sandstrom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Russ White
Sent: Monday, November 06, 2000 11:57 AM
To: Orion-Interest
Subject: mapping a user to a group using DataSourceUserManager


I have spent the morning looking through the archives and not really found
what
I am looking for.

I found that I can grab username and password from the DataSourceUserManager
just fine, but I have to map the user to a group manually still with
priciples.xml.

If this is the only way to do this then it is a real drag, and really makes
it
almost useless in my book.

Is there any way for me to grab a user's group from DataSourceUserManager?
If so what is the property name?
If not what are my other options?

Thanks,
Russ







RE: mapping a user to a group using DataSourceUserManager

2000-11-07 Thread Russ White

Actually, I found the answer after looking through the Orion API last night at
home.
It can be done by mapping the UserManager to a user/group table.

Now that I have it working I am thinking of writing a tutorial on using the
DataSourceUserManager to submit to orionsupport.com

Thanks for the response!

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell
 Sent: Tuesday, November 07, 2000 5:12 AM
 To: Orion-Interest
 Subject: Re: mapping a user to a group using DataSourceUserManager


 Russ,

 to my understanding, user/group-to-role mapping is done in
 orion-application.xml (orion deployment files). Principals.xml defines users
 and groups in a manner unrelated to J2EE roles and is thus comparable to the
 user base you have in any other datastore.

 regards,
 Christian
 - Original Message -
 From: "Russ White" [EMAIL PROTECTED]
 To: "Orion-Interest" [EMAIL PROTECTED]
 Sent: Monday, November 06, 2000 4:57 PM
 Subject: mapping a user to a group using DataSourceUserManager


  I have spent the morning looking through the archives and not really found
 what
  I am looking for.
 
  I found that I can grab username and password from the
 DataSourceUserManager
  just fine, but I have to map the user to a group manually still with
  priciples.xml.
 
  If this is the only way to do this then it is a real drag, and really
 makes it
  almost useless in my book.
 
  Is there any way for me to grab a user's group from DataSourceUserManager?
  If so what is the property name?
  If not what are my other options?
 
  Thanks,
  Russ