aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.yppasswdd/yppasswd_private.x
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1997-07-29 15:43:21 +0000
committerBill Paul <wpaul@FreeBSD.org>1997-07-29 15:43:21 +0000
commit1f9224050ea95fee5abe885a632cdbb6038a438a (patch)
treef80e7d4b09aeb3a9bf8f767cd8869768240553f1 /usr.sbin/rpc.yppasswdd/yppasswd_private.x
parent6ee8b26997adbf13785ab5146a6c1b146468d496 (diff)
downloadsrc-1f9224050ea95fee5abe885a632cdbb6038a438a.tar.gz
src-1f9224050ea95fee5abe885a632cdbb6038a438a.zip
Modify rpc.yppasswdd to use the new AF_LOCAL transport in the RPC library
instead of its own kludged up version. This makes the special 'superuser-only' update procedure work just like a real RPC service.
Notes
Notes: svn path=/head/; revision=27758
Diffstat (limited to 'usr.sbin/rpc.yppasswdd/yppasswd_private.x')
-rw-r--r--usr.sbin/rpc.yppasswdd/yppasswd_private.x20
1 files changed, 13 insertions, 7 deletions
diff --git a/usr.sbin/rpc.yppasswdd/yppasswd_private.x b/usr.sbin/rpc.yppasswdd/yppasswd_private.x
index bd8599bc745f..7a101c03a9aa 100644
--- a/usr.sbin/rpc.yppasswdd/yppasswd_private.x
+++ b/usr.sbin/rpc.yppasswdd/yppasswd_private.x
@@ -29,20 +29,18 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: yppasswd_private.x,v 1.2 1997/07/28 18:31:11 wpaul Exp $
*/
#ifndef RPC_HDR
%#ifndef lint
-%static const char rcsid[] = "$Id$";
+%static const char rcsid[] = "$Id: yppasswd_private.x,v 1.2 1997/07/28 18:31:11 wpaul Exp $";
%#endif /* not lint */
#endif
-/*
- * This protocol definition file is only used to
- * generate some XDR functions. We don't actually
- * define any RPC services here.
- */
+#ifdef RPC_HDR
+%#define YP_SOCKNAME "/var/run/yppasswdsock"
+#endif
struct x_master_passwd {
string pw_name<>; /* username */
@@ -65,3 +63,11 @@ struct master_yppasswd {
string domain<_YPMAXDOMAIN>; /* domain we want to operate on */
x_master_passwd newpw; /* new passwd entry */
};
+
+
+program MASTER_YPPASSWDPROG {
+ version MASTER_YPPASSWDVERS {
+ int
+ YPPASSWDPROC_UPDATE_MASTER(master_yppasswd) = 1;
+ } = 1;
+} = 600100009;