Re: Re: using LDAP for connection information lookup to do remote database connection

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "'Garry Chen *EXTERN*'" <gc92(at)cornell(dot)edu>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Re: using LDAP for connection information lookup to do remote database connection
Date: 2017-09-22 07:38:48
Message-ID: A737B7A37273E048B164557ADEF4A58B7221CC43@ntex2010i.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Garry Chen wrote:
> Is there a way to give a username and passwd at the connection time? Another word,
> not to set the username in gp_server.conf file. Because psql just used my OS login id as
> username When I remove the username from pg_server.conf file.

Sure. Try something like:

$ psql "service=mydatabase user=mydbuser password=topsecret"

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Garry Chen 2017-09-22 12:59:33 Re: Re: using LDAP for connection information lookup to do remote database connection
Previous Message Garry Chen 2017-09-20 17:01:55 Re: Re: using LDAP for connection information lookup to do remote database connection