PlugAuth::Plugin::FlatAuth - Authentication using Flat Files for PlugAuth
In your PlugAuth.conf file:
--- url: http://localhost:1234 user_file: /path/to/user.txt
Touch the user file:
% touch /path/to/user.txt
Add users using htpasswd (comes with Apache):
% htpasswd -m /path/to/user.txt newusername New password: Re-type new password:
% plugauth start
This plugin provides storage and password verification for users. This plugin also provides a mechanism for PlugAuth to change passwords, create and delete users. Although the user information is stored in flat files, the entire user database is kept in memory and the files are only re-read when a change is detected, so this plugin is relatively fast.
The user file is specified in the PlugAuth.conf file using the user_file field. The format of the user is a basic user:password comma separated list, which is compatible with Apache password files. Either the UNIX crypt, Apache MD5 or UNIX MD5 format may be used for the passwords.
It is possible to have multiple user files if you specify a list:
--- user_file: - /path/to/user1.txt - /path/to/user2.txt
Refresh the data (checks the files, and re-reads if necessary).
Given a user and password, check to see if the password is correct.
Returns a list of all users.
Create a new user with the given password.
Change the password of the given user.
Delete the given user.
Graham Ollis <email@example.com>
This software is copyright (c) 2012 by NASA GSFC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.