Quote:
Originally Posted by alred
is it ok if using i only use libshadow/libcrypt for "on-disk" type of password challenge for simple program ??
|
Well yes. You set the program setuid, ask an username, then you do a getspnam() or getpwnam() on systems that return the encrypted password through it. You only have to ask for the password, encrypt it, and then compare it with the hashed version. For the salt to use with crypt(), use the first bytes (it varies from system to system).
Quote:
i still have problem figuring out how people do their tunneling ...
|
Tunneling through SSL ? I still haven't tried it. Browse openssl.org for their howto. There must be tutorials on the web. If you find good stuff, let me know