The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Authen::Htpasswd::Trac - interface to read and modify Trac password files

SYNOPSIS

use Authen::Htpasswd::Trac;

my $auth = Authen::Htpasswd::Trac->new( '/path/to/.htpasswd', { trac => '/path/to/trac.db'} );
my @rs   = $auth->find_user_permissions($username, $password);

$auth->add_permission('myuser', 'TRAC_ADMIN');
$auth->remove_permission('myuser', 'TRAC_ADMIN');

DESCRIPTION

This module based on Authen::Htpasswd. And interface to trac with account-manager plugin.

METHODS

new( password file, { trac => 'database file of trac' })

find_user_permissions( username, password )

Returns trac permission names.

add_permission( username, action )

Add permission to trac.

remove_permission

Remove permission to trac.

other methods

$ perldoc Authen::Htpasswd

AUTHOR

Kazuhiro Nishikawa <kazuhiro.nishikawa@gmail.com>

SEE ALSO

Authen::Htpasswd, http://trac.edgewall.org/

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.