Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-08

Crypt() or shadow stuff

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martyn Ranyard

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?

Cheers

-
Martyn Ranyard
Free Software Advocate

jabber -
icq - 122500800
irc - Joran on oftc
msn -
e -

Unknown author
to Martyn Ranyard
Martyn Ranyard wrote 15 lines
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?

I can give you a set of units which should do this, yes.

Michael.

Martyn Ranyard
to Unknown author
On Thu, 29 Aug 2002, Martyn Ranyard wrote: I can give you a set of units which should do this, yes.

Pretty Pretty Please!

:-)

Michael.

-
Martyn Ranyard
Free Software Advocate