From 428ca3998bc84aba166adb6c0eae3f20b2ad782c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 1 Nov 2004 16:18:14 +0000 Subject: r3436: Fix build with recent heimdal-versions (0.6.3) as pointed out by Luke Mewburn and close Bugzilla #1661. Leaving the old define for KRB5_KPASSWD_VERS_SETPW (added by Antti Andreimann) as fallback when the library does not provide one. Guenther (This used to be commit 00598877dfb7aab48d1b5d58b3a69ed2dd8a36a8) --- source3/libads/krb5_setpw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/libads/krb5_setpw.c b/source3/libads/krb5_setpw.c index 385c1f02aa..a45bf23610 100644 --- a/source3/libads/krb5_setpw.c +++ b/source3/libads/krb5_setpw.c @@ -25,7 +25,9 @@ #define DEFAULT_KPASSWD_PORT 464 #define KRB5_KPASSWD_VERS_CHANGEPW 1 +#ifndef KRB5_KPASSWD_VERS_SETPW #define KRB5_KPASSWD_VERS_SETPW 2 +#endif #define KRB5_KPASSWD_VERS_SETPW_MS 0xff80 #define KRB5_KPASSWD_ACCESSDENIED 5 #define KRB5_KPASSWD_BAD_VERSION 6 -- cgit