summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2005-05-03 20:47:14 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2005-05-03 20:47:14 +0000
commit059c35a3f27e05175dd72e418a60b6ec28e4321f (patch)
tree502a1ee5e0515c2d27ac6ac537ac73f55902ec11 /net-nds/yp-tools/files
parentAdded to ~ppc (diff)
downloadgentoo-2-059c35a3f27e05175dd72e418a60b6ec28e4321f.tar.gz
gentoo-2-059c35a3f27e05175dd72e418a60b6ec28e4321f.tar.bz2
gentoo-2-059c35a3f27e05175dd72e418a60b6ec28e4321f.zip
Add support for BSD rpc.yppasswd thanks to Torsten Krah <tkrah@fachschaft.imn.htwk-leipzig.de>. Closes bug #84851.
(Portage version: 2.0.51.21)
Diffstat (limited to 'net-nds/yp-tools/files')
-rw-r--r--net-nds/yp-tools/files/digest-yp-tools-2.7-r11
-rw-r--r--net-nds/yp-tools/files/digest-yp-tools-2.8-r11
-rw-r--r--net-nds/yp-tools/files/yp-tools-2.8-bsd.patch67
3 files changed, 68 insertions, 1 deletions
diff --git a/net-nds/yp-tools/files/digest-yp-tools-2.7-r1 b/net-nds/yp-tools/files/digest-yp-tools-2.7-r1
deleted file mode 100644
index c0890568710e..000000000000
--- a/net-nds/yp-tools/files/digest-yp-tools-2.7-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 8d8d2c1c8b4a7e2027215aebe086f651 yp-tools-2.7.tar.bz2 153742
diff --git a/net-nds/yp-tools/files/digest-yp-tools-2.8-r1 b/net-nds/yp-tools/files/digest-yp-tools-2.8-r1
new file mode 100644
index 000000000000..02ac929a83ce
--- /dev/null
+++ b/net-nds/yp-tools/files/digest-yp-tools-2.8-r1
@@ -0,0 +1 @@
+MD5 4a6792c367a3e01e4af7b07f449039e9 yp-tools-2.8.tar.bz2 159738
diff --git a/net-nds/yp-tools/files/yp-tools-2.8-bsd.patch b/net-nds/yp-tools/files/yp-tools-2.8-bsd.patch
new file mode 100644
index 000000000000..c54a8bce9ff3
--- /dev/null
+++ b/net-nds/yp-tools/files/yp-tools-2.8-bsd.patch
@@ -0,0 +1,67 @@
+--- yp-tools-2.8/src/yppasswd.c 2002-12-05 14:49:20.000000000 +0100
++++ yp-tools-2.8/src/yppasswd.c 2005-03-11 13:13:45.700315296 +0100
+@@ -117,6 +117,7 @@
+ fputs (_(" -f Change GECOS field information\n"), stdout);
+ fputs (_(" -l Change the login shell\n"), stdout);
+ fputs (_(" -p Change the password\n"), stdout);
++ fputs (_(" -b Enable support for *BSD rpc.yppasswd daemon\n"), stdout);
+ fputs (_(" -?, --help Give this help list\n"), stdout);
+ fputs (_(" --usage Give a short usage message\n"), stdout);
+ fputs (_(" --version Print program version\n"), stdout);
+@@ -440,7 +441,7 @@
+ main (int argc, char **argv)
+ {
+ char *s, *progname, *domainname = NULL, *user = NULL, *master = NULL;
+- int f_flag = 0, l_flag = 0, p_flag = 0, error, status;
++ int f_flag = 0, l_flag = 0, p_flag = 0, error, status, bsd_flag = 0;
+ struct yppasswd yppwd;
+ struct passwd *pwd;
+ CLIENT *clnt;
+@@ -476,7 +477,7 @@
+ };
+
+ c = getopt_long (argc, argv,
+- (l_flag == 0 && f_flag == 0) ? "flp?" : "?",
++ (l_flag == 0 && f_flag == 0) ? "flpb?" : "?",
+ long_options, &option_index);
+ if (c == (-1))
+ break;
+@@ -491,6 +492,9 @@
+ case 'p':
+ p_flag = 1;
+ break;
++ case 'b':
++ bsd_flag = 1;
++ break;
+ case '?':
+ if (l_flag)
+ print_help_chsh ();
+@@ -645,7 +649,7 @@
+ /* We can't check the password with shadow passwords enabled. We
+ * leave the checking to yppasswdd */
+ if (uid != 0 && strcmp (pwd->pw_passwd, "x") != 0 &&
+- strcmp (pwd->pw_passwd, hashpass ) != 0)
++ strcmp (pwd->pw_passwd, hashpass ) != 0 && !bsd_flag)
+ {
+ int passwdlen;
+ char *sane_passwd;
+--- yp-tools-2.8/man/yppasswd.1.in 2001-12-08 22:34:43.000000000 +0100
++++ yp-tools-2.8/man/yppasswd.1.in 2005-03-11 13:19:45.024689688 +0100
+@@ -20,7 +20,7 @@
+ .SH NAME
+ yppasswd, ypchfn, ypchsh \- change your password in the NIS database
+ .SH SYNOPSIS
+-.B "yppasswd [-f] [-l] [-p] [user]"
++.B "yppasswd [-f] [-l] [-p] [-b] [user]"
+ .br
+ .B "ypchfn [user]"
+ .br
+@@ -48,6 +48,8 @@
+ .BR \-l ,
+ or your GECOS field
+ .BR \-f ,
++interact with *BSD Server
++.BR \-b ,
+ or a combination of them.
+ .B yppasswd
+ implies the