[Catalyst] Auth::PAM??
J. Shirley
jshirley at gmail.com
Fri Nov 14 00:45:30 GMT 2008
On Thu, Nov 13, 2008 at 4:28 PM, Michael Higgins <linux at evolone.org> wrote:
> I had the idea to make an app that authenticates against PAM.
>
> Can this be done? There is Cat:P:A:C:PAM, but
>
> [warn] Credential class "Catalyst::Authentication::Credential::PAM" not found, trying deprecated ::Plugin:: style naming.
> [error] THIS IS DEPRECATED: Catalyst::Plugin::Authentication::Credential::PAM has no new() method - Attempting to use uninstantiated
>
> So... too bad that wasn't patched into the module docs somewhere. As you can imagine, it took quite a bit of digging to get it to work enough to tell me it was deprecated. :(
>
Adding "PAM" as your credential class should be enough to emit that
warning. What else did you have to do? It should work, though. The
new Catalyst::Plugin::Authentication system has backwards
compatibility checks.
> OK. There is a Authen::Simple option that doesn't apparently work either. Had to run script as superuser to have perms to read /etc/shadow. Even then, it failed with no particular error.
>
Can you use Authen::PAM (outside of Catalyst) on your system?
> So, maybe someone on the list can suggest some working, non-deprecated way I can authenticate users against those who have a username on the server? Or am I totally wasting my time?
>
Port Catalyst::Plugin::Authentication::Credential::PAM to the new
system. It's really simple in most cases. Then, release the new
Catalyst::Authentication::Credential::PAM to CPAN and collect your
ample rewards :)
-J
More information about the Catalyst
mailing list