From 016fc0af0c30a22d0154ca6c67bb31bac893fb7b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 5 Jan 2012 10:54:50 +1100 Subject: krb5: Require krb5_get_host_realm and krb5_free_host_realm be available to build with krb5 --- source3/libads/kerberos.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source3/libads') 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, -- cgit