summaryrefslogtreecommitdiffstats
path: root/lib/librpc/secure_rpc/demo/whoami.x
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librpc/secure_rpc/demo/whoami.x')
-rw-r--r--lib/librpc/secure_rpc/demo/whoami.x33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/librpc/secure_rpc/demo/whoami.x b/lib/librpc/secure_rpc/demo/whoami.x
new file mode 100644
index 0000000..041cd0a
--- /dev/null
+++ b/lib/librpc/secure_rpc/demo/whoami.x
@@ -0,0 +1,33 @@
+/* @(#)whoami.x 2.2 88/08/22 4.0 RPCSRC */
+
+const WHOAMI_NGROUPS = 16;
+
+typedef string name<MAXNETNAMELEN>;
+
+struct remote_identity {
+ bool authenticated; /* TRUE if the server authenticates us */
+ name remote_username; /* login name */
+ name remote_realname; /* gcos-field name (long name) */
+ int uid;
+ int gid;
+ int gids<WHOAMI_NGROUPS>;
+};
+
+program WHOAMI {
+ version WHOAMI_V1 {
+ /*
+ * Report on the server's notion of the client's identity.
+ * Will respond to AUTH_DES only.
+ */
+ remote_identity
+ WHOAMI_IASK(void) = 1;
+ /*
+ * Return server's netname. AUTH_NONE is okay.
+ * This routine allows this server to be started under any uid,
+ * and the client can ask it its netname for use in authdes_create().
+ */
+ name
+ WHOAMI_WHORU(void) = 2;
+
+ } = 1;
+} = 80955;
OpenPOWER on IntegriCloud