summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2013-10-16 15:36:20 +0200
committerGünther Deschner <gdeschner@redhat.com>2013-10-16 15:37:48 +0200
commit7eaa99930891f44b9a26089859a1d2d000ddb78a (patch)
treea05e6d15e4fc24e391f59c0caedbb80908b9d2f5
parent39ea56ce5d2cdfe08ed137c5262a709bbb08f151 (diff)
downloadgss-proxy-7eaa99930891f44b9a26089859a1d2d000ddb78a.tar.gz
gss-proxy-7eaa99930891f44b9a26089859a1d2d000ddb78a.tar.xz
gss-proxy-7eaa99930891f44b9a26089859a1d2d000ddb78a.zip
setup KRB5RCACHEDIR so that krb5 replay caches are created in a defined place.
resolves: https://fedorahosted.org/gss-proxy/ticket/100 Signed-off-by: Günther Deschner <gdeschner@redhat.com>
-rw-r--r--proxy/contrib/gssproxy.spec.in1
-rw-r--r--proxy/systemd/gssproxy.service.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/proxy/contrib/gssproxy.spec.in b/proxy/contrib/gssproxy.spec.in
index 6319a90..ecd134d 100644
--- a/proxy/contrib/gssproxy.spec.in
+++ b/proxy/contrib/gssproxy.spec.in
@@ -87,6 +87,7 @@ rm -rf %{buildroot}
%attr(755,root,root) %dir %{pubconfpath}
%attr(755,root,root) %dir %{gpstatedir}
%attr(700,root,root) %dir %{gpstatedir}/clients
+%attr(700,root,root) %dir %{gpstatedir}/krb5rcache
%attr(0600,root,root) %config(noreplace) /%{_sysconfdir}/gssproxy/gssproxy.conf
%attr(0644,root,root) %config(noreplace) /%{_sysconfdir}/gss/mech
%{_libdir}/gssproxy/proxymech.so
diff --git a/proxy/systemd/gssproxy.service.in b/proxy/systemd/gssproxy.service.in
index 7aa6785..02fe3cd 100644
--- a/proxy/systemd/gssproxy.service.in
+++ b/proxy/systemd/gssproxy.service.in
@@ -6,6 +6,7 @@ Before=nfs-secure.service nfs-secure-server.service
Requires=proc-fs-nfsd.mount
[Service]
+Environment="KRB5RCACHEDIR=@localstatedir@/lib/gssproxy/krb5rcache"
ExecStart=@sbindir@/gssproxy -D
# These two should be used with traditional UNIX forking daemons
# consult systemd.service(5) for more details