Using Mod_auth_mysql

Discussion in 'Setting-up protection' started by wjwarner, Jul 30, 2003.

  1. wjwarner

    wjwarner Guest

    Hi:

    I've used the mod_auth_mysql apache module for access control in another project.
    The advantage over having Apache do linear searches in a password file
    is speed - when there are many hundreds or thousands of entries to scan.

    After a quick look it seems to me that Apache can be configured to index into
    the aMember mysql database directly rather than first generating then scanning
    .htpasswd and .htgroup files

    Has this been done, and are the config file changes documented?

    If not I'll try it out and post results.

    Wes
  2. alex-adm

    alex-adm Guest

    No, it has not been done, but definitely easy to do. However, it will be better to create plugin which will mantain table with content like .htpasswd - table of ACTIVE customers. If you use "members" table directly, it would be incorrect, as it contains active, pending and expired customers.

    I would recommend you to try advanced protection option, like this one:
    https://www.cgi-central.net/amemberdocs/pro...php_inc_mrw.htm
    The advantage is that it provides HTML-based login form for any type of content.
  3. wjwarner

    wjwarner Guest

    Thanks for the reply.

    Up to now I've been exploring the free version of aMember,
    and it seems not to include rewrite.php.

    Is there a way I can stick with the free version
    and use rewrite for access control as you suggest?

    Wes
  4. alex-adm

    alex-adm Guest

    Sorry, but such advanced features available only in Pro version.

Share This Page