You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebase/kcheckpass
Bobby Bingham 8c543e26ec
kcheckpass: fix shadow support when not building tdm
1. If not building with PAM, kcheckpass relies on HAVE_SHADOW to decide
whether to support shadow passwords. However, this was only set if also
building tdm.

Consolidate all PAM/shadow configure checks at the top level so these are
always set correctly.

2. Consolidate /etc/passwd and shadow password handling

The shadow password handler already completely handles /etc/passwd
passwords as well, so having a separate handler for just /etc/passwd is
pure code duplication.

Signed-off-by: Bobby Bingham <koorogi@koorogi.info>
2 years ago
..
CMakeLists.txt kcheckpass: fix shadow support when not building tdm 2 years ago
ConfigureChecks.cmake kcheckpass: Add pw_encrypt detection. 2 years ago
Makefile.am Additional kde to tde renaming 13 years ago
README Rename a number of libraries and executables to avoid conflicts with KDE4 12 years ago
checkpass_aix.c Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
checkpass_osfc2passwd.c Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
checkpass_pam.c Add initial cryptographic card login support 10 years ago
checkpass_shadow.c kcheckpass: fix shadow support when not building tdm 2 years ago
kcheckpass.c Rename a number of libraries and executables to avoid conflicts with KDE4 12 years ago
kcheckpass.h kcheckpass: fix shadow support when not building tdm 2 years ago

README

The KCheckPass authentication software:
-----------------------------------------

KCheckPass is KDE's authentication program. It is meant to be
used by any software in need of user authentication, most
notably screensavers.

It enhances security be the following means:

- It's only a small program, which is hopefully simple enough to
  allow it to be SUID root. Setting it to SUID root is necessary
  on Shadow Password systems.
- No other program in need of user authentication, must be
  SUID root.
- It provides a single implementation to check passwords. So one
  only must take a closer look at KCheckPass to ensure password
  security. It's much easier for programs using KCheckPass to
  preserve security.


Technique:
----------
KCheckPass is a simple password checker. Just invoke and
send it the password on stdin.

If the password was accepted, the program exits with 0;
if it was rejected, it exits with 1. Any other exit
code signals an error.



Compilation hints:
------------------
Compile with -DHAVE_VSYSLOG if you have vsyslog().
Compile with -DHAVE_PAM if you have a PAM system, and link with -lpam -ldl
  (If libdl is present).
Compile with -DHAVE_SHADOW if you have a shadow password system.

Copyright, Author and License notice:
-------------------------------------
Copyright (C) 1998, Caldera, Inc.
Released under the GNU General Public License

Olaf Kirch <okir@caldera.de>      General Framework and PAM support
Christian Esken <esken@kde.org>   Shadow and /etc/passwd support
Oswald Buddenhagen <ossi@kde.org> Binary conversation interface, etc.

Some parts were taken from tdescreensaver's passwd.cpp

Currently this software is maintained by Oswald Buddenhagen <ossi@kde.org>.
Please send new authentication modules (checkpass_*.c) to me.