Sunday, June 20, 2010

Re: PostgreSQL backend - Ident authentication failed?

Hallöchen!

Victor Hooi writes:

> [...]
>
> However, I'm still curious as to what changed, as I'm fairly sure
> this setup worked on the old Ubuntu 9.04 server? And I'm
> definitely sure that the database username was set to "victorhooi"
> on that old system - I copied the settings.py file over using
> verbatim (rsync).

Maybe pg_hba.conf has changed.

> Also, is this recommended practice, to use "www-data" as the
> backend database username?

No, not recommended, but not forbidden either. We didn't use
"ident" but "password" in pg_hba.conf. This way, you are not bound
to user accounts of the underlying operating system.

But possibly we switch to "ident" for local connections
(i.e. command line) and "password" for TCP/IP connections. The
reason is that passwords make command line scripting harder.

Tschö,
Torsten.

--
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: torsten.bronger@jabber.rwth-aachen.de
or http://bronger-jmp.appspot.com

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment