diff options
author | Nathaniel McCallum <npmccallum@redhat.com> | 2014-02-05 10:59:46 -0500 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2014-02-06 16:17:27 -0500 |
commit | 1e4bdcfed2c7bda94d5c135cc32a5993ca032501 (patch) | |
tree | d4a0a8ee96b73ad78152e1219183eb2787493897 /src/plugins/preauth/otp/otp_state.c | |
parent | 53cfb8327c452bd72a8e915338fb5ec838079cd3 (diff) | |
download | krb5-1e4bdcfed2c7bda94d5c135cc32a5993ca032501.tar.gz krb5-1e4bdcfed2c7bda94d5c135cc32a5993ca032501.tar.xz krb5-1e4bdcfed2c7bda94d5c135cc32a5993ca032501.zip |
Move OTP sockets to KDC_RUN_DIR
Some system configurations expect Unix-domain sockets to live under
/run or /var/run, and not other parts of /var where persistent
application state lives. Define a new directory KDC_RUN_DIR using
$runstatedir (new in autoconf 2.70, so fall back to $localstatedir/run
if it's not set) and use that for the default socket path.
[ghudson@mit.edu: commit message, otp.rst formatting fix]
ticket: 7859 (new)
Diffstat (limited to 'src/plugins/preauth/otp/otp_state.c')
-rw-r--r-- | src/plugins/preauth/otp/otp_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/preauth/otp/otp_state.c b/src/plugins/preauth/otp/otp_state.c index a4d7e3b5ec..4643dff9a2 100644 --- a/src/plugins/preauth/otp/otp_state.c +++ b/src/plugins/preauth/otp/otp_state.c @@ -40,7 +40,7 @@ #endif #define DEFAULT_TYPE_NAME "DEFAULT" -#define DEFAULT_SOCKET_FMT KDC_DIR "/%s.socket" +#define DEFAULT_SOCKET_FMT KDC_RUN_DIR "/%s.socket" #define DEFAULT_TIMEOUT 5 #define DEFAULT_RETRIES 3 #define MAX_SECRET_LEN 1024 |