Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [riena-dev] How to store the password in the application server?

Sorry for my poor english speaking.

But the database has some fields used to record the operator's user name
for example, I want to do in the SQL:

update table_name set operator_name = current_user where ...

So, I want to use the username/password to connect the database.

Not only the userid/password I want to keep, but also the other information about the session.
In some service implementation, the program want to save some properties to the session,
And in other servcie implementation, the program want to retrive properties associated with the session.

I just want to known how to do these.

----- Original Message ----- 
From: "Christian Campo" <christian.campo@xxxxxxxxxxxx>
To: "Riena Developers list" <riena-dev@xxxxxxxxxxx>
Sent: Friday, May 08, 2009 1:52 AM
Subject: Re: [riena-dev] How to store the password in the application server?


>I am not sure what you really wonna do. The userid and password that  
> the user enters in the LoginModule and gets sent to  
> AuthenticationService and verified in the AuthenticationModule is  
> really not meant to be used to access the backend database itself.
> 
> Because that would mean that you had to reconnect to the database for  
> each remote service request. Rather you should have a fixed userid  
> password for the database connection itself and only use the users's  
> userid and password to validate the identity at login time.
> 
> Does that help ?
> 
> cheers
> christian
> Am 07.05.2009 um 11:56 schrieb yau:
> 
>> I want to use the user name and password sended by the client to  
>> connect the database in the application server.
>> The user name I can retrived by SubjectAccessor,  but I dont known  
>> how - ,where - ,when - to store the password?
>> I just known the LoginModule in the server can receive the password  
>> sended by the client.
>>
>> Yau
>> <ATT00001.c>
> 
> _______________________________________________
> riena-dev mailing list
> riena-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/riena-dev
>

Back to the top