[fpc-pascal] How to use pam?
Sven Barth
pascaldragon at googlemail.com
Mon Feb 6 20:44:02 CET 2012
On 06.02.2012 17:45, ik wrote:
> On Mon, Feb 6, 2012 at 18:37, Mattias Gaertner
> <nc-gaertnma at netcologne.de <mailto:nc-gaertnma at netcologne.de>> wrote:
>
> __
>
> Hi,
>
> I need to authenticate user name and password under Linux. These are
> normal accounts so I guess "libpam" is the weapon of choice. But I
> can't find any pam binding in the FPC sources.
>
> Is there a better way or has really no one yet used pam with fpc?
>
>
> You can use the /etc/shadows and /etc/passwd files yourself, but that
> require you to implement the hashing algorithm for the password inside
> (depends on what the user/admin choose as local login).
Processing these files does not allow you to utilize other mechanisms
for authentication like fingerprint sensors or security keys which are
supported by PAM. So implementing a PAM binding is the way to go.
Regards,
Sven
More information about the fpc-pascal
mailing list