diff options
author | Simo Sorce <ssorce@redhat.com> | 2008-04-01 17:33:53 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2008-04-01 17:33:53 -0400 |
commit | c260d63245c54b8434b4a1b345f832db8e729e50 (patch) | |
tree | 737e90874949bee0695190b1d29be601a21ead45 /ipa-server/ipa-kpasswd | |
parent | 05efbe999138f393e20ff3704125af4cbf396f51 (diff) | |
download | freeipa-c260d63245c54b8434b4a1b345f832db8e729e50.tar.gz freeipa-c260d63245c54b8434b4a1b345f832db8e729e50.tar.xz freeipa-c260d63245c54b8434b4a1b345f832db8e729e50.zip |
Move ipa_kpasswd credential cache in its own directory
Diffstat (limited to 'ipa-server/ipa-kpasswd')
-rw-r--r-- | ipa-server/ipa-kpasswd/Makefile.am | 8 | ||||
-rw-r--r-- | ipa-server/ipa-kpasswd/ipa_kpasswd.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ipa-server/ipa-kpasswd/Makefile.am b/ipa-server/ipa-kpasswd/Makefile.am index 2953823c9..5f95fdef3 100644 --- a/ipa-server/ipa-kpasswd/Makefile.am +++ b/ipa-server/ipa-kpasswd/Makefile.am @@ -26,6 +26,14 @@ ipa_kpasswd_LDADD = \ $(KRB5_LIBS) \ $(NULL) +install-exec-local: + mkdir -p $(DESTDIR)$(localstatedir)/cache/ipa/kpasswd + chmod 700 $(DESTDIR)$(localstatedir)/cache/ipa/kpasswd + +uninstall-local: + -rmdir $(DESTDIR)$(localstatedir)/cache/ipa/kpasswd + -rmdir $(DESTDIR)$(localstatedir)/cache/ipa + EXTRA_DIST = \ README \ ipa_kpasswd.init \ diff --git a/ipa-server/ipa-kpasswd/ipa_kpasswd.c b/ipa-server/ipa-kpasswd/ipa_kpasswd.c index 77bf6d7f5..898cffa47 100644 --- a/ipa-server/ipa-kpasswd/ipa_kpasswd.c +++ b/ipa-server/ipa-kpasswd/ipa_kpasswd.c @@ -43,7 +43,7 @@ #include <sasl/sasl.h> #define DEFAULT_KEYTAB "FILE:/var/kerberos/krb5kdc/kpasswd.keytab" -#define TMP_TEMPLATE "/tmp/kpasswd.XXXXXX" +#define TMP_TEMPLATE "/var/cache/ipa/kpasswd/krb5_cc.XXXXXX" #define KPASSWD_PORT 464 /* blacklist entries are released only BLCAKLIST_TIMEOUT seconds |