kumquat-buildroot/package/samba4/0002-patch-source3__libads__kerberos_keytab.c.patch
Bernd Kuhls 83cd7fc25c package/samba4: bump version to 4.7.4
Release notes: https://www.samba.org/samba/history/samba-4.7.4.html

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2018-01-07 15:07:53 +01:00

32 lines
1.0 KiB
Diff

From: Timur I. Bakeyev <timur@freebsd.org>
Subject: Fix compilation of Samba 4.7.4 with disabled ADS
Downloaded from upstream mailinglist
https://lists.samba.org/archive/samba-technical/2017-December/124629.html
Patch originates from FreeBSD:
https://svnweb.freebsd.org/ports/head/net/samba47/files/patch-source3__libads__kerberos_keytab.c?revision=457119&view=markup
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
--- a/source3/libads/kerberos_keytab.c.orig 2017-12-23 14:23:53.247467000 +0100
+++ b/source3/libads/kerberos_keytab.c 2017-12-23 18:57:07.135340000 +0100
@@ -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 @@
return ret;
}
+#ifdef HAVE_ADS
+
/**********************************************************************
Adds a single service principal, i.e. 'host' to the system keytab
***********************************************************************/