Mario Orlandi's Snippets

20/01/2012

Allow db access with password authentication in LAN

Filed under: Uncategorized — Tags: — morlandi @ 19:51

in file “pg_hba.conf”:

# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD

# "local" is for Unix domain socket connections only
local   all         all                               trust
# IPv4 local connections:
host    all         all         127.0.0.1/32          trust
host    paintdb     jcolors     192.168.98.0/24       password
host    all         all         192.168.98.0/24       password
# IPv6 local connections:
host    all         all         ::1/128               trust
Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.