cifs-utils/0001-contrib-add-a-set-of-sample-etc-request-key.d-files.patch
2011-12-09 21:51:01 -05:00

53 lines
1.9 KiB
Diff

From a58988c1b9b096da85f99e6fabb7a311bfa3e81d Mon Sep 17 00:00:00 2001
From: Jeff Layton <jlayton@samba.org>
Date: Fri, 9 Dec 2011 21:45:49 -0500
Subject: [PATCH] contrib: add a set of sample /etc/request-key.d files
Add a contrib directory, a set of sample /etc/request-key.d files and
a README that explains what they're for.
Signed-off-by: Jeff Layton <jlayton@samba.org>
---
contrib/request-key.d/README | 7 +++++++
contrib/request-key.d/cifs.idmap.conf | 1 +
contrib/request-key.d/cifs.spnego.conf | 1 +
3 files changed, 9 insertions(+), 0 deletions(-)
create mode 100644 contrib/README
create mode 100644 contrib/request-key.d/README
create mode 100644 contrib/request-key.d/cifs.idmap.conf
create mode 100644 contrib/request-key.d/cifs.spnego.conf
diff --git a/contrib/README b/contrib/README
new file mode 100644
index 0000000..e69de29
diff --git a/contrib/request-key.d/README b/contrib/request-key.d/README
new file mode 100644
index 0000000..b605da7
--- /dev/null
+++ b/contrib/request-key.d/README
@@ -0,0 +1,7 @@
+As of version 1.5.5, prior to opening /etc/request-key.conf, the
+request-key utility will look first in /etc/request-key.d for a file of
+the key type name plus ".conf". These files are example config files
+that distro packagers can use to have request-key autoconfigured to
+use the cifs utilities that are installed. Typically, distro packagers
+will want to drop these into /etc/request-key.d.
+
diff --git a/contrib/request-key.d/cifs.idmap.conf b/contrib/request-key.d/cifs.idmap.conf
new file mode 100644
index 0000000..84d3d5e
--- /dev/null
+++ b/contrib/request-key.d/cifs.idmap.conf
@@ -0,0 +1 @@
+create cifs.idmap * * /usr/sbin/cifs.idmap %k
diff --git a/contrib/request-key.d/cifs.spnego.conf b/contrib/request-key.d/cifs.spnego.conf
new file mode 100644
index 0000000..a94afd8
--- /dev/null
+++ b/contrib/request-key.d/cifs.spnego.conf
@@ -0,0 +1 @@
+create cifs.spnego * * /usr/sbin/cifs.upcall %k
--
1.7.7.3