[SCM] Samba Shared Repository - branch master updated

2015-08-06 Thread Amitay Isaacs
The branch, master has been updated
   via  eba1212 ctdb-tests: Add a policy routing test with misconfiguration
   via  5a6a932 ctdb-tests: Make fake gateway different to actual public IPs
   via  7d04778 ctdb-scripts: Improve error handling for 50.samba testparm 
failure
   via  6538ba5 ctdb-pmda: Add missing prototype declaration for non-static 
function
   via  7949ce1 ctdb-daemon: Reset database statistics when resetting 
statistics
   via  d9030d8 ctdb-system: Remove unused system specific calls
  from  e45b0d4 source3/rpc_client: Fix CID 1273041 Condition is redundant

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit eba12122ccce602aede7756b8f91d34fe927d2c0
Author: Martin Schwenke 
Date:   Tue Aug 4 17:03:50 2015 +1000

ctdb-tests: Add a policy routing test with misconfiguration

To support this, extend the "ip route add" stub to detect duplicate
routes.

Signed-off-by: Martin Schwenke 
Reviewed-by: Amitay Isaacs 

Autobuild-User(master): Amitay Isaacs 
Autobuild-Date(master): Fri Aug  7 08:37:38 CEST 2015 on sn-devel-104

commit 5a6a9326e58c4ebabd351326493d5d320e0130e6
Author: Martin Schwenke 
Date:   Tue Aug 4 16:12:31 2015 +1000

ctdb-tests: Make fake gateway different to actual public IPs

Signed-off-by: Martin Schwenke 
Reviewed-by: Amitay Isaacs 

commit 7d04778c82a8f657b6ba0173c29529fa03ab7a25
Author: Martin Schwenke 
Date:   Thu Jul 30 16:49:35 2015 +1000

ctdb-scripts: Improve error handling for 50.samba testparm failure

Also add tests.  Update testparm stub to fake error and timeout.  Add
timeout stub.

Signed-off-by: Martin Schwenke 
Reviewed-by: Amitay Isaacs 

commit 6538ba5243a043bc727039a16a7a9d5d8027fa06
Author: Amitay Isaacs 
Date:   Mon Aug 3 15:36:06 2015 +1000

ctdb-pmda: Add missing prototype declaration for non-static function

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11434

Signed-off-by: Amitay Isaacs 
Reviewed-by: Martin Schwenke 

commit 7949ce103f2062aa703a24f72e11be96dc497a7a
Author: Amitay Isaacs 
Date:   Thu Apr 2 13:53:09 2015 +1100

ctdb-daemon: Reset database statistics when resetting statistics

When the ctdb statistics is reset, reset per database statistics to keep
it consistent with ctdb statistics.

Signed-off-by: Amitay Isaacs 
Reviewed-by: Martin Schwenke 

commit d9030d8c10ebe6f95f33cbc691b5756d97395b0f
Author: Amitay Isaacs 
Date:   Mon Aug 3 15:02:43 2015 +1000

ctdb-system: Remove unused system specific calls

Signed-off-by: Amitay Isaacs 
Reviewed-by: Martin Schwenke 

---

Summary of changes:
 ctdb/common/system_aix.c |  18 ---
 ctdb/common/system_freebsd.c |  32 
 ctdb/common/system_gnu.c |  18 ---
 ctdb/common/system_kfreebsd.c|  31 
 ctdb/common/system_linux.c   | 177 ---
 ctdb/config/events.d/50.samba|  45 --
 ctdb/include/ctdb_private.h  |   5 +-
 ctdb/server/ctdb_control.c   |   7 +
 ctdb/server/ctdb_ltdb_server.c   |  14 ++
 ctdb/tests/eventscripts/13.per_ip_routing.023.sh |  26 
 ctdb/tests/eventscripts/50.samba.monitor.110.sh  |  20 +++
 ctdb/tests/eventscripts/50.samba.monitor.111.sh  |  25 
 ctdb/tests/eventscripts/50.samba.monitor.112.sh  |  13 ++
 ctdb/tests/eventscripts/50.samba.monitor.113.sh  |  16 ++
 ctdb/tests/eventscripts/scripts/local.sh |   4 +-
 ctdb/tests/eventscripts/stubs/ip |  10 ++
 ctdb/tests/eventscripts/stubs/testparm   |  36 -
 ctdb/tests/eventscripts/stubs/timeout|   8 +
 ctdb/tests/src/ctdb_porting_tests.c  |  18 ---
 ctdb/utils/pmda/pmda_ctdb.c  |   3 +-
 20 files changed, 214 insertions(+), 312 deletions(-)
 create mode 100755 ctdb/tests/eventscripts/13.per_ip_routing.023.sh
 create mode 100755 ctdb/tests/eventscripts/50.samba.monitor.110.sh
 create mode 100755 ctdb/tests/eventscripts/50.samba.monitor.111.sh
 create mode 100755 ctdb/tests/eventscripts/50.samba.monitor.112.sh
 create mode 100755 ctdb/tests/eventscripts/50.samba.monitor.113.sh
 create mode 100755 ctdb/tests/eventscripts/stubs/timeout


