From fe39836041bf8d25efd7bbddcc16f5c1cfc43b45 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Tue, 13 Mar 2018 20:29:24 +0000 Subject: [PATCH] samba: fix build without ADS enabled https://lists.samba.org/archive/samba-technical/2017-December/124629.html --- .../samba-954-fix-build-without-ads.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/network/samba/patches/samba-954-fix-build-without-ads.patch diff --git a/packages/network/samba/patches/samba-954-fix-build-without-ads.patch b/packages/network/samba/patches/samba-954-fix-build-without-ads.patch new file mode 100644 index 0000000000..96b020d831 --- /dev/null +++ b/packages/network/samba/patches/samba-954-fix-build-without-ads.patch @@ -0,0 +1,22 @@ +diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c +index ffd100c..ab54c4d 100644 +--- a/source3/libads/kerberos_keytab.c ++++ b/source3/libads/kerberos_keytab.c +@@ -32,8 +32,6 @@ + + #ifdef HAVE_KRB5 + +-#ifdef HAVE_ADS +- + /* This MAX_NAME_LEN is a constant defined in krb5.h */ + #ifndef MAX_KEYTAB_NAME_LEN + #define MAX_KEYTAB_NAME_LEN 1100 +@@ -85,6 +83,8 @@ out: + return ret; + } + ++#ifdef HAVE_ADS ++ + /********************************************************************** + Adds a single service principal, i.e. 'host' to the system keytab + ***********************************************************************/