|
Home > Archive > WebSphere Application Server > March 2007 > Sample Custom Database (DB2) User Registry Source Code
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Sample Custom Database (DB2) User Registry Source Code
|
|
|
| Hello all,
I am trying to create a custom user registry for WAS 6.1 that utilizes a DB2 database for storing user credentials. Do any of you have source code for such a user registry you could share with me?
If so, please email to mcb_rational@yahoo.com or matt.burton2@boeing.com.
Thanks!
Matt
| |
| Paul Ilechko 2007-02-28, 1:18 pm |
| mcb_rational@yahoo.com wrote:
> Hello all,
>
> I am trying to create a custom user registry for WAS 6.1 that
> utilizes a DB2 database for storing user credentials. Do any of you
> have source code for such a user registry you could share with me?
Just a warning - you can't use WAS Datasources in such a CUR, as it may
be called in situations where their use is not available. You have to do
your data access the ugly way.
Have you looked into the database registry support in WAS 6.1 under
Federated Repository Mgmt (VMM) ?
| |
| MattyB 2007-03-01, 1:25 am |
| > Just a warning - you can't use WAS Datasources in
> such a CUR, as it may
> be called in situations where their use is not
> available. You have to do
> your data access the ugly way.
>
> Have you looked into the database registry support in
> WAS 6.1 under
> Federated Repository Mgmt (VMM) ?
I'm sorry, but still learning WAS. What do you mean I have to do it the hard way?
I have not looked at Federated Repository Mgmt, but it may be a fit. My need is single server with standard WAS, not Network Deployment. Is that an option for me?
Thanks!
Matt
| |
| MattyB 2007-03-01, 1:25 am |
| Thank you for the response Paul! How do people normally handle this situation then when they want to secure a web app for users no defined on the local OS or LDAP (i.e., all users are external)?
Thanks!
Matt
> Just a warning - you can't use WAS Datasources in
> such a CUR, as it may
> be called in situations where their use is not
> available. You have to do
> your data access the ugly way.
>
> Have you looked into the database registry support in
> WAS 6.1 under
> Federated Repository Mgmt (VMM) ?
| |
| Paul Ilechko 2007-03-01, 1:18 pm |
| MattyB wrote:
>
> I'm sorry, but still learning WAS. What do you mean I have to do it
> the hard way?
Use regular old JDBC directly, not using WAS datasources. You might want
to hire IBM software services for WebSphere to help, we've done this
kind of thing before.
> I have not looked at Federated Repository Mgmt, but it may be a fit.
> My need is single server with standard WAS, not Network Deployment.
> Is that an option for me?
It doesn't matter whether you're ND or Base.
| |
|
| > MattyB wrote:
> such a CUR, as it
> available. You
> in WAS 6.1 under
> mean I have to do it
>
> Use regular old JDBC directly, not using WAS
> datasources. You might want
> to hire IBM software services for WebSphere to help,
> we've done this
> kind of thing before.
>
> it may be a fit.
> Network Deployment.
>
> It doesn't matter whether you're ND or Base.
I am trying to configure a custom user registry in was 6.1, but I don't know what I should type in the "primary administrative user name" input. When I try to apply, the console shows an error: "The user administrative ID does not exist in the user reposi
tory.".
I've read the docs but it didn't help very much.
"One of the details common to all user registries or repositories is the Primary administrative user name. This ID is a member of the chosen repository, but also has special privileges in WebSphere Application Server. The privileges for this ID and the pr
ivileges that are associated with the administrative role ID are the same. The Primary administrative user name can access all of the protected administrative methods."
Can someone help me?
Thank you.
| |
| Paul Ilechko 2007-03-26, 1:23 pm |
| thiago@softplan.com.br wrote:
> I am trying to configure a custom user registry in was 6.1, but I
> don't know what I should type in the "primary administrative user
> name" input. When I try to apply, the console shows an error: "The
> user administrative ID does not exist in the user repository.".
>
> I've read the docs but it didn't help very much.
Seems pretty self-evident - the user name that you are using has to
exist in your custom registry as a user. The error is telling you that
the user you are entering is not in your registry.
Also, this user, or a group that it is a member of, will have to be
mapped to the administrator role within WAS (you can do that in the
admin console).
| |
|
| > Seems pretty self-evident - the user name that you
> are using has to
> exist in your custom registry as a user.
You mean, the method "public Result getUsers(String arg0, int arg1)"
of the custom registry must return an object of the type "Result" that its list contains the String I entered as the primary administrative user name.
Well I did that.
> Also, this user, or a group that it is a member of,
> will have to be
> mapped to the administrator role within WAS (you can
> do that in the
> admin console).
I did that too. I create an user with the primary administrative user name, set its role to administrator, tested login the console using this user, and it's worked.
But the console still shows the same error in the custom user registry config:
"The user administrative ID does not exist in the user repository." (I see this message in Portuguese.. so maybe its not completely correct)
|
|
|
|
|