Basic Authentication 5

Alternative Password and Group Databases

mod_auth_db, mod_auth_dbm
Fast hashed access to passwords and group files

mod_auth_nis
Authentication using NIS

mod_auth_ldap
LDAP-authentication

mod_auth_oracle
Using the Oracle database

mod_auth_cookie_msql
Authenticates via a mySQL database, then keeps authentication information in a cookie.

many others...

Using dbmmanage

Adding a user to passwd file:
  % dbmmanage /www/etc/passwd adduser lstein
  New password: ********
  Re-type new password: ********
  User lstein added with password encrypted to bO/9l9207nNVk

Adding a group to the group file:
  % dbmmanage /www/etc/group add web-admin lstein
  User web-admin added with password encrypted to lstein
  % dbmmanage /www/etc/group add authors lstein,john,fred,wendy
  User authors added with password encrypted to lstein,john,fred,wendy
  % dbmmanage /www/etc/group add guests gloria
  User guests added with password encrypted to gloria

Viewing contents of a hash file:
 % dbmmanage /www/etc/group view
 web-admin:lstein
 authors:lstein,john,fred,wendy
 guests:gloria

Password-Protecting a Directory with a DBM or DB File

  <Location /members_only>
    AuthName  development
    AuthType  Basic
    AuthDBUserFile   /www/etc/passwd
    AuthDBGroupFile  /www/etc/group
    require valid-user
  </Location>

<< Previous Contents >> Next >>

Lincoln D. Stein, lstein@cshl.org
Cold Spring Harbor Laboratory
Last modified: Sun Jul 16 18:47:38 PDT 2000