summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-06-24 21:35:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:02 -0500
commit6106de34e56cf6a3b4655f799c88ab1c349ae4a9 (patch)
tree11e89aec61bc134dcfbecf9334095b5d5e19e9a0 /source3/libads
parent41416f3876da5a43077ff991817e73c44dd6ae70 (diff)
downloadsamba-6106de34e56cf6a3b4655f799c88ab1c349ae4a9.tar.gz
samba-6106de34e56cf6a3b4655f799c88ab1c349ae4a9.tar.bz2
samba-6106de34e56cf6a3b4655f799c88ab1c349ae4a9.zip
r1247: Final fix to make this compile on Heimdal.
Jeremy. (This used to be commit b462b8fa2f264bef62ed4cd2aaacb2f21e135068)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/krb5_setpw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libads/krb5_setpw.c b/source3/libads/krb5_setpw.c
index c7e9e3fe76..84595212e6 100644
--- a/source3/libads/krb5_setpw.c
+++ b/source3/libads/krb5_setpw.c
@@ -468,7 +468,11 @@ ADS_STATUS ads_krb5_set_password(const char *kdc_host, const char *princ,
char *princ_name = NULL;
char *realm = NULL;
krb5_creds creds, *credsp = NULL;
+#if KRB5_PRINC_REALM_RETURNS_REALM
+ krb5_realm orig_realm;
+#else
krb5_data orig_realm;
+#endif
krb5_ccache ccache = NULL;
ZERO_STRUCT(creds);