summaryrefslogtreecommitdiff
path: root/source3/libads/krb5_setpw.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2004-11-01 16:18:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:06 -0500
commit428ca3998bc84aba166adb6c0eae3f20b2ad782c (patch)
treed1512505895dc420d88786e09c64bc0083ce2dd8 /source3/libads/krb5_setpw.c
parentad187ac68e6a7413338599554ce6634c401a99f7 (diff)
downloadsamba-428ca3998bc84aba166adb6c0eae3f20b2ad782c.tar.gz
samba-428ca3998bc84aba166adb6c0eae3f20b2ad782c.tar.bz2
samba-428ca3998bc84aba166adb6c0eae3f20b2ad782c.zip
r3436: Fix build with recent heimdal-versions (0.6.3) as pointed out by Luke
Mewburn <lukem@NetBSD.org> 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)
Diffstat (limited to 'source3/libads/krb5_setpw.c')
-rw-r--r--source3/libads/krb5_setpw.c2
1 files changed, 2 insertions, 0 deletions
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