Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection

Поиск
Список
Период
Сортировка
От Garry Chen
Тема Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection
Дата
Msg-id B9745643-39BA-4578-99A6-1AE4721E0EE8@cornell.edu
обсуждение исходный текст
Ответ на Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-novice
Hmm the PGUSER is not working:

(GC92@gmc013:/users/gc92)
> PGUSER=dmtools
(GC92@gmc013:/users/gc92)
> psql "service=pgrls"
Password: 
psql: FATAL:  password authentication failed for user "gc92"
FATAL:  password authentication failed for user "gc92"
(GC92@gmc013:/users/gc92)
> echo $PGUSER
dmtools
(GC92@gmc013:/users/gc92)

On 9/20/17, 11:43 AM, "Alvaro Herrera" <alvherre@alvh.no-ip.org> wrote:
   Garry Chen wrote:   >    > Hi Alb,   >     Is there a way to give a username and passwd at the connection time?
Anotherword, not to set the username in gp_server.conf file.  Because psql just used my OS login id as username When I
removethe username from pg_server.conf file.      Hi Garr,      You can use the PGUSER environment variable to set the
username,and a   .pgpass file (or another file pointed to by the PGPASSFILE environment   variable) to give a password.
    --    Álvaro Herrera                https://www.2ndQuadrant.com/   PostgreSQL Development, 24x7 Support, Remote
DBA,Training & Services   
 


--
Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection