]> git.pld-linux.org Git - packages/pwauth.git/commitdiff
- pwauth files from Mandriva CVS.
authorcieciwa <cieciwa@pld-linux.org>
Tue, 8 May 2007 20:21:23 +0000 (20:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pwauth-2.3.2-config.diff -> 1.1
    pwauth-2.3.2-pam.diff -> 1.1
    pwauth-2.3.2-server.diff -> 1.1
    pwauth.pam -> 1.1

pwauth-2.3.2-config.diff [new file with mode: 0644]
pwauth-2.3.2-pam.diff [new file with mode: 0644]
pwauth-2.3.2-server.diff [new file with mode: 0644]
pwauth.pam [new file with mode: 0644]

diff --git a/pwauth-2.3.2-config.diff b/pwauth-2.3.2-config.diff
new file mode 100644 (file)
index 0000000..230b527
--- /dev/null
@@ -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
diff --git a/pwauth-2.3.2-pam.diff b/pwauth-2.3.2-pam.diff
new file mode 100644 (file)
index 0000000..ab63a8c
--- /dev/null
@@ -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;
diff --git a/pwauth-2.3.2-server.diff b/pwauth-2.3.2-server.diff
new file mode 100644 (file)
index 0000000..0b1b804
--- /dev/null
@@ -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
diff --git a/pwauth.pam b/pwauth.pam
new file mode 100644 (file)
index 0000000..74250dd
--- /dev/null
@@ -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
This page took 0.074898 seconds and 4 git commands to generate.