pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
mod_auth_pgsql
2+ messages / 2 participants
[nested] [flat]

* mod_auth_pgsql
@ 2001-03-29 20:10  Jeff MacDonald <jeff@hub.org>
  0 siblings, 1 reply; 2+ messages in thread

From: Jeff MacDonald @ 2001-03-29 20:10 UTC (permalink / raw)
  To: pgsql-interfaces

Does anyone know what directives to add to a .htaccess file
to allow mod_auth_pgsql to connnect to password protected
databases as certain users ?

Thanks


Jeff MacDonald,

-----------------------------------------------------
PostgreSQL Inc		| Hub.Org Networking Services
jeff@pgsql.com		| jeff@hub.org
www.pgsql.com		| www.hub.org
1-902-542-0713		| 1-902-542-3657
-----------------------------------------------------
Facsimile : 1 902 542 5386
IRC Nick  : bignose
PGP Public Key : http://bignose.hub.org/public.txt




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: mod_auth_pgsql
@ 2001-03-30 12:36  D'Arcy J.M. Cain <darcy@druid.net>
  parent: Jeff MacDonald <jeff@hub.org>
  0 siblings, 0 replies; 2+ messages in thread

From: darcy@druid.net @ 2001-03-30 12:36 UTC (permalink / raw)
  To: Jeff MacDonald <jeff@hub.org>; +Cc: pgsql-interfaces

Thus spake Jeff MacDonald
> Does anyone know what directives to add to a .htaccess file
> to allow mod_auth_pgsql to connnect to password protected
> databases as certain users ?

This first may be required in the httpd.conf file.

LoadModule auth_pg_module /usr/lib/httpd/mod_auth_pg.so

You may also need something like this.

<Directory /> 
    Options FollowSymLinks ExecCGI Indexes
    AllowOverride All
    AuthPGAuthoritative off
</Directory>

In your .htaccess, something like this.

    AuthName "My Realm"
    AuthType Basic
    require valid-user
    AuthPGAuthoritative on
	AuthPGEncrypted off           # needed if you store passwords as plain text
    AuthPGHost "db.mydomain.com"  # needed if database is on other system
    AuthPGDatabase "dbname"
    AuthPGQuery "SELECT pwd FROM table WHERE login = '%s'"

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-03-30 12:36 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-03-29 20:10 mod_auth_pgsql Jeff MacDonald <jeff@hub.org>
2001-03-30 12:36 ` D'Arcy J.M. Cain <darcy@druid.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox