pam: modules/README (NEW), modules/pam_pwexport/pam_pwexport.8 (NE...
baggins
baggins at pld-linux.org
Mon Feb 5 00:12:52 CET 2007
Author: baggins Date: Sun Feb 4 23:12:52 2007 GMT
Module: pam Tag: HEAD
---- Log message:
- reworked for Linux-PAM build system
---- Files affected:
pam/modules:
README (1.3 -> 1.4) (NEW)
pam/modules/pam_pwexport:
pam_pwexport.8 (NONE -> 1.1) (NEW), Makefile.am (1.7 -> 1.8)
pam/modules/pam_pwgen:
Makefile.am (1.11 -> 1.12)
---- Diffs:
================================================================
Index: pam/modules/README
diff -u /dev/null pam/modules/README:1.4
--- /dev/null Mon Feb 5 00:12:52 2007
+++ pam/modules/README Mon Feb 5 00:12:47 2007
@@ -0,0 +1,5 @@
+Taken from RedHat/Fedora:
+ pam_console
+ pam_rps
+ pam_tally2
+ pam_timestamp
================================================================
Index: pam/modules/pam_pwexport/pam_pwexport.8
diff -u /dev/null pam/modules/pam_pwexport/pam_pwexport.8:1.1
--- /dev/null Mon Feb 5 00:12:52 2007
+++ pam/modules/pam_pwexport/pam_pwexport.8 Mon Feb 5 00:12:47 2007
@@ -0,0 +1,50 @@
+.TH "PAM_PWEXPORT" "8" "08/31/2006" "Linux\-PAM Manual" "Linux\-PAM Manual"
+
+.SH NAME
+pam_pwexport \- challenge-response authentication
+
+.SH SYNOPSIS
+.B auth\trequisite\tpam_unix.so
+.br
+.B auth\trequired\tpam_pwexport.so /some/exe/somewhere
+.br
+.B password\trequisite\tpam_unix.so
+.br
+.B password\trequired\tpam_pwexport.so /some/exe/somewhere
+
+.SH DESCRIPTION
+pam_pwexport.so is designed to snoop on passwords and report to an outside
+program. This is useful any time you are migrating your user database
+from one auth scheme to another -- as users log in and change
+passwords, you harvest these passwords and put them in your new
+format.
+
+It works by collecting your username and password and (if you supply
+it) your old password, and sending those to the stdin of an arbitrary
+program (or script), like so:
+
+ user foo
+ oldpassword bar
+ password baz
+
+where the `oldpassword' line may be missing.
+
+.SH ARGUMENTS
+.IP /some/exe/somewhere
+Program or script to pass retrieved user and password to.
+
+.SH NOTES
+It doesn't actually prompt for usernames and passwords, nor does
+it verify anything, so you MUST chain it onto an existing module such
+as pam_unix. That's what the `requisite' keyword does.
+
+If your migration scheme requires the "old password" in
+order to work, you may as well skip the "auth" lines, since (for
+obvious reasons) they will never return that info.
+Never use this module.
+
+.SH BUGS
+Let's hope not.
+
+.SH AUTHOR
+Peter Samuelson <peter at cadcamlab.org>
================================================================
Index: pam/modules/pam_pwexport/Makefile.am
diff -u pam/modules/pam_pwexport/Makefile.am:1.7 pam/modules/pam_pwexport/Makefile.am:1.8
--- pam/modules/pam_pwexport/Makefile.am:1.7 Fri Dec 19 12:19:22 2003
+++ pam/modules/pam_pwexport/Makefile.am Mon Feb 5 00:12:47 2007
@@ -1,36 +1,16 @@
-## Process this file with automake to produce Makefile.in
+CLEANFILES = *~
- at SET_MAKE@
+man_MANS = pam_pwexport.8
+EXTRA_DIST = README linux-pam-unix-passwd.README linux-pam-unix-passwd.diff $(man_MANS)
-EXTRA_DIST = README linux-pam-unix-passwd.README linux-pam-unix-passwd.diff
+securelibdir = $(SECUREDIR)
+secureconfdir = $(SCONFIGDIR)
-pam_pwexport_la_SOURCES = pam_pwexport.c
-pam_pwexport_la_LDFLAGS = -avoid-version -module
-pam_pwexport_la_LIBADD =
-
-if WANT_PWEXPORT_MODULE
-TITLE = pam_pwexport
-
-modulesdir = /@libdirname@/security
-
-pam_pwexport_la_CFLAGS = -I$(top_srcdir)/include $(DYNAMIC)
-
-if DYNAMIC_MODULES
-modules_LTLIBRARIES = pam_pwexport.la
+AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include
+AM_LDFLAGS = -no-undefined -avoid-version -module \
+ -L$(top_builddir)/libpam -lpam
+if HAVE_VERSIONING
+ AM_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map
endif
-CLEANFILES = *~ $(TITLE).so
-
-clean-local:
- rm -rf static
-
-if STATIC_MODULES
-libpam_pwexport_la_CFLAGS = -I. -I../.. -I$(top_srcdir)/include $(STATIC)
-
-noinst_LTLIBRARIES = libpam_pwexport.la
-libpam_pwexport_la_SOURCES = pam_pwexport.c
-libpam_pwexport_la_DEPENDENCIES = register_static_stamp
-
-endif
-endif
-include $(top_srcdir)/modules/register_static.mk
+securelib_LTLIBRARIES = pam_pwexport.la
================================================================
Index: pam/modules/pam_pwgen/Makefile.am
diff -u pam/modules/pam_pwgen/Makefile.am:1.11 pam/modules/pam_pwgen/Makefile.am:1.12
--- pam/modules/pam_pwgen/Makefile.am:1.11 Fri Dec 19 12:19:23 2003
+++ pam/modules/pam_pwgen/Makefile.am Mon Feb 5 00:12:47 2007
@@ -1,54 +1,34 @@
-## Process this file with automake to produce Makefile.in
+#
+# Copyright (c) 2005 Thorsten Kukuk <kukuk at suse.de>
+#
- at SET_MAKE@
+CLEANFILES = *~
-TITLE = pam_pwgen
+CONFFILES = trigram.de trigram.dk trigram.en trigram.es trigram.fi \
+ trigram.it trigram.ja trigram.no trigram.pl
-LIBS =
+EXTRA_DIST = README README.gpw $(CONFFILES)
-modulesdir = /@libdirname@/security
+securelibdir = $(SECUREDIR)
+secureconfdir = $(SCONFIGDIR)
-pwgen_confdir = /etc/security
-pwgen_conf_DATA = trigram.de trigram.dk trigram.en trigram.es \
- trigram.fi trigram.it trigram.ja trigram.no \
- trigram.pl
+AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include
+AM_LDFLAGS = -L$(top_builddir)/libpam -lpam $(LIBAUDIT)
-pam_pwgen_la_CFLAGS = -I$(top_srcdir)/include $(DYNAMIC) \
- -DDEFAULT_TRIGRAM_FILE=\"$(pwgen_confdir)/trigram\"
-
-if DYNAMIC_MODULES
-modules_LTLIBRARIES = pam_pwgen.la
+pam_pwgen_la_LDFLAGS = -no-undefined -avoid-version -module $(AM_LDFLAGS)
+if HAVE_VERSIONING
+ pam_pwgen_la_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map
endif
-pam_pwgen_la_SOURCES = pam_pwgen.c
-pam_pwgen_la_LDFLAGS = -avoid-version -module
-
-if CRYPTLIB_PRESENT
-pam_pwgen_la_LIBADD = -lcrypt
-endif
-
-bin_PROGRAMS = pam_pwgen
-sbin_PROGRAMS = pwgen_trigram
-
-pwgen_trigram_SOURCES = pwgen_trigram.c
-pam_pwgen_SOURCES = pam_pwgen_app.c
+secureconf_DATA = $(CONFFILES)
-EXTRA_DIST = README README.gpw $(pwgen_conf_DATA)
+securelib_LTLIBRARIES = pam_pwgen.la
+bin_PROGRAMS = pam_pwgen
+sbin_PROGRAMS = pwgen_trigram
+
+pam_pwgen_la_SOURCES = pam_pwgen.c
+pam_pwgen_SOURCES = pam_pwgen_app.c
+pwgen_trigram_SOURCES = pwgen_trigram.c
-CLEANFILES = *~ $(TITLE).so
-
-install-data-hook:
- $(LN_S) trigram.en $(DESTDIR)/$(pwgen_confdir)/trigram
-
-clean-local:
- rm -rf static
-
-if STATIC_MODULES
-libpam_pwgen_la_CFLAGS = -I. -I../.. -I$(top_srcdir)/include $(STATIC)
-
-noinst_LTLIBRARIES = libpam_pwgen.la
-libpam_pwgen_la_SOURCES = pam_pwgen.c
-libpam_pwgen_la_DEPENDENCIES = register_static_stamp
-
-endif
-include $(top_srcdir)/modules/register_static.mk
+install-data-local:
+ $(LN_S) trigram.en $(DESTDIR)$(SCONFIGDIR)/trigram
================================================================
---- CVS-web:
http://cvs.pld-linux.org/pam/modules/pam_pwexport/Makefile.am?r1=1.7&r2=1.8&f=u
http://cvs.pld-linux.org/pam/modules/pam_pwgen/Makefile.am?r1=1.11&r2=1.12&f=u
More information about the pld-cvs-commit
mailing list