shiro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Les Hazlewood <lhazlew...@apache.org>
Subject Re: Shiro Realm for Unix PAM
Date Thu, 17 Feb 2011 20:01:10 GMT
H Philippe,

Thanks for sharing with us - this is cool!

Best,

Les
P.S.  Thanks to the Shiro team for a great project in general - I'm
only part of the overall team :)

On Thu, Feb 17, 2011 at 11:36 AM, Philippe Laflamme <twologic@gmail.com> wrote:
>
> Hi,
>
> I was asked recently if my Java web app could use unix PAM subsystem for
> authenticating users. The sys admins would like that because they control
> the authentication configuration that way. After looking for an answer I
> ended up finding Koshuke's libpam4j which uses JNA to talk to the system's
> libpam. The next logical step was to use this inside my favorite security
> library...
>
> Since Shiro is so nice, it took like 5 minutes to write a Realm
> implementation that leverages libpam4j. The result is that you can use Shiro
> to authenticate users against the OS's mechanism (which in turn can
> authenticate against pretty much anything).
>
> I took the liberty to create an improvement in JIRA here:
> https://issues.apache.org/jira/browse/SHIRO-269
>
> The realm implementation is available here:
> https://github.com/plaflamme/shiro-libpam4j
>
> Thanks to Les and Koshuke for writing their libs so nicely that it made
> writing this so trivial!
>
> Cheers,
> Philippe

Mime
View raw message