Re: Webappication and PostgreSQL login roles

Поиск
Список
Период
Сортировка
От Ben Trewern
Тема Re: Webappication and PostgreSQL login roles
Дата
Msg-id euvma6$255j$1@news.hub.org
обсуждение исходный текст
Ответ на Webappication and PostgreSQL login roles  (Thorsten Kraus <TK-Spam@gmx.de>)
Список pgsql-general
I think it's something like SELECT 'md5' + md5(password + username);
 
Regards,
 
Ben
"Thorsten Kraus" <TK-Spam@gmx.de> wrote in message news:46127989.6000409@gmx.de...
This would be a possible way. Now the question is which algorithm implementation of md5 PostgreSQL uses...

Bye,
Thorsten

Ben Trewern schrieb:
You could originally connect to the database as some kind of power user. 
Check the password against the pg_shadow view (you would need to md5 your 
password somehow) and then do a SET SESSION AUTHORIZATION (or SET ROLE) to 
change your permissions.  Not sure how secure this would be but it's the way 
I would try.

Regards,

Ben
"Thorsten Kraus" <TK-Spam@gmx.de> wrote in message 
news:46124F74.3000302@gmx.de... 
Hi,

thanks for your answer. I cant use the username/password in my DSN because 
I don't connect directly via JDBC to the database. I use hibernate for all 
database actions. The username and password has to be stored in the 
hibernate configuration file...

Bye,
Thorsten


Lutz Broedel schrieb:   
Can you not use the username/password as part of the DSN?

Regards,
Lutz Broedel
     
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
   


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
 

В списке pgsql-general по дате отправления:

Предыдущее
От: Steve Gerhardt
Дата:
Сообщение: Re: UPDATE on two large datasets is very slow
Следующее
От: Huynh Ngoc Doan
Дата:
Сообщение: Need your help on using "partion"