[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 4e32944 ctdb: Add new helper ctdb_etcd_lock from 41c964f ctdb-recovery: Start recovery helper with ctdb_vfork_exec https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 4e32944b785418ef6d16d921391412d8feb37853 Author: Jose A. Rivera <jar...@samba.org> Date: Mon Jul 25 14:58:16 2016 -0500 ctdb: Add new helper ctdb_etcd_lock This introduces a mutex helper called ctdb_etcd_lock, which allows CTDB to use an existing etcd cluster to provide the functionality of a recovery lock using the API outlined in ctdb/doc/cluster_mutex_helper.txt. Signed-off-by: Jose A. Rivera <jar...@samba.org> Reviewed-by: David Disseldorp <dd...@samba.org> Autobuild-User(master): José A. Rivera <jar...@samba.org> Autobuild-Date(master): Mon Dec 5 19:39:10 CET 2016 on sn-devel-144 --- Summary of changes: ctdb/doc/Makefile | 1 + ctdb/doc/ctdb-etcd.7.xml | 117 ++ ctdb/tools/ctdb_etcd_lock | 208 ++ ctdb/wscript | 10 ++- 4 files changed, 335 insertions(+), 1 deletion(-) create mode 100644 ctdb/doc/ctdb-etcd.7.xml create mode 100755 ctdb/tools/ctdb_etcd_lock Changeset truncated at 500 lines: diff --git a/ctdb/doc/Makefile b/ctdb/doc/Makefile index f0f8215..50ab719 100644 --- a/ctdb/doc/Makefile +++ b/ctdb/doc/Makefile @@ -8,6 +8,7 @@ DOCS = ctdb.1 ctdb.1.html \ ctdbd.conf.5 ctdbd.conf.5.html \ ctdb.7 ctdb.7.html \ ctdb-statistics.7 ctdb-statistics.7.html \ + ctdb-etcd.7 ctdb-etcd.7.html \ ctdb-tunables.7 ctdb-tunables.7.html all: $(DOCS) diff --git a/ctdb/doc/ctdb-etcd.7.xml b/ctdb/doc/ctdb-etcd.7.xml new file mode 100644 index 000..59acece --- /dev/null +++ b/ctdb/doc/ctdb-etcd.7.xml @@ -0,0 +1,117 @@ + +http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;> + + + + + + This documentation was written by + Jose A. Rivera + + + + + 2016 + Jose A. Rivera + + + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 3 of + the License, or (at your option) any later version. + + + This program is distributed in the hope that it will be + useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the GNU General Public License for more details. + + + You should have received a copy of the GNU General Public + License along with this program; if not, see + http://www.gnu.org/licenses"/>. + + + + + +ctdb-etcd +7 +ctdb +CTDB - clustered TDB database + + + +ctdb-etcd +CTDB etcd integration + + + + + ctdb_etcd_lock + + + + +DESCRIPTION + + ctdb_etcd_lock is intended to be run as a mutex helper for CTDB. It + will try to connect to an existing etcd cluster and grab a lock in that + cluster to function as CTDB's recovery lock. Please see + ctdb/doc/cluster_mutex_helper.txt for details on + the mutex helper API. To use this, include the following line in your + CTDB config file: + + +CTDB_RECOVERY_LOCK="!/usr/local/usr/libexec/ctdb/ctdb_etcd_lock" + + + You can also pass "-v", "-vv", or "-vvv" to include verbose output in + the CTDB log. Additional "v"s indicate increases in verbosity. + + + This mutex helper expects the system Python interpreter to have access + to the etcd Python module. It also expects an etcd cluster to be + configured and running. To integrate with this, there is an optional + config file of the following format: + + +key = value + + + The following configuration parameters (and their defaults) are defined + for use by ctdb_etcd_lock: + + +port = 2379 # connecting port for the etcd cluster +lock_ttl = 9 # seconds for TTL +refresh = 2 # seconds between attempts to maintain lock +locks_dir = _ctdb # where to store CTDB locks in etcd + # The final etcd directory for any given lock looks like: + # /_locks/{locks_dir}/{netbios name}/ + + + In addition, any keyword parameter that can be used to configure an + etcd client may be specified and modified here. For more documentation + on these parameters, see here: https://github.com/jplana/python-etcd/ + + + + +SEE ALSO + + ctdb + 7, + + ctdbd + 1, + +
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via 811621c NEWS[SDC_and_IO_Lab]: ...and fix broken links from 3425c23 NEWS[SDC_and_IO_Lab]: fixed a one-character typo https://git.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit 811621c8d5c7b8dd20232d066b2a8427f91c6954 Author: Jose A. RiveraDate: Fri Oct 2 23:02:04 2015 -0700 NEWS[SDC_and_IO_Lab]: ...and fix broken links Okay NOW seriously done. Signed-off-by: Jose A. Rivera --- Summary of changes: posted_news/20151002-214522.SDC_and_IO_Lab.body.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Changeset truncated at 500 lines: diff --git a/posted_news/20151002-214522.SDC_and_IO_Lab.body.html b/posted_news/20151002-214522.SDC_and_IO_Lab.body.html index 21bbfd5..3f10741 100644 --- a/posted_news/20151002-214522.SDC_and_IO_Lab.body.html +++ b/posted_news/20151002-214522.SDC_and_IO_Lab.body.html @@ -18,7 +18,7 @@ keyboards fixing bugs and implementing last-minute features for their demos. We even welcomed a new member into our fold, so be sure to send him all your issues with printing. - + This past week a smaller contingent of Team members flew up to Microsoft campus in Redmond, WA for a Samba IO Lab. Events like this are part of -- Samba Website Repository
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via 4cd683b NEWS[SDC_and_IO_Lab]: Samba Team at SDC, Samba IO Lab via befbc12 news scripts: allow for news stories to have snippets shown on the front page from 2fef43d Add Uri Simchoni to Samba team member list https://git.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit 4cd683b54def3ab621f44df96f85374b6a2efadf Author: Jose A. RiveraDate: Fri Oct 2 16:46:21 2015 -0700 NEWS[SDC_and_IO_Lab]: Samba Team at SDC, Samba IO Lab Signed-off-by: Jose A. Rivera commit befbc1286b565225e9281823ef26522155c4328d Author: Jose A. Rivera Date: Fri Oct 2 21:48:08 2015 -0700 news scripts: allow for news stories to have snippets shown on the front page Signed-off-by: Jose A. Rivera --- Summary of changes: generated_news.sh | 13 ++--- images/samba_iolab_2015.jpg| Bin 0 -> 442178 bytes images/sdc_2015.jpg| Bin 0 -> 384876 bytes .../20151002-214522.SDC_and_IO_Lab.body.html | 31 + .../20151002-214522.SDC_and_IO_Lab.headline.html | 3 ++ .../20151002-214522.SDC_and_IO_Lab.snip.html | 10 +++ prepare_news.sh| 25 - 7 files changed, 77 insertions(+), 5 deletions(-) create mode 100644 images/samba_iolab_2015.jpg create mode 100644 images/sdc_2015.jpg create mode 100644 posted_news/20151002-214522.SDC_and_IO_Lab.body.html create mode 100644 posted_news/20151002-214522.SDC_and_IO_Lab.headline.html create mode 100644 posted_news/20151002-214522.SDC_and_IO_Lab.snip.html Changeset truncated at 500 lines: diff --git a/generated_news.sh b/generated_news.sh index e6001b2..a8652cd 100755 --- a/generated_news.sh +++ b/generated_news.sh @@ -23,10 +23,15 @@ generate() { } echo "${dst}: regenerating" - files=$(find posted_news/ -type f -name "${filter}" -printf "%f\n" | sort -r | head -${count} | xargs) + files=$(find posted_news/ -type f -regex "${filter}" -printf "%f\n" | sort -r | xargs) { for f in ${files}; do + if [[ "$filter" == *snip* ]] && [[ "$f" == *".body.html"* ]] && [[ "$files" == *"${f%.body.html}.snip.html"* ]]; then + continue + fi echo "" + count=$((count-1)) + if [[ $count == 0 ]]; then break; fi done } > ${dst} @@ -67,9 +72,9 @@ generate_latest_stable_release() { mv ${dst}.tmp ${dst} } -generate "generated_news/latest_10_headlines.html" "10" "*.headline.html" -generate "generated_news/latest_10_bodies.html" "10" "*.body.html" -generate "generated_news/latest_2_bodies.html" "2" "*.body.html" +generate "generated_news/latest_10_headlines.html" "10" ".*\.headline\.html" +generate "generated_news/latest_10_bodies.html" "10" ".*\.body\.html" +generate "generated_news/latest_2_bodies.html" "2" ".*\.\(snip\|body\)\.html" download_url="https://download.samba.org/pub/samba/stable; generate_latest_stable_release "generated_news/latest_stable_release.html" "${download_url}" diff --git a/images/samba_iolab_2015.jpg b/images/samba_iolab_2015.jpg new file mode 100644 index 000..5f101ed Binary files /dev/null and b/images/samba_iolab_2015.jpg differ diff --git a/images/sdc_2015.jpg b/images/sdc_2015.jpg new file mode 100644 index 000..6b310c6 Binary files /dev/null and b/images/sdc_2015.jpg differ diff --git a/posted_news/20151002-214522.SDC_and_IO_Lab.body.html b/posted_news/20151002-214522.SDC_and_IO_Lab.body.html new file mode 100644 index 000..dbac37e --- /dev/null +++ b/posted_news/20151002-214522.SDC_and_IO_Lab.body.html @@ -0,0 +1,31 @@ + +02 October 2015 +Samba Team at SDC, Samba IO Lab + +Today marks the end of two weeks of US-based hacking for several members of +the Samba Team. + + + + +Last week, a good part of the Team made its regular appearance at the Storage +Network Industry Association (SNIA) Storage Developers Conference and the +colocated SNIA SMB2/3 Protocol Plugfest in Santa Clara, CA. Many members gave +presentations on the state of features and the project as a whole at the SDC, +and many more leaned heavily over their keyboards fixing bugs and +implementing last-minute features for their demos. We even welcomed a new +member into our fold, so be sure to send him all your issues with printing. + + + +This past week a smaller contingent of Team members flew up to Microsoft +campus in Redmond, WA for a Samba IO Lab. This was a much more intense period +of hacking filled with discoveries, cursing, breakthroughs, and too much +pizza. Expect to see the
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via 7677518 NEWS[SDC_and_IO_Lab]: add thumbnail images from 4cd683b NEWS[SDC_and_IO_Lab]: Samba Team at SDC, Samba IO Lab https://git.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit 7677518ccd0da6f6a50053318790e41e0e34b684 Author: Jose A. RiveraDate: Fri Oct 2 22:32:37 2015 -0700 NEWS[SDC_and_IO_Lab]: add thumbnail images --- Summary of changes: images/samba_iolab_2015_thumb.jpg | Bin 0 -> 28590 bytes images/sdc_2015_thumb.jpg | Bin 0 -> 26856 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 images/samba_iolab_2015_thumb.jpg create mode 100644 images/sdc_2015_thumb.jpg Changeset truncated at 500 lines: diff --git a/images/samba_iolab_2015_thumb.jpg b/images/samba_iolab_2015_thumb.jpg new file mode 100644 index 000..c21a915 Binary files /dev/null and b/images/samba_iolab_2015_thumb.jpg differ diff --git a/images/sdc_2015_thumb.jpg b/images/sdc_2015_thumb.jpg new file mode 100644 index 000..52d0a73 Binary files /dev/null and b/images/sdc_2015_thumb.jpg differ -- Samba Website Repository
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via b3f1520 NEWS[SDC_and_IO_Lab]: as good netizens, add some hyperlinks from 7677518 NEWS[SDC_and_IO_Lab]: add thumbnail images https://git.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit b3f152067a3b0a0f11893db2c9375d67acaf8c81 Author: Jose A. RiveraDate: Fri Oct 2 22:54:43 2015 -0700 NEWS[SDC_and_IO_Lab]: as good netizens, add some hyperlinks --- Summary of changes: .../20151002-214522.SDC_and_IO_Lab.body.html | 27 +- 1 file changed, 16 insertions(+), 11 deletions(-) Changeset truncated at 500 lines: diff --git a/posted_news/20151002-214522.SDC_and_IO_Lab.body.html b/posted_news/20151002-214522.SDC_and_IO_Lab.body.html index dbac37e..40229ec 100644 --- a/posted_news/20151002-214522.SDC_and_IO_Lab.body.html +++ b/posted_news/20151002-214522.SDC_and_IO_Lab.body.html @@ -9,19 +9,24 @@ the Samba Team. Last week, a good part of the Team made its regular appearance at the Storage -Network Industry Association (SNIA) Storage Developers Conference and the -colocated SNIA SMB2/3 Protocol Plugfest in Santa Clara, CA. Many members gave -presentations on the state of features and the project as a whole at the SDC, -and many more leaned heavily over their keyboards fixing bugs and -implementing last-minute features for their demos. We even welcomed a new -member into our fold, so be sure to send him all your issues with printing. +Network Industry Association's (SNIA) http://www.snia.org/events/storage-developer;>Storage Developers +Conference and the colocated SNIA SMB2/3 Protocol Plugfest in Santa +Clara, CA. Many members gave presentations on the state of features and the +project as a whole at the SDC, and many more leaned heavily over their +keyboards fixing bugs and implementing last-minute features for their demos. +We even welcomed a new member into our fold, so be sure to send him all your +issues with printing. - + -This past week a smaller contingent of Team members flew up to Microsoft -campus in Redmond, WA for a Samba IO Lab. This was a much more intense period -of hacking filled with discoveries, cursing, breakthroughs, and too much -pizza. Expect to see the fruits of their labor in near-future releases! +This past week a smaller contingent of Team members flew up to Microsoft +campus in Redmond, WA for a Samba IO Lab. Events like this are part of +Microsoft's https://msdn.microsoft.com/en-us/openspecifications;>Open +Specifications program. This was a much more intense period of hacking +filled with discoveries, cursing, breakthroughs, and too much pizza. Expect +to see the fruits of their labor in near-future releases! Our thanks go out to the companies, organization, and people that work so -- Samba Website Repository
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via 3425c23 NEWS[SDC_and_IO_Lab]: fixed a one-character typo from b3f1520 NEWS[SDC_and_IO_Lab]: as good netizens, add some hyperlinks https://git.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit 3425c23f0c4096d6227f09fee33c1f7af872d377 Author: Jose A. RiveraDate: Fri Oct 2 22:56:49 2015 -0700 NEWS[SDC_and_IO_Lab]: fixed a one-character typo I'm done now, I swear! Signed-off-by: Jose A. Rivera --- Summary of changes: posted_news/20151002-214522.SDC_and_IO_Lab.body.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Changeset truncated at 500 lines: diff --git a/posted_news/20151002-214522.SDC_and_IO_Lab.body.html b/posted_news/20151002-214522.SDC_and_IO_Lab.body.html index 40229ec..21bbfd5 100644 --- a/posted_news/20151002-214522.SDC_and_IO_Lab.body.html +++ b/posted_news/20151002-214522.SDC_and_IO_Lab.body.html @@ -29,7 +29,7 @@ filled with discoveries, cursing, breakthroughs, and too much pizza. Expect to see the fruits of their labor in near-future releases! -Our thanks go out to the companies, organization, and people that work so +Our thanks go out to the companies, organizations, and people that work so hard to enable, organize, and fund these events. We look forward to working with them during future events! -- Samba Website Repository
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 1b8ea12 witness: fix length calculation in witness_IPaddrInfoList IDL. via f2fcbf2 witness: fix IP address endianess in witness_IPaddrInfo IDL. via 23c17d9 s4-torture: add test to verify WITNESS_NOTIFY_CLIENT_MOVE message marshalling. from 2266e24 smbd: Set process name for notifyd process https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 1b8ea12aa7627ace735923e68e59bc3d5cce3676 Author: Günther Deschner <g...@samba.org> Date: Thu Sep 24 06:40:39 2015 +0200 witness: fix length calculation in witness_IPaddrInfoList IDL. Guenther Signed-off-by: Günther Deschner <g...@samba.org> Reviewed-by: Jose A. Rivera <jar...@samba.org> Autobuild-User(master): José A. Rivera <jar...@samba.org> Autobuild-Date(master): Thu Sep 24 22:33:28 CEST 2015 on sn-devel-104 commit f2fcbf24576110c9feaf5cc07feb1c469fa9247c Author: Günther Deschner <g...@samba.org> Date: Thu Sep 24 06:40:19 2015 +0200 witness: fix IP address endianess in witness_IPaddrInfo IDL. Guenther Signed-off-by: Günther Deschner <g...@samba.org> Reviewed-by: Jose A. Rivera <jar...@samba.org> commit 23c17d95342dc335bab03112f1c615cd3e9ea0d7 Author: Günther Deschner <g...@samba.org> Date: Thu Sep 24 02:47:35 2015 +0200 s4-torture: add test to verify WITNESS_NOTIFY_CLIENT_MOVE message marshalling. Guenther Signed-off-by: Günther Deschner <g...@samba.org> Reviewed-by: Jose A. Rivera <jar...@samba.org> --- Summary of changes: librpc/idl/witness.idl| 6 +++--- source4/torture/ndr/witness.c | 44 +++ 2 files changed, 47 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/librpc/idl/witness.idl b/librpc/idl/witness.idl index febae25..1557bad 100644 --- a/librpc/idl/witness.idl +++ b/librpc/idl/witness.idl @@ -100,12 +100,12 @@ interface witness typedef [flag(NDR_NOALIGN|NDR_LITTLE_ENDIAN),gensize] struct { witness_IPaddrInfo_flags flags; - ipv4address ipv4; - ipv6address ipv6; + [flag(NDR_BIG_ENDIAN)] ipv4address ipv4; + [flag(NDR_BIG_ENDIAN)] ipv6address ipv6; } witness_IPaddrInfo; typedef [flag(NDR_NOALIGN|NDR_LITTLE_ENDIAN)] struct { - [value(r->num*ndr_size_witness_IPaddrInfo(r->addr, ndr->flags))] uint32 length; + [value(12+(r->num*ndr_size_witness_IPaddrInfo(r->addr, ndr->flags)))] uint32 length; [value(0)] uint32 reserved; uint32 num; witness_IPaddrInfo addr[num]; diff --git a/source4/torture/ndr/witness.c b/source4/torture/ndr/witness.c index e837eab..9ba97d3 100644 --- a/source4/torture/ndr/witness.c +++ b/source4/torture/ndr/witness.c @@ -268,6 +268,42 @@ static bool witness_AsyncNotify_check_OUT(struct torture_context *tctx, return true; } +static const uint8_t witness_AsyncNotify_data_move_OUT[] = { + 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x24, 0x00, 0x00, 0x00, + 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0xc0, 0xa8, 0x03, 0x2d, 0x00, 0x00, 0x00, 0x00, + 0x38, 0xe8, 0xeb, 0x26, 0x8e, 0x00, 0x00, 0x00, 0x00, 0x9e, 0x60, 0x26, + 0x00, 0x00, 0x00, 0x00 +}; + +static bool witness_AsyncNotify_check_move_OUT(struct torture_context *tctx, + struct witness_AsyncNotify *r) +{ + struct witness_notifyResponse *n; + struct witness_IPaddrInfoList *i; + + torture_assert(tctx, r->out.response, "r->out.response"); + + n = *(r->out.response); + + torture_assert_int_equal(tctx, n->type, WITNESS_NOTIFY_CLIENT_MOVE, "type"); + torture_assert_int_equal(tctx, n->length, 36, "length"); + torture_assert_int_equal(tctx, n->num, 1, "num"); + + i = >messages[0].client_move; + + torture_assert_int_equal(tctx, i->length, 36, "i->length"); + torture_assert_int_equal(tctx, i->reserved, 0, "i->reserved"); + torture_assert_int_equal(tctx, i->num, 1, "i->num"); + + torture_assert_int_equal(tctx, i->addr[0].flags, WITNESS_IPADDR_V4, "i->addr[0].flags"); + torture_assert_str_equal(tctx, i->addr[0].ipv4, "192.168.3.45", "i->addr[0].ipv4"); + torture_assert_str_equal(tctx, i->addr[0].ipv6, "::38e8:eb26:8e00::009e:6026", "i->addr[0]
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via a3af166 s4-torture: add test for CLUSCTL_NODE_GET_ID in clusapi_NodeControl. via 321fe41 s3-rpcclient: add client for create enum ex. via 93572c9 s4-torture: add more ndr tests for property lists. via d6a8e35 s4-torture: add torture test for clusapi_NodeControl. via 7cea0aa clusapi: add clusapi_NodeControlCode to IDL. via d621099 s4-torture: add tests for GroupControl. via e1373ea clusapi: add clusapi_GroupControlCode enum to IDL. via 2654ac3 s4-torture: also test ClusterControl with a large initial buffer size. via 0f125f8 clusapi: use winreg_Type in clusapi registry IDL. via 2a08aa0 s4-torture: add ndr testsuite for complex clusapi_PROPERTY_LIST structs. via 5e009e1 clusapi: use ClusterEnumType in clusapi_CreateEnumEx. via d13535d s4-torture: add test for clusapi_CreateEnumEx(). via b378329 clusapi: add PROPERTY_LIST IDL. via e68ce4b s4-torture: add test for GetResourceNetworkName. via bc14440 s3-clusapi: add test for GetResourceDependencyExpression. via 1f51628 s4-torture: add more tests for clusapi_OpenResource(). from 95eb6db s3-net: use talloc array in share allowedusers https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit a3af16613f7b870a6cf7e2cfd83960076018962b Author: Günther Deschner g...@samba.org Date: Tue Jul 21 15:31:20 2015 +0200 s4-torture: add test for CLUSCTL_NODE_GET_ID in clusapi_NodeControl. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: José A. Rivera jar...@samba.org Autobuild-User(master): José A. Rivera jar...@samba.org Autobuild-Date(master): Tue Aug 4 22:14:33 CEST 2015 on sn-devel-104 commit 321fe41e552d1f6063d436f3828b70d2bb626c96 Author: Günther Deschner g...@samba.org Date: Fri Jul 17 11:39:52 2015 +0200 s3-rpcclient: add client for create enum ex. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: José A. Rivera jar...@samba.org commit 93572c9cba33d2cb84e131e0b6ac50e741b419e8 Author: Günther Deschner g...@samba.org Date: Fri Jul 17 00:14:09 2015 +0200 s4-torture: add more ndr tests for property lists. This data is derived from clusapi_NodeControl. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: José A. Rivera jar...@samba.org commit d6a8e35a079f52c19101f0ffa76dd6ba60ee466b Author: Günther Deschner g...@samba.org Date: Thu Jul 16 23:28:33 2015 +0200 s4-torture: add torture test for clusapi_NodeControl. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: José A. Rivera jar...@samba.org commit 7cea0aa6638379c94d6371ab927967fff7cf0588 Author: Günther Deschner g...@samba.org Date: Thu Jul 16 23:22:18 2015 +0200 clusapi: add clusapi_NodeControlCode to IDL. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: José A. Rivera jar...@samba.org commit d6210991ccc7c1279847388a416404d7f5472cc8 Author: Günther Deschner g...@samba.org Date: Thu Jul 16 17:40:37 2015 +0200 s4-torture: add tests for GroupControl. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: José A. Rivera jar...@samba.org commit e1373ea464e278f94371cfaffd819ddc543e9f38 Author: Günther Deschner g...@samba.org Date: Thu Jul 16 17:03:59 2015 +0200 clusapi: add clusapi_GroupControlCode enum to IDL. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: José A. Rivera jar...@samba.org commit 2654ac3d52bcc99a650b35f492af4ba2f857217d Author: Günther Deschner g...@samba.org Date: Thu Jul 16 08:21:27 2015 +0200 s4-torture: also test ClusterControl with a large initial buffer size. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: José A. Rivera jar...@samba.org commit 0f125f836035e7458e5937652c1ffab0ce948a73 Author: Günther Deschner g...@samba.org Date: Thu Jul 16 08:08:51 2015 +0200 clusapi: use winreg_Type in clusapi registry IDL. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: José A. Rivera jar...@samba.org commit 2a08aa04568202bea7db9061592d20a7bf3efee7 Author: Günther Deschner g...@samba.org Date: Tue Jul 14 15:55:57 2015 +0200 s4-torture: add ndr testsuite for complex clusapi_PROPERTY_LIST structs. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: José A. Rivera jar...@samba.org commit 5e009e13aaf9bcc05e357862b28aa6876f7c908c Author: Günther Deschner g...@samba.org Date: Mon Jul 13 21:09:16 2015 +0200 clusapi: use ClusterEnumType in clusapi_CreateEnumEx. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: José A. Rivera
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 7ce0b7c9 s4-torture: add test for ClusterControl to clusapi testsuite. via db49f1f clusapi: add and use clusapi_ClusterControlCode to IDL. via 6f08d8ab s3-rpcclient: add cmd_clusapi_get_cluster_version2. via 0a95932 s4-torture: add test for clusapi_QueryValue. via aa96377 clusapi: use winreg_AccessMask in clusapi.idl. via 2ac148d s4-torture: add more tests for dcerpc_clusapi_CreateEnum. via 97bef66 s4-torture: make sure to always seal the clusapi connection in witness test. via d6a4a2d s4-torture: do some more inspection on expected witness_AsyncNotify replies. via d270028 s4-torture: add test for ClusterControl to clusapi testsuite. from ff3b446 s4-torture: use smb_krb5_principal_set_type() in lsa forest krb5 tests. https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 7ce0b7c95845ab001cf76bf5e9a0891ed601cc98 Author: Günther Deschner g...@samba.org Date: Thu Jul 9 15:44:41 2015 +0200 s4-torture: add test for ClusterControl to clusapi testsuite. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: Jose A. Rivera jar...@samba.org Autobuild-User(master): José A. Rivera jar...@samba.org Autobuild-Date(master): Wed Jul 15 00:25:38 CEST 2015 on sn-devel-104 commit db49f1f014f2d76deddd7c86050f53c94494f712 Author: Günther Deschner g...@samba.org Date: Thu Jul 9 15:12:58 2015 +0200 clusapi: add and use clusapi_ClusterControlCode to IDL. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: Jose A. Rivera jar...@samba.org commit 6f08d8ab23c37f7511260c4a488e236263584b8b Author: Günther Deschner g...@samba.org Date: Thu Jul 9 15:56:44 2015 +0200 s3-rpcclient: add cmd_clusapi_get_cluster_version2. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: Jose A. Rivera jar...@samba.org commit 0a95932aaded561ee88cee963e7ecaf77884fadf Author: Günther Deschner g...@samba.org Date: Mon Jul 6 13:59:27 2015 +0200 s4-torture: add test for clusapi_QueryValue. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: Jose A. Rivera jar...@samba.org commit aa96377b27c5078b37cbc2167cadd61067411406 Author: Günther Deschner g...@samba.org Date: Sat Jul 4 01:26:44 2015 +0200 clusapi: use winreg_AccessMask in clusapi.idl. Make winreg_AccessMask public to access it outside winreg.idl. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: Jose A. Rivera jar...@samba.org commit 2ac148d6a2e9010eb7dcd754122f64594b1aabcd Author: Günther Deschner g...@samba.org Date: Sat Jul 4 01:26:01 2015 +0200 s4-torture: add more tests for dcerpc_clusapi_CreateEnum. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: Jose A. Rivera jar...@samba.org commit 97bef6613eb987a74b755c95340aea7149b3fe36 Author: Günther Deschner g...@samba.org Date: Wed Jul 1 19:29:28 2015 +0200 s4-torture: make sure to always seal the clusapi connection in witness test. clusapi only works via DCE/RPC sealed connections in Windows 2012R2. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: Jose A. Rivera jar...@samba.org commit d6a4a2ddb3882179408359011363d4fd855a6ece Author: Günther Deschner g...@samba.org Date: Wed Jul 1 15:40:06 2015 +0200 s4-torture: do some more inspection on expected witness_AsyncNotify replies. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: Jose A. Rivera jar...@samba.org commit d2700282ec4683710703c002552113aea6aee722 Author: Günther Deschner g...@samba.org Date: Wed Jul 1 15:14:19 2015 +0200 s4-torture: add test for ClusterControl to clusapi testsuite. Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: Jose A. Rivera jar...@samba.org --- Summary of changes: librpc/idl/clusapi.idl | 39 ++-- librpc/idl/winreg.idl | 2 +- source3/rpcclient/cmd_clusapi.c | 41 + source4/torture/rpc/clusapi.c | 193 +--- source4/torture/rpc/witness.c | 66 -- 5 files changed, 314 insertions(+), 27 deletions(-) Changeset truncated at 500 lines: diff --git a/librpc/idl/clusapi.idl b/librpc/idl/clusapi.idl index 3e87114..5cb7610 100644 --- a/librpc/idl/clusapi.idl +++ b/librpc/idl/clusapi.idl @@ -1,4 +1,4 @@ -import security.idl; +import security.idl, winreg.idl; #include idl_types.h @@ -464,14 +464,14 @@ import security.idl; #if 0 HKEY_RPC clusapi_GetRootKey( - [ in ] uint32 samDesired, + [ in ] winreg_AccessMask samDesired
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via f89e9bd rpc: Simplify dcerpc_binding_handle_raw_call() from 893b5f8 wafsamba: Also build libraries with RELRO protection https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit f89e9bd47b98f9dbe9413b7d9d4f08b7f11a Author: Volker Lendecke v...@samba.org Date: Sat Feb 14 16:30:33 2015 +0100 rpc: Simplify dcerpc_binding_handle_raw_call() Align it with dcerpc_binding_handle_call() Signed-off-by: Volker Lendecke v...@samba.org Reviewed-by: Jose A. Rivera jar...@samba.org Autobuild-User(master): José A. Rivera jar...@samba.org Autobuild-Date(master): Fri Jun 19 20:17:24 CEST 2015 on sn-devel-104 --- Summary of changes: librpc/rpc/binding_handle.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) Changeset truncated at 500 lines: diff --git a/librpc/rpc/binding_handle.c b/librpc/rpc/binding_handle.c index 5a94144..f5e043d 100644 --- a/librpc/rpc/binding_handle.c +++ b/librpc/rpc/binding_handle.c @@ -224,7 +224,7 @@ NTSTATUS dcerpc_binding_handle_raw_call(struct dcerpc_binding_handle *h, TALLOC_CTX *frame = talloc_stackframe(); struct tevent_context *ev; struct tevent_req *subreq; - NTSTATUS status; + NTSTATUS status = NT_STATUS_NO_MEMORY; /* * TODO: allow only one sync call @@ -236,8 +236,7 @@ NTSTATUS dcerpc_binding_handle_raw_call(struct dcerpc_binding_handle *h, ev = samba_tevent_context_init(frame); } if (ev == NULL) { - talloc_free(frame); - return NT_STATUS_NO_MEMORY; + goto fail; } subreq = dcerpc_binding_handle_raw_call_send(frame, ev, @@ -246,13 +245,11 @@ NTSTATUS dcerpc_binding_handle_raw_call(struct dcerpc_binding_handle *h, in_data, in_length); if (subreq == NULL) { - talloc_free(frame); - return NT_STATUS_NO_MEMORY; + goto fail; } if (!tevent_req_poll_ntstatus(subreq, ev, status)) { - talloc_free(frame); - return status; + goto fail; } status = dcerpc_binding_handle_raw_call_recv(subreq, @@ -260,13 +257,9 @@ NTSTATUS dcerpc_binding_handle_raw_call(struct dcerpc_binding_handle *h, out_data, out_length, out_flags); - if (!NT_STATUS_IS_OK(status)) { - talloc_free(frame); - return status; - } - +fail: TALLOC_FREE(frame); - return NT_STATUS_OK; + return status; } struct dcerpc_binding_handle_disconnect_state { -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 15f83d8 samba-tool: make 'samba-tool fsmo *' aware of all 7 fsmo roles from cd57075 s3: smbd - Fix SMB3.11 protocol encryption selection. https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 15f83d80c6f4a25a11954b9b38a14be961f1df0c Author: Rowland Penny repenny241...@gmail.com Date: Fri Jun 5 19:31:38 2015 +0100 samba-tool: make 'samba-tool fsmo *' aware of all 7 fsmo roles BUG: https://bugzilla.samba.org/show_bug.cgi?id=10734 Signed-off-by: Rowland Penny repenny241...@gmail.com Reviewed-by: Jelmer Vernooij jel...@samba.org Reviewed-by: Jose A. Rivera jar...@samba.org Autobuild-User(master): José A. Rivera jar...@samba.org Autobuild-Date(master): Thu Jun 18 10:24:48 CEST 2015 on sn-devel-104 --- Summary of changes: python/samba/netcmd/fsmo.py | 346 ++-- 1 file changed, 268 insertions(+), 78 deletions(-) Changeset truncated at 500 lines: diff --git a/python/samba/netcmd/fsmo.py b/python/samba/netcmd/fsmo.py index 1bc4a96..0b4488f 100644 --- a/python/samba/netcmd/fsmo.py +++ b/python/samba/netcmd/fsmo.py @@ -17,10 +17,11 @@ # along with this program. If not, see http://www.gnu.org/licenses/. # +import samba import samba.getopt as options import ldb from ldb import LdbError - +from samba.dcerpc import drsuapi, misc from samba.auth import system_session from samba.netcmd import ( Command, @@ -30,15 +31,131 @@ from samba.netcmd import ( ) from samba.samdb import SamDB +def get_fsmo_roleowner(samdb, roledn): +Gets the owner of an FSMO role + +:param roledn: The DN of the FSMO role + +res = samdb.search(roledn, + scope=ldb.SCOPE_BASE, attrs=[fSMORoleOwner]) +assert len(res) == 1 +master_owner = res[0][fSMORoleOwner][0] +return master_owner + + +def transfer_dns_role(outf, sambaopts, credopts, role, samdb): +Transfer dns FSMO role. + +if role == domaindns: +domain_dn = samdb.domain_dn() +role_object = CN=Infrastructure,DC=DomainDnsZones, + domain_dn +elif role == forestdns: +forest_dn = samba.dn_from_dns_name(samdb.forest_dns_name()) +role_object = CN=Infrastructure,DC=ForestDnsZones, + forest_dn + +try: +res = samdb.search(role_object, + attrs=[fSMORoleOwner], + scope=ldb.SCOPE_BASE, + controls=[extended_dn:1:1]) + +if 'fSMORoleOwner' in res[0]: +try: +master_guid = str(misc.GUID(ldb.Dn(samdb, + res[0]['fSMORoleOwner'][0]) + .get_extended_component('GUID'))) +master_owner = str(ldb.Dn(samdb, res[0]['fSMORoleOwner'][0])) +except LdbError, (num, msg): +raise CommandError(GUID not found in partition naming master DN %s : %s \n % + (res[0]['fSMORoleOwner'][0], msg)) +except LdbError, (num, msg): +raise CommandError(DNS partion %s not found : %s % (role, msg)) + +if role == domaindns: +master_dns_name = '%s._msdcs.%s' % (master_guid, +samdb.domain_dns_name()) +new_dns_name = '%s._msdcs.%s' % (samdb.get_ntds_GUID(), + samdb.domain_dns_name()) +elif role == forestdns: +master_dns_name = '%s._msdcs.%s' % (master_guid, +samdb.forest_dns_name()) +new_dns_name = '%s._msdcs.%s' % (samdb.get_ntds_GUID(), + samdb.forest_dns_name()) + +new_owner = samdb.get_dsServiceName() + +if master_dns_name != new_dns_name: +lp = sambaopts.get_loadparm() +creds = credopts.get_credentials(lp, fallback_machine=True) +samdb = SamDB(url=ldap://%s; % (master_dns_name), + session_info=system_session(), + credentials=creds, lp=lp) + +m = ldb.Message() +m.dn = ldb.Dn(samdb, role_object) +m[fSMORoleOwner] = ldb.MessageElement(master_owner, +ldb.FLAG_MOD_DELETE, +fSMORoleOwner) + +try: +samdb.modify(m) +except LdbError, (num, msg): +raise CommandError(Failed to delete role '%s': %s % + (role, msg)) + +m = ldb.Message() +m.dn = ldb.Dn(samdb, role_object) +m[fSMORoleOwner]= ldb.MessageElement(new_owner, + ldb.FLAG_MOD_ADD, + fSMORoleOwner) +try: +samdb.modify(m
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 6e473c5 messaging: Init server_id_db after clustering from 4c5fefe winbindd: winbindd_raw_kerberos_login - ensure logon_info exists in PAC. https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 6e473c526a59a2c6ef2d4eb5148b2255f4a180c5 Author: Volker Lendecke v...@samba.org Date: Thu Jun 11 14:34:12 2015 + messaging: Init server_id_db after clustering server_id_db_init references our pid, which got changed by the clustering initialization just a line above. So far names.tdb is just local, but we should register our clustered id with vnn.pid instead of just the pid nevertheless. Signed-off-by: Volker Lendecke v...@samba.org Reviewed-by: Jose A. Rivera jar...@samba.org Autobuild-User(master): José A. Rivera jar...@samba.org Autobuild-Date(master): Fri Jun 12 02:27:41 CEST 2015 on sn-devel-104 --- Summary of changes: source3/lib/messages.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 0297cc8..041aa1f 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -342,15 +342,6 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx, return NULL; } - ctx-names_db = server_id_db_init( - ctx, ctx-id, lp_lock_directory(), 0, - TDB_INCOMPATIBLE_HASH|TDB_CLEAR_IF_FIRST); - if (ctx-names_db == NULL) { - DEBUG(10, (%s: server_id_db_init failed\n, __func__)); - TALLOC_FREE(ctx); - return NULL; - } - talloc_set_destructor(ctx, messaging_context_destructor); if (lp_clustering()) { @@ -365,6 +356,15 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx, } ctx-id.vnn = get_my_vnn(); + ctx-names_db = server_id_db_init( + ctx, ctx-id, lp_lock_directory(), 0, + TDB_INCOMPATIBLE_HASH|TDB_CLEAR_IF_FIRST); + if (ctx-names_db == NULL) { + DEBUG(10, (%s: server_id_db_init failed\n, __func__)); + TALLOC_FREE(ctx); + return NULL; + } + messaging_register(ctx, NULL, MSG_PING, ping_message); /* Register some debugging related messages */ -- Samba Shared Repository
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via 37e7266 Update entries for Jose and Chris. from 3c0a2e2 make samba.org urls protocol independent on index.html https://git.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit 37e72666c576e685c8b4d578f5f2415f8ef58d09 Author: Jose A. Rivera jar...@redhat.com Date: Wed Jan 7 11:55:51 2015 -0600 Update entries for Jose and Chris. --- Summary of changes: team/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/team/index.html b/team/index.html index 0d41737..1a1ebd6 100755 --- a/team/index.html +++ b/team/index.html @@ -60,7 +60,7 @@ mailing list/a and start contributing to the development of Samba./p lia href=mailto:dd...@samba.org;David Disseldorp/anbsp;(a href=https://www.suse.com/;SUSE/a)/li lia href=mailto:sfre...@samba.org;Steve French/a/li lia href=mailto:pa...@samba.org;Paul Green/a/li -lia href=http://ubiqx.org/;Chris Hertel/anbsp;(a href=https://www.redhat.com/;Red Hat/a)/li +lia href=http://ubiqx.org/;Chris Hertel/a/li lia href=mailto:hhet...@samba.org;Holger Hetterich/anbsp;(a href=https://www.suse.com/;SUSE/a)/li lia href=http://people.su.se/~lha/;Love Houml;rnquist Aring;strand/a/li lia href=mailto:ami...@samba.org;Amitay Isaacs/a/li @@ -85,7 +85,7 @@ mailing list/a and start contributing to the development of Samba./p lia href=mailto:jpe...@samba.org;James Peach/a/li lia href=mailto:t...@samba.org;Tim Potter/a/li lia href=http://samba.org/~tprouty/;Tim Prouty/a/li -lia href=http://jarrpa.net;José A. Rivera/anbsp;(a href=https://www.redhat.com/;Red Hat/a)/li +lia href=mailto:jar...@samba.org;José A. Rivera/anbsp;(a href=https://www.redhat.com/;Red Hat/a)/li lia href=http://ozlabs.org/~rusty/;Rusty Russell/a/li lia href=mailto:c...@samba.org;Christof Schmitt/a/li lia href=http://samba.org/~asn/;Andreas Schneider/anbsp;(a href=https://www.redhat.com/;Red Hat/a)/li -- Samba Website Repository
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via 244c099 Add Jose to Team page. from 3d5ac67 Update SUSE team members with links to SUSE website http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit 244c099bc780c4c8856d0bb5992841f9d6d1fc5a Author: Jose A. Rivera jar...@redhat.com Date: Thu Jun 12 07:05:07 2014 -0700 Add Jose to Team page. --- Summary of changes: team/index.html |1 + 1 files changed, 1 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/team/index.html b/team/index.html index 73531ee..2d861ad 100755 --- a/team/index.html +++ b/team/index.html @@ -83,6 +83,7 @@ mailing list/a and start contributing to the development of Samba./p lia href=mailto:jpe...@samba.org;James Peach/a/li lia href=mailto:t...@samba.org;Tim Potter/a/li lia href=http://samba.org/~tprouty/;Tim Prouty/a/li +lia href=http://jarrpa.net;José A. Rivera/a/li lia href=http://ozlabs.org/~rusty/;Rusty Russell/a/li lia href=mailto:c...@samba.org;Christof Schmitt/a/li lia href=http://samba.org/~asn/;Andreas Schneider/a/li -- Samba Website Repository