# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../samba/hotfix.patch # Copyright (C) 2018 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- --- ./source3/libads/kerberos_keytab.c.orig 2017-12-23 14:23:53.247467000 +0100 +++ ./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 ***********************************************************************/