Kazuhiro Nishikawa > Authen-Htpasswd-Trac-0.00004 > Authen::Htpasswd::Trac

Download:
Authen-Htpasswd-Trac-0.00004.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.00004   Source  

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.

syntax highlighting: