Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

postgres security using username and password doesn't work 1

Status
Not open for further replies.

RahulGade

Programmer
Jul 17, 2001
25
IN
In fact when i don't pass the password for the specified username, i get logged in but it should not happened. if i specify wrong password but valid username then also it gives me entry into postgres interactive mode, also from the c++ connection object. please tell me how to implement the security using password in postgres.
 
i'd check the pg_hba.conf file and make sure it's not set to accept connections from anyone

look for a line that has a broad mask and trust.

have a look at the pg_hba.conf file and it explains how to limit user access.

might be your connect string as well if you are connecting as user 'postgres' ....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top