Re: [fpc-pascal] How to use pam?
In our previous episode, Mattias Gaertner said: > 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? There is an user package that deals with username and pwd via libc, and also works on FreeBSD. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to use pam?
On 06.02.2012 17:37, Mattias Gaertner 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? If no one comes up with a header translation you might simply try whether h2pas can convert the header files of libpam. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to use pam?
On 06.02.2012 17:45, ik wrote: On Mon, Feb 6, 2012 at 18:37, Mattias Gaertner mailto:nc-gaert...@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 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to use pam?
On Mon, Feb 6, 2012 at 14:37, Mattias Gaertner 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? > At [1] there's a good recipe of how to implement a PAM login app, I believe it could be an interesting point to start a fpc binding. [1] http://www.ibm.com/developerworks/linux/library/l-pam/index.html (search for "10 steps to designing a simple PAM login app") ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to use pam?
On Mon, Feb 6, 2012 at 18:37, Mattias Gaertner 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). > > > thanks, > > Mattias > > > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] How to use pam?
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? thanks, Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal