Update to Samba 4.0.0rc4.
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 30 Oct 2012 09:16:17 +0000 (10:16 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 30 Oct 2012 09:16:42 +0000 (10:16 +0100)
.gitignore
samba-4.0.0rc5-fix_winbind_offline_logon.patch [new file with mode: 0644]
samba.spec
sources

index 44714437091c270e341e1509d0d70c0c164e29f8..db922a5a9e6a9d09ff679b6569dc85377a4dd830 100644 (file)
@@ -15,3 +15,4 @@ samba-3.6.0pre1.tar.gz
 /samba-4.0.0rc1.tar.bz2
 /samba-4.0.0rc2.tar.bz2
 /samba-4.0.0rc3.tar.bz2
+/samba-4.0.0rc4.tar.bz2
diff --git a/samba-4.0.0rc5-fix_winbind_offline_logon.patch b/samba-4.0.0rc5-fix_winbind_offline_logon.patch
new file mode 100644 (file)
index 0000000..60e8d86
--- /dev/null
@@ -0,0 +1,33 @@
+From 33cb7ed204136a4459cf71a6adc8711b0a554f7a Mon Sep 17 00:00:00 2001
+From: Andreas Schneider <asn@samba.org>
+Date: Tue, 23 Oct 2012 14:07:38 +0200
+Subject: [PATCH] BUG 9321: Fix winbind offline logon support.
+
+We store the current time in the cache entry but we never read it in
+wcache_fetch_creds(). So the first entry we try to fetch is a hash16,
+which always fails cause we have a time entry first.
+
+The read of the time value has been removed with
+21528da9cd12a4f5c3792a482a5d18fe946a6f7a.
+
+Signed-off-by: Andreas Schneider <asn@samba.org>
+---
+ source3/winbindd/winbindd_cache.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
+index 2c9dd4a..1e3ab2d 100644
+--- a/source3/winbindd/winbindd_cache.c
++++ b/source3/winbindd/winbindd_cache.c
+@@ -1397,8 +1397,6 @@ NTSTATUS wcache_save_creds(struct winbindd_domain *domain,
+       dump_data_pw("nt_pass", nt_pass, NT_HASH_LEN);
+-      centry_put_time(centry, time(NULL));
+-
+       /* Create a salt and then salt the hash. */
+       generate_random_buffer(cred_salt, NT_HASH_LEN);
+       E_md5hash(cred_salt, nt_pass, salted_hash);
+-- 
+1.7.12.3
+
index 72b31571fcdb15f73b8b8754fd18aa8f692631bc..ceaaa82e74bcd1268b7c79dbeffa78dac3d3f790 100644 (file)
@@ -1,4 +1,4 @@
-%define main_release 162
+%define main_release 163
 
 %define samba_version 4.0.0
 %define talloc_version 2.0.7
@@ -6,7 +6,7 @@
 %define tdb_version 1.2.10
 %define tevent_version 0.9.17
 %define ldb_version 1.1.12
-%define pre_release rc3
+%define pre_release rc4
 
 %define samba_release %{main_release}%{?dist}.%{pre_release}
 
@@ -67,6 +67,7 @@ Source201: README.downgrade
 
 Patch0: samba-4.0.0rc4-request_aes_krb_keys.patch
 Patch1: samba-4.0.0rc4-add_aes_enctypes_to_krb5_conf.patch
+Patch2: samba-4.0.0rc5-fix_winbind_offline_logon.patch
 
 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
@@ -412,6 +413,7 @@ the local kerberos library to use the same KDC as samba and winbind use
 
 %patch0 -p1 -b .request_aes_krb_keys
 %patch1 -p1 -b .add_aes_enctypes_to_krb5_conf
+%patch2 -p1 -b .winbind_offline_logon
 
 %build
 %global _talloc_lib ,talloc,pytalloc,pytalloc-util
@@ -1310,6 +1312,9 @@ rm -rf %{buildroot}
 %{_mandir}/man7/winbind_krb5_locator.7*
 
 %changelog
+* Tue Oct 30 2012 - Andreas Schneider <asn@redhat.com> - 2:4.0.0-163.rc4
+- Update to Samba 4.0.0rc4.
+
 * Mon Oct 29 2012 - Andreas Schneider <asn@redhat.com> - 2:4.0.0-162.rc3
 - resolves: #870630 - Fix scriptlets interpeting a comment as argument.
 
diff --git a/sources b/sources
index 4b53f0a3e6e272bf8bc08d2a5c3cc91d4a1fb6a0..e0007deba4b045911226c384f2a71cc2185d0375 100644 (file)
--- a/sources
+++ b/sources
@@ -1 +1 @@
-147cad905cb3e2fb6706566907d2481a  samba-4.0.0rc3.tar.bz2
+6909008476f67de5da69e2b350bd3633  samba-4.0.0rc4.tar.bz2