[fpc-pascal]Crypt() or shadow stuff

Martyn Ranyard ranyardm at lineone.net
Thu Aug 29 18:07:38 CEST 2002

Hi all,

   I have now a working TCP/IP server program written in FreePascal and 
want to add authentification to it.

   With the DES unit, I can see if the following is true, but this only 
works if the password is in /etc/passwd :

   userpass = crypt(typedpass, typedpass)

   but this unit doesn't allow for the $1 -style passwords so how do I 
verify the password if it is in /etc/shadow?

Code snippet anyone?


Martyn Ranyard
Free Software Advocate

jabber - joran at amessage.de
icq    - 122500800
irc    - Joran on oftc
msn    - ranyardm at hotmail.com
e      - ranyardm at lineone.net

More information about the fpc-pascal mailing list