summaryrefslogtreecommitdiff
path: root/samba/fix-build-without-ads.patch
diff options
context:
space:
mode:
Diffstat (limited to 'samba/fix-build-without-ads.patch')
-rw-r--r--samba/fix-build-without-ads.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/samba/fix-build-without-ads.patch b/samba/fix-build-without-ads.patch
new file mode 100644
index 000000000..5de65d769
--- /dev/null
+++ b/samba/fix-build-without-ads.patch
@@ -0,0 +1,37 @@
+From 23e45c107fb1dbc28333916b8d5fe3fbe628d137 Mon Sep 17 00:00:00 2001
+From: Volker Lendecke <vl@samba.org>
+Date: Sat, 3 Feb 2018 07:07:24 +0100
+Subject: [PATCH] libads: Fix the build --without-ads
+
+Signed-off-by: Volker Lendecke <vl@samba.org>
+Reviewed-by: David Disseldorp <ddiss@samba.org>
+
+Autobuild-User(master): David Disseldorp <ddiss@samba.org>
+Autobuild-Date(master): Tue Feb 6 02:47:44 CET 2018 on sn-devel-144
+
+Bug: https://bugzilla.samba.org/show_bug.cgi?id=13273
+
+(cherry picked from commit 859698d29b547217356851094ed8188236e717b6)
+---
+ source3/libads/kerberos_keytab.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c
+index ffd100c..37ac7ba 100644
+--- a/source3/libads/kerberos_keytab.c
++++ b/source3/libads/kerberos_keytab.c
+@@ -640,7 +640,11 @@ int ads_keytab_list(const char *keytab_name)
+ }
+
+ if (keytab_name == NULL) {
++#ifdef HAVE_ADS
+ ret = ads_keytab_open(context, &keytab);
++#else
++ ret = ENOENT;
++#endif
+ } else {
+ ret = smb_krb5_kt_open(context, keytab_name, False, &keytab);
+ }
+--
+1.9.1
+

Generated by cgit