Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection - Mailing list pgsql-novice

From Albe Laurenz
Subject Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection
Date
Msg-id A737B7A37273E048B164557ADEF4A58B7221CC43@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection  (Garry Chen <gc92@cornell.edu>)
Responses Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection
List 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

--
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 by date:

Previous
From: Garry Chen
Date:
Subject: Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection
Next
From: Garry Chen
Date:
Subject: Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection