From 6494562e32fcada923bff134a047391b4dbe467b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Aug 05 2013 15:11:47 +0000 Subject: Fix wbinfo error message of unknown command for --krb5ccname. related: #985107 --- diff --git a/samba-4.1.0rc1-fix_wbinfo_krb5ccname.patch b/samba-4.1.0rc1-fix_wbinfo_krb5ccname.patch new file mode 100644 index 0000000..2ae829e --- /dev/null +++ b/samba-4.1.0rc1-fix_wbinfo_krb5ccname.patch @@ -0,0 +1,52 @@ +From 308c6b273f2077b9495636cfc260fe38c496d2e5 Mon Sep 17 00:00:00 2001 +From: Andreas Schneider +Date: Fri, 26 Jul 2013 15:36:02 +0200 +Subject: [PATCH] nsswitch: Add OPT_KRB5CCNAME to avoid an error message. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +BUG: https://bugzilla.samba.org/show_bug.cgi?id=10048 + +Reviewed-by: Günther Deschner + +Autobuild-User(master): Andreas Schneider +Autobuild-Date(master): Fri Jul 26 17:40:26 CEST 2013 on sn-devel-104 +--- + nsswitch/wbinfo.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c +index cfb430b..17977ed 100644 +--- a/nsswitch/wbinfo.c ++++ b/nsswitch/wbinfo.c +@@ -2064,7 +2064,8 @@ enum { + OPT_LOGOFF, + OPT_LOGOFF_USER, + OPT_LOGOFF_UID, +- OPT_LANMAN ++ OPT_LANMAN, ++ OPT_KRB5CCNAME + }; + + int main(int argc, char **argv, char **envp) +@@ -2165,7 +2166,7 @@ int main(int argc, char **argv, char **envp) + { "krb5auth", 'K', POPT_ARG_STRING, &string_arg, 'K', "authenticate user using Kerberos", "user%password" }, + /* destroys wbinfo --help output */ + /* "user%password,DOM\\user%password,user@EXAMPLE.COM,EXAMPLE.COM\\user%password" }, */ +- { "krb5ccname", 0, POPT_ARG_STRING, &opt_krb5ccname, '0', "authenticate user using Kerberos and specific credential cache type", "krb5ccname" }, ++ { "krb5ccname", 0, POPT_ARG_STRING, &opt_krb5ccname, OPT_KRB5CCNAME, "authenticate user using Kerberos and specific credential cache type", "krb5ccname" }, + #endif + { "separator", 0, POPT_ARG_NONE, 0, OPT_SEPARATOR, "Get the active winbind separator", NULL }, + { "verbose", 0, POPT_ARG_NONE, 0, OPT_VERBOSE, "Print additional information per command", NULL }, +@@ -2621,6 +2622,7 @@ int main(int argc, char **argv, char **envp) + case OPT_LANMAN: + case OPT_LOGOFF_USER: + case OPT_LOGOFF_UID: ++ case OPT_KRB5CCNAME: + break; + default: + d_fprintf(stderr, "Invalid option\n"); +-- +1.8.3.1 + diff --git a/samba.spec b/samba.spec index 0ded97c..3f6bb88 100644 --- a/samba.spec +++ b/samba.spec @@ -1,7 +1,7 @@ # Set --with testsuite or %bcond_without to run the Samba torture testsuite. %bcond_with testsuite -%define main_release 3 +%define main_release 4 %define samba_version 4.0.7 %define talloc_version 2.0.7 @@ -81,6 +81,7 @@ Source201: README.downgrade Patch0: samba-4.0.6_add_passdb_upn_enum.patch Patch1: samba-4.0.8-fix_winbind_ccache_cleanup.patch Patch2: samba-4.1.0rc1-add_support_for_cc_type_dir.patch +Patch3: samba-4.1.0rc1-fix_wbinfo_krb5ccname.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) @@ -462,6 +463,7 @@ the local kerberos library to use the same KDC as samba and winbind use %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build %global _talloc_lib ,talloc,pytalloc,pytalloc-util @@ -1511,6 +1513,10 @@ rm -rf %{buildroot} %{_mandir}/man7/winbind_krb5_locator.7* %changelog +* Mon Aug 05 2013 - Andreas Schneider 2:4.0.7-4 +- related: #985107 - Fix wbinfo error message of unknown command + for --krb5ccname. + * Wed Jul 24 2013 - Andreas Schneider - 2:4.0.7-3 - resolves: #985107 - Add support for new default location for Kerberos credential caches.