Thread: Apache+Postgresql (mod_auth_pgsql)

Apache+Postgresql (mod_auth_pgsql)

From
Marcos
Date:
hi,

    i have an apache private directory and i would like to manage the
user&pass from a postgresql database. i think there is something like
mod_auth_pgsql but i do not know how can i use it. (i do not have mysql)

    this is the current configuration:

<Directory "/www/privado">
AuthName "ZONA RESTRINGIDA"
AuthType Basic
AuthUserFile /www/passwd.file
# AuthGroupFile /usr/local/apache/group.web
require valid-user
Options FollowSymLinks Includes
AllowOverride Options AuthConfig
Order allow,deny
Allow from all
ErrorDocument 401 /error.htm
ErrorDocument 403 /error.htm
ErrorDocument 404 /www/error.htm
</Directory>

Firstly, how can i change this configuration in orden to allow
connections to a database to verify user&password. How many fields could

the database have? (login,pass,city,....)
Secondly, how can i have stadistics of how many times an users has got
into the privated directory. (any suggestion) Perhaps could be a script
to write into the database. ?¿?
Thirdly, Any suggestions will be pleased,

thanks in advance,

marcos
marcos@ival.es


Re: Apache+Postgresql (mod_auth_pgsql)

From
Alvar Freude
Date:
Hi,

>
> Secondly, how can i have stadistics of how many times an users has got
> into the privated directory. (any suggestion) Perhaps could be a script
> to write into the database. ?¿?

for this, you can use the standard Apache logfiles, if you don't need it
inside the Database.


For auth, I guess there are docs on the apache website. There is also an
mod_perl module for general DBI authentication, see
http://theoryx5.uwinnipeg.ca/CPAN/data/ApacheDBI/AuthDBI.html


Ciao
  Alvar


--
Alvar C.H. Freude  |  alvar.freude@merz-akademie.de

    Demo: http://www.online-demonstration.org/  |  Mach mit!
Blast-DE: http://www.assoziations-blaster.de/   |  Blast-Dich-Fit
Blast-EN: http://www.a-blast.org/               |  Blast/english