|
NAMENet::Radius::Server::PAM - Authenticate users using the Linux-PAM frameworkSYNOPSISuse Net::Radius::Server::PAM; my $pam = new Net::Radius::Server({@args}); # As match-method factory $pam->fmatch(); # As set-method factory $pam->fset(); DESCRIPTION"Net::Radius::Server::PAM" uses the PAM framework to authenticate and populate a RADIUS response within the Net::Radius::Server framework. The interface with the PAM infraestructure is provided by Authen::PAM(3).The following methods are supported:
The match method will attempt authentication via username and password against the PAM framework. Succesful authentication causes the match method to return NRS_MATCH_OK. Failure, as expected, causes the return of NRS_MATCH_FAIL. The "Authen::PAM" object is left in the shared invocation hash at the specified key. The set method attempts to fetch the environment provided by the PAM framework, translating any environment variables matching an attribute in the current dictionary into RADIUS attribute/value pairs within the response. The set method will only perform its task if the account can be authenticated by PAM. Otherwise, a NRS_SET_CONTINUE will be returned, causing the execution of the rules to continue. The following properties or arguments can be specified to either the constructor or any factory:
Note that this class inherits from Net::Radius::Server::Set::Simple(3), so all its attributes are available as well. EXPORTNone by default.HISTORY$Log$ Revision 1.6 2006/12/14 16:33:17 lem Rules and methods will only report failures in log level 3 and above. Level 4 report success and failure, for deeper debugging Revision 1.5 2006/11/15 05:54:04 lem NRS::PAM now inherits from NRS::Set::Simple to increase functionality. Revision 1.4 2006/11/15 05:39:15 lem Corrected invocation of the factories Revision 1.2 2006/11/15 05:23:57 lem service now can be left unspecified. Defaults to 'login' Revision 1.1 2006/11/15 05:14:54 lem NRS::PAM has basic functionality. SEE ALSOPerl(1), Net::Radius::Server(3), Net::Radius::Server::Match(3), Net::Radius::Server::Set(3), Net::Radius::Server::Set::Simple(3), Authen::PAM(3).AUTHORLuis E. Muñoz, <luismunoz@cpan.org>COPYRIGHT AND LICENSECopyright (C) 2006 by Luis E. MuñozThis library is free software; you can redistribute it and/or modify it under the same terms as Perl 5.8.6 itself. POD ERRORSHey! The above document had some coding errors, which are explained below:
Visit the GSP FreeBSD Man Page Interface. |