Changeset truncated at 500 lines:

diff --git a/ctdb/common/system_aix.c b/ctdb/common/system_aix.c
index 41f61ae..a98d382 100644
--- a/ctdb/common/system_aix.c
+++ b/ctdb/common/system_aix.c
@@ -374,26 +374,8 @@ int ctdb_get_peer_pid(const int fd, pid_t *peer_pid)
return ret;
 }
 
-char *ctdb_get_process_name(pid_t pid)
-{
-   /* FIXME AIX: get_process_name not implemented */
-   return NULL;
-}
-
 int ctdb_set_process_name(const char *name)
 {
/* FIXME AIX: set_pr

autobuild: intermittent test failure detected

2015-08-06 Thread autobuild
The autobuild test system has detected an intermittent failing test in 
the current master tree.

The autobuild log of the failure is available here:

   http://git.samba.org/autobuild.flakey/2015-08-07-0608/flakey.log

The samba build logs are available here:

   http://git.samba.org/autobuild.flakey/2015-08-07-0608/samba.stderr
   http://git.samba.org/autobuild.flakey/2015-08-07-0608/samba.stdout
  
The top commit at the time of the failure was:

commit e45b0d49be2f487243bbe99afb6e6cd8a1f918ac
Author: Anoop C S 
Date:   Mon Aug 3 14:01:58 2015 +0530

source3/rpc_client: Fix CID 1273041 Condition is redundant

Signed-off-by: Anoop C S 
Reviewed-by: Michael Adam 
Reviewed-by: Stefan Metzmacher 

Autobuild-User(master): Michael Adam 
Autobuild-Date(master): Fri Aug  7 01:31:23 CEST 2015 on sn-devel-104



[SCM] Samba Shared Repository - branch master updated

2015-08-06 Thread Michael Adam
The branch, master has been updated
   via  e45b0d4 source3/rpc_client: Fix CID 1273041 Condition is redundant
   via  661b4ed lib/talloc: Fix CID 1291639 Missing unlock
   via  f57a235 lib/talloc: Fix CID 1291640 Missing unlock
   via  9ae65b2 smbd: Log smb2 requests returning !OK with higher log level
  from  d3ac3da s4:rpc_server/netlogon: Fix for NetApp

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit e45b0d49be2f487243bbe99afb6e6cd8a1f918ac
Author: Anoop C S 
Date:   Mon Aug 3 14:01:58 2015 +0530

source3/rpc_client: Fix CID 1273041 Condition is redundant

Signed-off-by: Anoop C S 
Reviewed-by: Michael Adam 
Reviewed-by: Stefan Metzmacher 

Autobuild-User(master): Michael Adam 
Autobuild-Date(master): Fri Aug  7 01:31:23 CEST 2015 on sn-devel-104

commit 661b4edd03c4f040ff6dda07d599ff74f1b2f08b
Author: Anoop C S 
Date:   Mon Aug 3 13:59:33 2015 +0530

lib/talloc: Fix CID 1291639 Missing unlock

Signed-off-by: Anoop C S 
Reviewed-by: Michael Adam 
Reviewed-by: Stefan Metzmacher 

commit f57a235a1f2cda05918971127c039f0499b9658b
Author: Anoop C S 
Date:   Mon Aug 3 13:57:19 2015 +0530

lib/talloc: Fix CID 1291640 Missing unlock

Signed-off-by: Anoop C S 
Reviewed-by: Michael Adam 
Reviewed-by: Stefan Metzmacher 

commit 9ae65b2546cb3d5c7662a37bf336dda38cfb3166
Author: Christof Schmitt 
Date:   Wed Aug 5 13:31:44 2015 -0700

smbd: Log smb2 requests returning !OK with higher log level

This can be useful for narrowing down problems without taking a full
level 10 trace.

Signed-off-by: Christof Schmitt 
Reviewed-by: Michael Adam 

---

Summary of changes:
 lib/talloc/testsuite.c| 2 ++
 source3/rpc_client/rpc_transport_np.c | 3 ++-
 source3/smbd/smb2_server.c| 6 +++---
 3 files changed, 7 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/talloc/testsuite.c b/lib/talloc/testsuite.c
index 6d0fe94..c67cfb9 100644
--- a/lib/talloc/testsuite.c
+++ b/lib/talloc/testsuite.c
@@ -1747,6 +1747,7 @@ static void *thread_fn(void *arg)
ret = pthread_cond_wait(&condvar, &mtx);
if (ret != 0) {
talloc_free(top_ctx);
+   pthread_mutex_unlock(&mtx);
return NULL;
}
}
@@ -1827,6 +1828,7 @@ static bool test_pthread_talloc_passing(void)
printf("pthread_cond_wait %d failed (%d)\n", i,
ret);
talloc_free(mem_ctx);
+   pthread_mutex_unlock(&mtx);
return false;
}
}
diff --git a/source3/rpc_client/rpc_transport_np.c 
b/source3/rpc_client/rpc_transport_np.c
index b928b7c..9dc5c56 100644
--- a/source3/rpc_client/rpc_transport_np.c
+++ b/source3/rpc_client/rpc_transport_np.c
@@ -141,7 +141,8 @@ static void rpc_transport_np_init_pipe_open(struct 
tevent_req *subreq)
 timeval_current_ofs_msec(100 * state->retries),
 rpc_transport_np_init_pipe_open_retry, req);
if (tevent_req_nomem(te, req)) {
-   return;
+   DEBUG(2, ("Failed to create asynchronous "
+   "tevent_timer"));
}
return;
} else if (!NT_STATUS_IS_OK(status)) {
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index a0b1bfc..a53ddf8 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -2790,9 +2790,9 @@ NTSTATUS smbd_smb2_request_error_ex(struct 
smbd_smb2_request *req,
uint8_t *outhdr = SMBD_SMB2_OUT_HDR_PTR(req);
size_t unread_bytes = smbd_smb2_unread_bytes(req);
 
-   DEBUG(10,("smbd_smb2_request_error_ex: idx[%d] status[%s] |%s| at %s\n",
- req->current_idx, nt_errstr(status), info ? " +info" : "",
- location));
+   DBG_NOTICE("smbd_smb2_request_error_ex: idx[%d] status[%s] |%s| "
+  "at %s\n", req->current_idx, nt_errstr(status),
+  info ? " +info" : "", location);
 
if (unread_bytes) {
/* Recvfile error. Drain incoming socket. */


-- 
Samba Shared Repository



[SCM] Samba Shared Repository - branch master updated

2015-08-06 Thread Stefan Metzmacher
The branch, master has been updated
   via  d3ac3da s4:rpc_server/netlogon: Fix for NetApp
  from  42f38fe dns: always add authority records

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit d3ac3da98611e665dc0f4e825faa5f12f6c848ef
Author: Arvid Requate 
Date:   Thu Aug 6 15:00:25 2015 +0200

s4:rpc_server/netlogon: Fix for NetApp

This patch fixes an issue where NetApp filers joined to a
Samba/ADDC cannot resolve SIDs. Without this patch the issue
can only be avoided by setting "allow nt4 crypto = yes" in smb.conf.

The issue is triggered by NetApp filers in three steps:

1. The client calls netr_ServerReqChallenge to set up challenge tokens

2. Next it calls netr_ServerAuthenticate2 with NETLOGON_NEG_STRONG_KEYS
   set to 0. Native AD and Samba respond to this with
   NT_STATUS_DOWNGRADE_DETECTED. At this point Samba throws away
   the challenge token negotiated in the first step.

3. Next the client calls netr_ServerAuthenticate2 again, this time with
   NETLOGON_NEG_STRONG_KEYS set to 1.
   Samba returns NT_STATUS_ACCESS_DENIED as it has lost track
   of the challenge and denies logon with the message

   No challenge requested by client [CLNT1/CLNT1$], cannot authenticate

Git commit 321ebc99b5a00f82265aee741a48aa84b214d6e8 introduced
a workaround for a different but related issue. This patch makes a minor
adjustment to that commit to delay flushing the cached challenge until
it's clear that we are not in a NT_STATUS_DOWNGRADE_DETECTED
situation.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11291

Signed-off-by: Arvid Requate 
Reviewed-by: Jeremy Allison 
Reviewed-by: Stefan Metzmacher 

Autobuild-User(master): Stefan Metzmacher 
Autobuild-Date(master): Thu Aug  6 20:29:04 CEST 2015 on sn-devel-104

---

Summary of changes:
 source4/rpc_server/netlogon/dcerpc_netlogon.c | 22 +++---
 1 file changed, 11 insertions(+), 11 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c 
b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index b47ccf4..49b5b2f 100644
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c
@@ -172,17 +172,6 @@ static NTSTATUS dcesrv_netr_ServerAuthenticate3(struct 
dcesrv_call_state *dce_ca
}
}
 
