summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-05 10:54:50 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-01-10 21:50:07 +0100
commit016fc0af0c30a22d0154ca6c67bb31bac893fb7b (patch)
treec514fe134f76a01ae54acecd41d406b0c3db1143 /source3/libads
parent6b2e742d6c719258c8ff1c2309847e88bdae97e7 (diff)
downloadsamba-016fc0af0c30a22d0154ca6c67bb31bac893fb7b.tar.gz
samba-016fc0af0c30a22d0154ca6c67bb31bac893fb7b.tar.bz2
samba-016fc0af0c30a22d0154ca6c67bb31bac893fb7b.zip
krb5: Require krb5_get_host_realm and krb5_free_host_realm be available to build with krb5
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/kerberos.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c
index f260dcaaf0..a43c7b167c 100644
--- a/source3/libads/kerberos.c
+++ b/source3/libads/kerberos.c
@@ -484,7 +484,6 @@ char *kerberos_get_default_realm_from_ccache(TALLOC_CTX *mem_ctx)
char *kerberos_get_realm_from_hostname(TALLOC_CTX *mem_ctx, const char *hostname)
{
-#if defined(HAVE_KRB5_GET_HOST_REALM) && defined(HAVE_KRB5_FREE_HOST_REALM)
#if defined(HAVE_KRB5_REALM_TYPE)
/* Heimdal. */
krb5_realm *realm_list = NULL;
@@ -525,9 +524,6 @@ char *kerberos_get_realm_from_hostname(TALLOC_CTX *mem_ctx, const char *hostname
ctx = NULL;
}
return realm;
-#else
- return NULL;
-#endif
}
char *kerberos_get_principal_from_service_hostname(TALLOC_CTX *mem_ctx,