chris- has asked for the wisdom of the Perl Monks concerning the following question:
Authentication::Driver::HTPasswd says:$self->authen->config( DRIVER => [ 'DBI', DBH => $self->dbh, TABLE => 'user_info', CONSTRAINTS => { 'user_info.username' => '__CREDENTIAL_1__', 'MD5:user_info.password' => '__CREDENTIAL_2__' }, ], STORE => 'Session', LOGOUT_RUNMODE => 'logout', LOGIN_RUNMODE => 'login', POST_LOGIN_RUNMODE => 'okay', RENDER_LOGIN => \&my_login_form, );
but if I change the DRIVER to:DRIVER => ['HTPasswd', '/etc/apache/htpasswd', '/etc/apache/otherhtpas +swd']
it seems obvious to me that it will not work. Where can I say that e.g. md5 is used in the htpasswd file, what the user name is used and so on. Is there any example? I think I missed an essential part. Txs, chrisDRIVER => [ 'HTPasswd', '/srv/www/my/.htpasswd' ],
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Application::Plugin::Authentication, switch from DBI to htpasswd
by Corion (Patriarch) on Jan 08, 2009 at 11:12 UTC | |
by chris- (Initiate) on Jan 16, 2009 at 12:05 UTC | |
by chris- (Initiate) on Jan 13, 2009 at 14:56 UTC |