SOURCES: pwauth.pam (NEW), pwauth-2.3.2-config.diff (NEW), pwauth-...

cieciwa cieciwa at pld-linux.org
Tue May 8 22:21:28 CEST 2007


Author: cieciwa                      Date: Tue May  8 20:21:28 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- pwauth files from Mandriva CVS.

---- Files affected:
SOURCES:
   pwauth.pam (NONE -> 1.1)  (NEW), pwauth-2.3.2-config.diff (NONE -> 1.1)  (NEW), pwauth-2.3.2-pam.diff (NONE -> 1.1)  (NEW), pwauth-2.3.2-server.diff (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/pwauth.pam
diff -u /dev/null SOURCES/pwauth.pam:1.1
--- /dev/null	Tue May  8 22:21:28 2007
+++ SOURCES/pwauth.pam	Tue May  8 22:21:23 2007
@@ -0,0 +1,7 @@
+#%PAM-1.0
+auth       include      system-auth
+auth       required     pam_nologin.so
+account    include      system-auth
+password   include	system-auth
+session    include	system-auth
+session    optional     pam_console.so

================================================================
Index: SOURCES/pwauth-2.3.2-config.diff
diff -u /dev/null SOURCES/pwauth-2.3.2-config.diff:1.1
--- /dev/null	Tue May  8 22:21:28 2007
+++ SOURCES/pwauth-2.3.2-config.diff	Tue May  8 22:21:23 2007
@@ -0,0 +1,47 @@
+--- config.h	2004-09-29 03:07:18.000000000 +0200
++++ config.h.oden	2006-03-19 21:19:48.000000000 +0100
+@@ -106,13 +106,13 @@
+ 
+ /* #define SHADOW_NONE		/**/
+ /* #define SHADOW_BSD		/* FreeBSD, NetBSD, OpenBSD, BSDI */
+-#define SHADOW_SUN		/* Linux, Solaris, IRIX */
++/* #define SHADOW_SUN		/* Linux, Solaris, IRIX */
+ /* #define SHADOW_JFH		/**/
+ /* #define SHADOW_MDW		/**/
+ /* #define SHADOW_AIX		/* AIX */
+ /* #define SHADOW_HPUX		/* HPUX ? */
+ 
+-/* #define PAM			/* Linux PAM or OpenPAM*/
++#define PAM			/* Linux PAM or OpenPAM*/
+ /* #define PAM_SOLARIS		/* PAM on Solaris other than 2.6 */
+ /* #define PAM_SOLARIS_26	/* PAM on Solaris 2.6 */
+ /* #define LOGIN_CONF_OPENBSD	/**/
+@@ -192,8 +192,8 @@
+  * uid numbers.
+  */
+ 
+-#define UNIX_LASTLOG		/**/
+-#define HAVE_LASTLOG_H		/**/
++/* #define UNIX_LASTLOG		/**/
++/* #define HAVE_LASTLOG_H		/**/
+ 
+ 
+ /* If NOLOGIN_FILE is defined to the full path name of a file, then the
+@@ -250,7 +250,7 @@
+  * given value will be accepted).
+  */
+ 
+-#define MIN_UNIX_UID 500	/**/
++/* #define MIN_UNIX_UID 500	/**/
+ 
+ 
+ /* If IGNORE_CASE is defined, the login given is checked in two different
+@@ -278,7 +278,7 @@
+  * SLEEP_LOCK.  SLEEP_TIME defaults to 2 seconds if not defined.
+  */
+ 
+-#define SLEEP_LOCK "/var/run/pwauth.lock"
++/* #define SLEEP_LOCK "/var/run/pwauth.lock"
+ 
+ 
+ /* If ENV_METHOD is defined, pwauth expects mod_auth_external to be configured

================================================================
Index: SOURCES/pwauth-2.3.2-pam.diff
diff -u /dev/null SOURCES/pwauth-2.3.2-pam.diff:1.1
--- /dev/null	Tue May  8 22:21:28 2007
+++ SOURCES/pwauth-2.3.2-pam.diff	Tue May  8 22:21:23 2007
@@ -0,0 +1,15 @@
+--- main.c	2004-09-27 22:43:59.000000000 +0200
++++ main.c.oden	2006-03-19 21:24:23.000000000 +0100
+@@ -50,7 +50,11 @@
+     char login[BFSZ+1], passwd[BFSZ+1];
+     char *c, *strchr();
+ #endif
+-    int uid,i;
++
++#ifdef SERVER_UIDS
++    int uid;
++#endif
++    int i;
+     int status;
+     struct rlimit rlim;
+ 

================================================================
Index: SOURCES/pwauth-2.3.2-server.diff
diff -u /dev/null SOURCES/pwauth-2.3.2-server.diff:1.1
--- /dev/null	Tue May  8 22:21:28 2007
+++ SOURCES/pwauth-2.3.2-server.diff	Tue May  8 22:21:23 2007
@@ -0,0 +1,42 @@
+diff -Naur pwauth-2.3.2/config.h pwauth-2.3.2.oden/config.h
+--- pwauth-2.3.2/config.h	2004-09-29 03:07:18.000000000 +0200
++++ pwauth-2.3.2.oden/config.h	2006-03-19 21:08:31.000000000 +0100
+@@ -238,7 +238,7 @@
+  * last).
+  */
+ 
+-#define SERVER_UIDS 72		/* user "nobody" */
++/* #define SERVER_UIDS 72		/* user "nobody" */
+ 
+ 
+ /* If MIN_UNIX_UID is defined to an integer, logins with uid numbers less than
+diff -Naur pwauth-2.3.2/main.c pwauth-2.3.2.oden/main.c
+--- pwauth-2.3.2/main.c	2004-09-27 22:43:59.000000000 +0200
++++ pwauth-2.3.2.oden/main.c	2006-03-19 21:13:01.000000000 +0100
+@@ -38,9 +38,10 @@
+ int haveuid= 0;
+ #endif
+ 
++#ifdef SERVER_UIDS
+ /* Array of uid numbers that may run this program */
+ int server_uids[]= {SERVER_UIDS, 0};
+-
++#endif
+ 
+ main(int argc, char **argv)
+ {
+@@ -58,12 +59,14 @@
+     rlim.rlim_cur = rlim.rlim_max = 0;
+     (void)setrlimit(RLIMIT_CORE, &rlim);
+ 
++#ifdef SERVER_UIDS
+     /* Check that we were invoked by one of the listed uids or by root */
+     uid= getuid();
+     for (i= 0; server_uids[i] != 0 && server_uids[i] != uid; i++)
+ 	;
+     if (uid != server_uids[i])
+ 	exit(STATUS_INT_USER);
++#endif
+ 
+     /* Get the arguments (login and password) */
+ #ifdef ENV_METHOD
================================================================


More information about the pld-cvs-commit mailing list