postgresql connection other than "trust"?
I am having troubles setting PostgreSQL to accept more secure network connections.
On my Mountain Lion system with Server.app I am trying to start my own copy of PostgreSQL running. Running the command
$ sudo serveradmin start postgres
gets things up and running, I can connect locally with psql.
But... if I go into the file
/Library/Server/PostgreSQL/Data/pg_hba.conf
and change the line
host all all 127.0.0.1/32 trust
to
host all all 127.0.0.1/32 md5
or anything other than "trust", I get the error message
$ sudo serveradmin start postgres
postgres:error = "CANNOT_START_SERVICE_TIMEOUT_ERR"
I initially got this error message when trying to change the file org.postgresql.postgres.plist and pg_hba.conf to accept network connection from other hosts. I could get this, but only if the METHOD is set to "trust", which doesn't seem like a good idea.
Any idea how to configure org.postgresql.postgres.plist and pg_hba.conf on OS X 10.8 with Server.app such that I can have a more secure connections?
Thanks,
Mac Pro, OS X Mountain Lion (10.8.2)