-   /*
-* At this point we can cleanup the cache entry,
-* if we fail the client needs to call netr_ServerReqChallenge
-* again.
-*
-* Note: this handles global_challenge_table == NULL
-* and also a non existing record just fine.
-*/
-   memcache_delete(global_challenge_table,
-   SINGLETON_CACHE, challenge_key);
-
server_flags = NETLOGON_NEG_ACCOUNT_LOCKOUT |
   NETLOGON_NEG_PERSISTENT_SAMREPL |
   NETLOGON_NEG_ARCFOUR |
@@ -229,6 +218,17 @@ static NTSTATUS dcesrv_netr_ServerAuthenticate3(struct 
dcesrv_call_state *dce_ca
}
 
/*
+* At this point we can cleanup the cache entry,
+* if we fail the client needs to call netr_ServerReqChallenge
+* again.
+*
+* Note: this handles global_challenge_table == NULL
+* and also a non existing record just fine.
+*/
+   memcache_delete(global_challenge_table,
+   SINGLETON_CACHE, challenge_key);
+
+   /*
 * According to Microsoft (see bugid #6099)
 * Windows 7 looks at the negotiate_flags
 * returned in this structure *even if the


-- 
Samba Shared Repository



autobuild: intermittent test failure detected

2015-08-06 Thread autobuild
The autobuild test system has detected an intermittent failing test in 
the current master tree.

The autobuild log of the failure is available here:

   http://git.samba.org/autobuild.flakey/2015-08-06-1809/flakey.log

The samba build logs are available here:

   http://git.samba.org/autobuild.flakey/2015-08-06-1809/samba.stderr
   http://git.samba.org/autobuild.flakey/2015-08-06-1809/samba.stdout
  
The top commit at the time of the failure was:

commit 42f38fe8d9a34a9d3710dcddfe642257f41ece87
Author: Kai Blin 
Date:   Fri Jul 17 15:27:51 2015 +0200

dns: always add authority records

Signed-off-by: Kai Blin 
Reviewed-by: Andreas Schneider 

Autobuild-User(master): Kai Blin 
Autobuild-Date(master): Thu Aug  6 14:06:52 CEST 2015 on sn-devel-104



[SCM] Samba Shared Repository - branch master updated

2015-08-06 Thread Kai Blin
The branch, master has been updated
   via  42f38fe dns: always add authority records
   via  d9a3f19 dns: Add a SOA record to error replies
   via  bda1a73 dns: Also pass nsrecs to handle_question()
   via  0e11c08 dns: Just pass the name to create_response_rr
   via  d7a54f3 dns: Add dns_get_authoritative_zone helper function
  from  54cbecb script/librelease.sh: this is replaced by script/release.sh 
now

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 42f38fe8d9a34a9d3710dcddfe642257f41ece87
Author: Kai Blin 
Date:   Fri Jul 17 15:27:51 2015 +0200

dns: always add authority records

Signed-off-by: Kai Blin 
Reviewed-by: Andreas Schneider 

Autobuild-User(master): Kai Blin 
Autobuild-Date(master): Thu Aug  6 14:06:52 CEST 2015 on sn-devel-104

commit d9a3f197495951f2b85e042f1bc4525bab389879
Author: Kai Blin 
Date:   Wed Oct 29 13:41:53 2014 +0100

dns: Add a SOA record to error replies

Signed-off-by: Kai Blin 
Reviewed-by: Andreas Schneider 

commit bda1a7320f72049cf7aad2233899eaf2a55d6973
Author: Kai Blin 
Date:   Wed Oct 29 13:39:16 2014 +0100

dns: Also pass nsrecs to handle_question()

Signed-off-by: Kai Blin 
Reviewed-by: Andreas Schneider 

commit 0e11c08d3e11c83b21e1366e9e91b6d841fbbd6c
Author: Kai Blin 
Date:   Wed Oct 29 13:36:58 2014 +0100

dns: Just pass the name to create_response_rr

Signed-off-by: Kai Blin 
Reviewed-by: Andreas Schneider 

commit d7a54f33ef5d4f45127c9264f0c4f16a2a8a6541
Author: Kai Blin 
Date:   Wed Oct 29 13:35:36 2014 +0100

dns: Add dns_get_authoritative_zone helper function

Signed-off-by: Kai Blin 
Reviewed-by: Andreas Schneider 

---

Summary of changes:
 python/samba/tests/dns.py   | 34 +++
 source4/dns_server/dns_query.c  | 96 ++---
 source4/dns_server/dns_server.c |  6 ++-
 source4/dns_server/dns_server.h |  2 +
 source4/dns_server/dns_utils.c  | 16 +++
 5 files changed, 121 insertions(+), 33 deletions(-)


Changeset truncated at 500 lines:

diff --git a/python/samba/tests/dns.py b/python/samba/tests/dns.py
index 04ac356..044eaf6 100644
--- a/python/samba/tests/dns.py
+++ b/python/samba/tests/dns.py
@@ -247,23 +247,23 @@ class TestSimpleQueries(DNSTest):
 response = self.dns_transaction_udp(p)
 self.assert_dns_rcode_equals(response, dns.DNS_RCODE_NOTIMP)
 
-# Only returns an authority section entry in BIND and Win DNS
-# FIXME: Enable one Samba implements this feature
-#def test_soa_hostname_query(self):
-#"create a SOA query for a hostname"
-#p = self.make_name_packet(dns.DNS_OPCODE_QUERY)
-#questions = []
-#
-#name = "%s.%s" % (os.getenv('SERVER'), self.get_dns_domain())
-#q = self.make_name_question(name, dns.DNS_QTYPE_SOA, 
dns.DNS_QCLASS_IN)
-#questions.append(q)
-#
-#self.finish_name_packet(p, questions)
-#response = self.dns_transaction_udp(p)
-#self.assert_dns_rcode_equals(response, dns.DNS_RCODE_OK)
-#self.assert_dns_opcode_equals(response, dns.DNS_OPCODE_QUERY)
-## We don't get SOA records for single hosts
-#self.assertEquals(response.ancount, 0)
+def test_soa_hostname_query(self):
+"create a SOA query for a hostname"
+p = self.make_name_packet(dns.DNS_OPCODE_QUERY)
+questions = []
+
+name = "%s.%s" % (os.getenv('SERVER'), self.get_dns_domain())
+q = self.make_name_question(name, dns.DNS_QTYPE_SOA, dns.DNS_QCLASS_IN)
+questions.append(q)
+
+self.finish_name_packet(p, questions)
+response = self.dns_transaction_udp(p)
+self.assert_dns_rcode_equals(response, dns.DNS_RCODE_OK)
+self.assert_dns_opcode_equals(response, dns.DNS_OPCODE_QUERY)
+# We don't get SOA records for single hosts
+self.assertEquals(response.ancount, 0)
+# But we do respond with an authority section
+self.assertEqual(response.nscount, 1)
 
 def test_soa_domain_query(self):
 "create a SOA query for a domain"
diff --git a/source4/dns_server/dns_query.c b/source4/dns_server/dns_query.c
index 3cafc23..94f5d49 100644
--- a/source4/dns_server/dns_query.c
+++ b/source4/dns_server/dns_query.c
@@ -40,7 +40,7 @@
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_DNS
 
-static WERROR create_response_rr(const struct dns_name_question *question,
+static WERROR create_response_rr(const char *name,
 const struct dnsp_DnssrvRpcRecord *rec,
 struct dns_res_rec **answers, uint16_t 
*ancount)
 {
@@ -116,7 +116,7 @@ static WERROR create_response_rr(const struct 
dns_name_question *question,
return DNS_ERR(NOT_IMPLEMENTED);
}
 
-   ans[ai].name = talloc_strdup(ans

autobuild: intermittent test failure detected

2015-08-06 Thread autobuild
The autobuild test system has detected an intermittent failing test in 
the current master tree.

The autobuild log of the failure is available here:

   http://git.samba.org/autobuild.flakey/2015-08-06-1344/flakey.log

The samba build logs are available here:

   http://git.samba.org/autobuild.flakey/2015-08-06-1344/samba.stderr
   http://git.samba.org/autobuild.flakey/2015-08-06-1344/samba.stdout
  
The top commit at the time of the failure was:

commit 54cbecbe306eff1c36db5c98fdd106aeccdf096e
Author: Stefan Metzmacher 
Date:   Wed Aug 5 15:41:29 2015 +0200

script/librelease.sh: this is replaced by script/release.sh now

Signed-off-by: Stefan Metzmacher 
Reviewed-by: Andrew Bartlett 

Autobuild-User(master): Andrew Bartlett 
Autobuild-Date(master): Thu Aug  6 03:49:40 CEST 2015 on sn-devel-104



[SCM] Samba Shared Repository - branch v4-3-test updated

2015-08-06 Thread Stefan Metzmacher
The branch, v4-3-test has been updated
   via  e408235 script/librelease.sh: this is replaced by script/release.sh 
now
   via  e41e6a5 script/release.sh: This is a new script to do releases
   via  c55e72e WHATSNEW: fix version numbers
  from  3f010b5 WHATSNEW: Prepare release notes for Samba 4.3.0rc3

https://git.samba.org/?p=samba.git;a=shortlog;h=v4-3-test


- Log -
commit e4082352b8d843c62c7817f423248e70cf16b8a2
Author: Stefan Metzmacher 
Date:   Wed Aug 5 15:41:29 2015 +0200

script/librelease.sh: this is replaced by script/release.sh now

Signed-off-by: Stefan Metzmacher 
Reviewed-by: Andrew Bartlett 

Autobuild-User(master): Andrew Bartlett 
Autobuild-Date(master): Thu Aug  6 03:49:40 CEST 2015 on sn-devel-104

(cherry picked from commit 54cbecbe306eff1c36db5c98fdd106aeccdf096e)

commit e41e6a57e9a457d48b4017383f880a191c66
Author: Stefan Metzmacher 
Date:   Tue Aug 4 11:33:26 2015 +0200

script/release.sh: This is a new script to do releases

This will replace script/librelease.sh and is more flexible
and powerful.

  Usage: release.sh  

  PRODUCT: ldb, talloc, tevent, tdb, samba-rc
  COMMAND: fullrelease, create, push, upload, announce

GNUPGHOME=/path/to/private/gpg script/librelease.sh tdb
becomes
GNUPGHOME=/path/to/private/gpg script/release.sh tdb fullrelease

GNUPGHOME=/path/to/private/gpg script/librelease.sh samba
becomes
GNUPGHOME=/path/to/private/gpg script/release.sh samba-rc create
or later
GNUPGHOME=/path/to/private/gpg script/release.sh samba-stable create

Signed-off-by: Stefan Metzmacher 
Reviewed-by: Andrew Bartlett 
(cherry picked from commit 71128e0a3ceaec43824bc72e0c64d5ce415869a2)

commit c55e72ecb05f69529e429ed31d4488b7b2b9e5c6
Author: Stefan Metzmacher 
Date:   Wed Aug 5 15:11:10 2015 +0200

WHATSNEW: fix version numbers

Signed-off-by: Stefan Metzmacher 

---

Summary of changes:
 WHATSNEW.txt |   4 +-
 script/librelease.sh | 110 -
 script/release.sh| 615 +++
 3 files changed, 617 insertions(+), 112 deletions(-)
 delete mode 100755 script/librelease.sh
 create mode 100755 script/release.sh


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 87da653..33b2766 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -210,11 +210,11 @@ KNOWN ISSUES
 Currently none.
 
 
-CHANGES SINCE 4.2.0rc2
+CHANGES SINCE 4.3.0rc2
 ==
 
 
-CHANGES SINCE 4.2.0rc1
+CHANGES SINCE 4.3.0rc1
 ==
 
 o   Jeremy Allison 
diff --git a/script/librelease.sh b/script/librelease.sh
deleted file mode 100755
index e705cea..000
--- a/script/librelease.sh
+++ /dev/null
@@ -1,110 +0,0 @@
-#!/bin/bash
-# make a release of a Samba library
-
-if [ ! -d ".git" ]; then
-   echo "Run this script from the top-level directory in the"
-   echo "repository"
-   exit 1
-fi
-
-if [ $# -lt 1 ]; then
-echo "Usage: librelease.sh "
-exit 1
-fi
-
-umask 0022
-
-release_lib() {
-lib="$1"
-srcdir="$2"
-ftpdir="$3"
-
-pushd $srcdir
-
-echo "Releasing library $lib"
-
-echo "building release tarball"
-tgzname=$(make dist 2>&1 | grep ^Created | cut -d' ' -f2)
-[ -f "$tgzname" ] || {
-   echo "Failed to create tarball"
-   exit 1
-}
-tarname=$(basename $tgzname .gz)
-echo "Tarball: $tarname"
-gunzip -f $tgzname || exit 1
-[ -f "$tarname" ] || {
-   echo "Failed to decompress tarball $tarname"
-   exit 1
-}
-
-tagname=$(basename $tarname .tar)
-echo "tagging as $tagname"
-git tag -u $GPG_KEYID -s "$tagname" -m "$lib: tag release $tagname" || {
-   exit 1
-}
-
-echo "signing"
-rm -f "$tarname.asc"
-gpg -u "$GPG_USER" --detach-sign --armor $tarname || {
-   exit 1
-}
-[ -f "$tarname.asc" ] || {
-   echo "Failed to create signature $tarname.asc"
-   exit 1
-}
-echo "compressing"
-gzip -f -9 $tarname
-[ -f "$tgzname" ] || {
-   echo "Failed to compress $tgzname"
-   exit 1
-}
-
-[ -z "$ftpdir" ] && {
-popd
-return 0
-}
-
-echo "Push git tag $tagname"
-git push ssh://git.samba.org/data/git/samba.git 
refs/tags/$tagname:refs/tags/$tagname || {
-   exit 1
-}
-
-echo "Transferring for FTP"
-rsync -Pav $tarname.asc $tgzname 
download-master.samba.org:~ftp/pub/$ftpdir/ || {
-   exit 1
-}
-rsync download-master.samba.org:~ftp/pub/$ftpdir/$tarname.*
-
-popd
-}
-
-for lib in $*; do
-case $lib in
-   talloc | tdb | ntdb | tevent | ldb)
-   [ -z "$GPG_USER" ] && {
-   GPG_USER='Samba Library Distribution Key '
-   }
-
-   [ -z "$GPG_KEYID" ] && {
- 

autobuild: intermittent test failure detected

2015-08-06 Thread autobuild
The autobuild test system has detected an intermittent failing test in 
the current master tree.

The autobuild log of the failure is available here:

   http://git.samba.org/autobuild.flakey/2015-08-06-1010/flakey.log

The samba build logs are available here:

   http://git.samba.org/autobuild.flakey/2015-08-06-1010/samba.stderr
   http://git.samba.org/autobuild.flakey/2015-08-06-1010/samba.stdout
  
The top commit at the time of the failure was:

commit 54cbecbe306eff1c36db5c98fdd106aeccdf096e
Author: Stefan Metzmacher 
Date:   Wed Aug 5 15:41:29 2015 +0200

script/librelease.sh: this is replaced by script/release.sh now

Signed-off-by: Stefan Metzmacher 
Reviewed-by: Andrew Bartlett 

Autobuild-User(master): Andrew Bartlett 
Autobuild-Date(master): Thu Aug  6 03:49:40 CEST 2015 on sn-devel-104