pam_access patch part 1 of 5

Mike Becher Mike.Becher at lrz-muenchen.de
Thu Jan 5 12:48:38 UTC 2006


pam_access patch part 1 of 5

patches which content changes to configuration file
  p01-Linux-PAM-0.99.2.1-config.h.in
  p02-Linux-PAM-0.99.2.1-configure.in
  p10-Linux-PAM-0.99.2.1-modules-pam_access-Makefile.am
  p13-Linux-PAM-0.99.2.1-modules-pam_access-pam_access_config.h

short description:
-----------------

These patches enable:
 * convert_hostname feature
 * IPv4(/)  IPv6  support
 * the network(address) / netmask feature
 * external helper feature
 * manual support

best regards,
  mike

-----------------------------------------------------------------------------
 Mike Becher                              Mike.Becher at lrz-muenchen.de
 Leibniz-Rechenzentrum der                http://www.lrz.de
 Bayerischen Akademie der Wissenschaften  phone: +49-89-289-28721      
 Gruppe Hochleistungssysteme              fax:   +49-89-280-9460
 Barer Strasse 21                    
 D-80333 Muenchen
 Germany                   
-----------------------------------------------------------------------------
-------------- next part --------------
diff -u -r -N Linux-PAM-0.99.2.1.orig/config.h.in Linux-PAM-0.99.2.1/config.h.in
--- Linux-PAM-0.99.2.1.orig/config.h.in	2005-12-12 18:01:30.000000000 +0100
+++ Linux-PAM-0.99.2.1/config.h.in	2006-01-02 17:25:42.000000000 +0100
@@ -75,6 +75,12 @@
 /* Define if you have the iconv() function. */
 #undef HAVE_ICONV
 
+/* Define to 1 if you have the `inet_ntop' function. */
+#undef HAVE_INET_NTOP
+
+/* Define to 1 if you have the `inet_pton' function. */
+#undef HAVE_INET_PTON
+
 /* Define to 1 if you have the <inittypes.h> header file. */
 #undef HAVE_INITTYPES_H
 
@@ -188,6 +194,9 @@
 /* Define to 1 if you have the `vprintf' function. */
 #undef HAVE_VPRINTF
 
+/* Define to 1 if you have the `yp_get_default_domain' function. */
+#undef HAVE_YP_GET_DEFAULT_DOMAIN
+
 /* Every malloc etc. call will be tracked */
 #undef MEMORY_DEBUG
 
-------------- next part --------------
diff -u -r -N Linux-PAM-0.99.2.1.orig/configure.in Linux-PAM-0.99.2.1/configure.in
--- Linux-PAM-0.99.2.1.orig/configure.in	2005-12-12 17:56:27.000000000 +0100
+++ Linux-PAM-0.99.2.1/configure.in	2006-01-02 17:26:55.000000000 +0100
@@ -354,6 +354,14 @@
 
 AC_CHECK_FUNCS(getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r getgrouplist)
 
+AC_CHECK_FUNCS(inet_ntop)
+AC_CHECK_FUNCS(inet_pton)
+
+BACKUP_LIBS=$LIBS
+LIBS="$LIBS $LIBNSL"
+AC_CHECK_FUNCS(yp_get_default_domain)
+LIBS=$BACKUP_LIBS
+
 dnl Checks for programs/utilities
 AC_CHECK_PROG(SGML2PS, sgml2ps, yes, no)
 AC_CHECK_PROG(SGML2TXT, sgml2txt, yes, no)
-------------- next part --------------
diff -u -r -N Linux-PAM-0.99.2.1.orig/modules/pam_access/Makefile.am Linux-PAM-0.99.2.1/modules/pam_access/Makefile.am
--- Linux-PAM-0.99.2.1.orig/modules/pam_access/Makefile.am	2005-09-21 15:35:29.000000000 +0200
+++ Linux-PAM-0.99.2.1/modules/pam_access/Makefile.am	2006-01-03 19:37:12.000000000 +0100
@@ -4,19 +4,51 @@
 
 CLEANFILES = *~
 
-EXTRA_DIST = README access.conf
+EXTRA_DIST = \
+	README \
+	$(MANS) \
+	ChangeLog \
+	access.conf \
+	verify_access
+
+man_MANS = \
+	access.conf.5 \
+	login.access.5 \
+	pam_access.8 \
+	check_login_access.8
 
 securelibdir = $(SECUREDIR)
 secureconfdir = $(SCONFIGDIR)
 
 AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \
 	-DPAM_ACCESS_CONFIG=\"$(SCONFIGDIR)/access.conf\"
+
 AM_LDFLAGS =  -no-undefined -avoid-version -module \
-	-L$(top_builddir)/libpam -lpam @LIBNSL@
+	-L$(top_builddir)/libpam -lpam @LIBNSL@ @LIBSELINUX@
+
+if HAVE_LIBSELINUX
+  AM_CFLAGS += -D"WITH_SELINUX"
+endif
+
+pam_access_la_LDFLAGS = -no-undefined -avoid-version -module \
+	@LIBNSL@
 if HAVE_VERSIONING
-  AM_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map
+  pam_access_la_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map
 endif
 
 securelib_LTLIBRARIES = pam_access.la
 
 secureconf_DATA = access.conf
+
+noinst_HEADERS = pam_access_config.h
+
+sbin_PROGRAMS = check_login_access
+
+pam_access_la_SOURCES = \
+	pam_access.c
+
+check_login_access_SOURCES = \
+	pam_access.c \
+	check_login_access.c
+
+check_login_access_CFLAGS = $(AM_CFLAGS)
-------------- next part --------------
diff -u -r -N Linux-PAM-0.99.2.1.orig/modules/pam_access/pam_access_config.h Linux-PAM-0.99.2.1/modules/pam_access/pam_access_config.h
--- Linux-PAM-0.99.2.1.orig/modules/pam_access/pam_access_config.h	1970-01-01 01:00:00.000000000 +0100
+++ Linux-PAM-0.99.2.1/modules/pam_access/pam_access_config.h	2006-01-02 17:24:32.000000000 +0100
@@ -0,0 +1,24 @@
+/* 
+ * Config header file to configure PAM module pam_access or
+ * application.
+ * 
+ * mike.becher at lrz-muenchen.de
+ * last change: 2005/12/13
+ */ 
+
+#ifndef PAM_ACCESS_CONFIG_H
+#define PAM_ACCESS_CONFIG_H
+
+#if defined(HAVE_YP_GET_DEFAULT_DOMAIN)
+#define NIS_SUPPORT        1
+#else
+#undef  NIS_SUPPORT
+#endif
+
+#if defined(HAVE_INET_NTOP) && defined(HAVE_INET_PTON)
+#define NEW_INET_SUPPORT   1
+#else
+#undef  NEW_INET_SUPPORT
+#endif
+
+#endif /* PAM_ACCESS_CONFIG_H */


More information about the Pam-list mailing list