On Wed, 2006-10-18 at 02:29 +0000, binberati wrote:
[...]
>   OperationalError at /
>   FATAL: Ident authentication failed for user "user_name"
> ------------------------------------------------------
> 
> Surprisingly, I can succesfully connect to the db using either:
> 
> - psql - PostgreSQL interactive terminal
> - django-admin.py shell
> - django-admin.py dbshell
> - django development server
> - Navicat PostgreSQL from my own pc using ssh-tunnel
> 
> The only circumstance in which I cannot seem to connect to the db is
> using the FastCgi instance, although it is configured to use the same
> settings file as above...
> 
> 
> [1] Can anybody shed a light on the difference between the FastCgi
> context and the ones mentioned above? I suspect it must have something
> to do with pg_hba.conf... but I can't see the difference between the
> contexts.

I would have a look at the user the fastcgi process is running as. The
ident method of authentication looks at process-owner users, so that is
important. In all the cases you mention above, *you* are the owner of
the process trying to do the connection. In your fastcgi case, this is
not necessarily true.

> [2] How do I resolve this issue? :)

Switch away from using ident authentication to password-based
authentication, for example.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to