Family: ckpass
Authors: Kevin S Braunsdorf, Andy J Korty (ajk)
Mail: [email protected], ajk at Iu.edu,
Version: 5.4
Bugs: klunky interface

Introduction

This code checks an input password against a logins password from /etc/passwd or /etc/shadow (or the like).

Configuration

Some C Preprocessor defines must be set for the code to compile.
USE_STRINGS
Set to non-zero when we should use <strings.h>, else we include <string.h>.
USE_MD5
Set to non-zero when we should use MD5 hashes and the dollar sign ($) salt format.
HAVE_SHADOW
If the password field in the public password entry is "x" call getspnam to find the real password entry.

Provides

int CheckPass(struct passwd *pwd, char *pcEPass, char *pcWord)
Given a password entry and a proposed encrypted password verify that the word given would hash to that same encryption.

Todo list

Port to new systems.
$Id: ckpass.html,v 6.5 2012/08/30 14:53:51 ksb Exp $