summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* build: detect support for ethtoolMichael Adam2016-01-262-0/+8
| | | | | | | | Pair-Programmed-With: Anoop C S <anoopcs@redhat.com> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* lib:socket: set defaults for linkspeed and capability in get_interfaces()Michael Adam2016-01-261-0/+5
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* lib:socket: get interface index from kernelMichael Adam2016-01-261-0/+6
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* lib:socket: add linkspeed, capability and if_index to iface_structMichael Adam2016-01-261-0/+3
| | | | | | | | Pair-Programmed-With: Anoop C S <anoopcs@redhat.com> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* librpc:idl: define FSCTL_NET_IFACE_NONE_CAPABLE in ioctl.idlMichael Adam2016-01-261-0/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:lib: add braces around if-block in my_sam_name()Michael Adam2016-01-261-1/+2
| | | | | | | | | | Clean-up after moving the function. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Tue Jan 26 03:19:18 CET 2016 on sn-devel-144
* s3:lib: remove supefluous comments from map_my_name()Michael Adam2016-01-261-5/+0
| | | | | | | cleanup after moving Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3:lib: fix white spaces in my_sam_name()Michael Adam2016-01-261-6/+6
| | | | | | | Clean-up after function has been moved. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* vfs_shadow_copy2: documentation for snapsharepathUri Simchoni2016-01-261-0/+40
| | | | | Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* vfs_shadow_copy2: add tests for snapsharepathUri Simchoni2016-01-262-0/+9
| | | | | Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* vfs_shadow_copy2: add snapsharepath parameterUri Simchoni2016-01-261-1/+36
| | | | | | | | | | This new parameter defines how to get from the snapshot's root directory to the share's root directory. It is an alternative to the "basedir" parameter, but functionally is a superset of basedir. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* vfs_shadow_copy2: remove basedir state variableUri Simchoni2016-01-261-19/+10
| | | | | | | | Remove the basedir state variable from the module-specific data of vfs_shadow_copy2 - this variable is not being used. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3-parm: clean up defaults when removing global parametersAlexander Bokovoy2016-01-251-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11693 When globals are re-initialized, they are cleared and globals' talloc context is freed. However, parm_table still contains a reference to the global value in the defaults. This confuses lpcfg_string_free() after commit 795c543d858b2452f062a02846c2f908fe4cffe4 because it tries to free already freed pointer which is passed by lp_save_defaults(): .... case P_STRING: case P_USTRING: lpcfg_string_set(Globals.ctx, &parm_table[i].def.svalue, *(char **)lp_parm_ptr(NULL, &parm_table[i])); .... here &parm_table[i].def.svalue is passed to lpcfg_string_free() but it is a pointer to a value allocated with previous Globals.ctx which already was freed. This specifically affects registry backend of smb.conf in lp_load_ex() where init_globals() called explicitly to re-init globals after lp_save_defaults() if we have registry backend defined. Reviewed-by: Uri Simchoni <uri@samba.org> Signed-off-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Uri Simchoni <uri@samba.org> Autobuild-Date(master): Mon Jan 25 23:58:42 CET 2016 on sn-devel-144
* s3-client: Add a KRB5 wrapper for smbspoolAndreas Schneider2016-01-253-0/+234
| | | | | | | | | | | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11690 We need a wrapper for smbspool to be able to authenticate with Kerberos. This needs to replace the cups smb backend. The permission need to be 0700 and the owner root. Note that Kerberos support is broken in CUPS 2.1.2 maybe earlier versions. It works with 1.6.3. Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Jan 25 19:58:46 CET 2016 on sn-devel-144
* WHATSNEW: Documentation CTDB changes for v4.4Martin Schwenke2016-01-251-0/+55
| | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Signed-off-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Mon Jan 25 16:47:54 CET 2016 on sn-devel-144
* s3:utils/smbget make use of bool for flagsChristian Ambach2016-01-251-45/+48
| | | | | | | | | | convert flags stored as int to bool Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Jan 25 13:33:12 CET 2016 on sn-devel-144
* s3:utils/smbget use C99 format identifiersChristian Ambach2016-01-251-39/+29
| | | | | | | for ssize_t and off_t variables Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3:utils/smbget code formatChristian Ambach2016-01-251-173/+331
| | | | | | | | | adopt the code to latest README.Coding standards e.g. curly braces everywhere, blanks before braces, obey 80 character limit (except for the popt definitions) Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3:utils/smbget fix recursive downloadChristian Ambach2016-01-251-1/+14
| | | | | | | | | | get_auth_data is called multiple times (once for the directory listing and then for every file to be downloaded). Save the obtained values across multiple calls to make smbclient use the correct username for each download. Bug: https://bugzilla.samba.org/show_bug.cgi?id=6482 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* WHATSNEW: CTDB_NATGW_SLAVE_ONLY is no longer usedMartin Schwenke2016-01-251-0/+6
| | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Mon Jan 25 10:23:49 CET 2016 on sn-devel-144
* ctdb-tools: Drop support for setting and viewing NAT gateway capabilityMartin Schwenke2016-01-258-74/+7
| | | | | | | This is no longer used. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: No longer set the NAT gateway capabilityMartin Schwenke2016-01-253-17/+1
| | | | | | | | | | Nothing checks it anymore. This means that the NAT gateway capability in the daemon is now unused. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb/tools: Update ctdb CLI tool to call ctdb_natgwMartin Schwenke2016-01-254-181/+43
| | | | | | | | | | | | | | | | | The "natgwlist" command is no longer marked "auto all" and is also marked "without daemon". That latter is not strictly true because ctdb_natgw needs the daemon so a subsequent invocation of "ctdb nodestatus" will work. However, "without daemon" is used here because the top-level "ctdb natgwlist" does not need to open a connection to the daemon. It just needs to invoke ctdb_natgw. Update tests to suit. It would make sense to make "ctdb natgw" generally call out to ctdb_natgw, passing all argument. However, that can be done later. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-tests: Drop some unnecessary NAT gateway testsMartin Schwenke2016-01-252-73/+0
| | | | | | | | | These tests deal only with timeouts that can occur retrieving capabilities. The NAT gateway capability is going away so drop the tests now to simplify future commits. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb: Call out to ctdb_natgw helper from 11.natgwMartin Schwenke2016-01-257-86/+85
| | | | | | | | | | | | | | To keep this commit comprehensible, 11.natgw and the CTDB CLI tool are temporarily inconsistent. The tool will be made consistent in a subsequent commit. ctdb_natgw_slave_only() is reimplemented to check for the option in the appropriate line in $CTDB_NATGW_NODES. Update unit tests and documentation. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-tests: NAT gateway slave-only changesMartin Schwenke2016-01-252-53/+37
| | | | | | | | | | | | Handle the "slave-only" option in the unit test setup. Reindent function while touching it. Also drop a test that no longer makes sense. Specifying both "master" and "slave-only' is now much more obvious, since they need to be on the same line, and is now punishable by undefined behaviour. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: New function ctdb_natgw_slave_only()Martin Schwenke2016-01-251-2/+7
| | | | | | | This allows future changes to be more self-contained. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-tests: Test ctdb CLI tool via a stubMartin Schwenke2016-01-252-3/+38
| | | | | | | | | | | | | | | | | | | | Some features, such NAT gateway and LVS support, can be implemented without daemon and (internal) ctdb CLI tool support. These are non-core features that don't need incredible performance and they don't need to be in the core code. They can easily be reimplemented in scripts, along with some configuration changes. For continuity, the ctdb CLI tool code will call out to helper scripts so that the current status information can still be provided. Those helper scripts may then reinvoke the ctdb CLI tool to gather information. So, redo the tool testing using a "ctdb" stub command. This will swallow standard input and feed it to the test program each time the "ctdb" stub is called. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-tools: Add standalone ctdb_natgw tool scriptMartin Schwenke2016-01-253-0/+207
| | | | | | | | | | | | | | | This is intended to replace the use of "ctdb natgwlist" in 11.natgw and provide different views of the NAT gateway status. It replaces the use of CTDB_NATGW_SLAVE_ONLY=yes with a "slave-only" keyword in the NAT gateway nodes file. This means the nodes file must be consistent on all nodes in a NAT gateway group. Note that this script is not yet integrated, so there are no behaviour or documentation changes. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Tests for monitoring of CTDB_NATGW_PUBLIC_IFACEMartin Schwenke2016-01-254-0/+76
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Move monitoring of CTDB_NATGW_PUBLIC_IFACE to 11.natgwMartin Schwenke2016-01-252-1/+8
| | | | | | | The NAT gateway code should be self-contained. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: CTDB_PARTIALLY_ONLINE_INTERFACES incompatible with NAT gatewayMartin Schwenke2016-01-252-1/+12
| | | | | | | This has always been the case. Now it is documented and enforced. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Rename variable: fail -> down_interfaces_foundMartin Schwenke2016-01-251-3/+3
| | | | | | | Now its name describes its usage and the code reads better. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Drop functions mark_up() and mark_down()Martin Schwenke2016-01-251-16/+5
| | | | | | | | Each is now used in only one place and the logic is more obvious without them. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Move interface monitoring code to functions fileMartin Schwenke2016-01-252-91/+94
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Rename get_real_iface() -> interface_get_real()Martin Schwenke2016-01-251-2/+4
| | | | | | | Now suitably named for move to functions file. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Refactor function interface_monitor() to monitor one interfaceMartin Schwenke2016-01-253-54/+62
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* s4:torture: add SMB2 test for directory creation initial allocation sizeRalph Boehme2016-01-241-0/+64
| | | | | | | | | | | | | Test that directory creation with an initial allocation size > 0 succeeds. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11684 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Sun Jan 24 01:20:52 CET 2016 on sn-devel-144
* s3:smbd: Ignore initial allocation size for directory creationRalph Boehme2016-01-231-7/+3
| | | | | | | | | | | | We reject directory creation with an initial allocation size > 0 with NT_STATUS_ACCESS_DENIED. Windows servers ignore the initial allocation size on directories. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11684 Pair-Programmed-With: Volker Lendecke <vl@samba.org> Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:smb2_sesssetup: implement SMB3 session bind (disabled)Michael Adam2016-01-231-3/+78
| | | | | | | | | | | | | | This is disabled for now. It will be possible to enabled it via a config switch once the underpinnings are complete. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Sat Jan 23 03:22:18 CET 2016 on sn-devel-144
* s3:smb2_sesssetup: treat BINDING in smbd_smb2_session_setup_auth_returnStefan Metzmacher2016-01-231-0/+124
| | | | | | | | | | This adds smbd_smb2_bind_auth_return(), a variant of auth_return for session binding. Pair-Programmed-With: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
* s3:smb2_negprot: announce multi channel support (disabled)Michael Adam2016-01-231-0/+8
| | | | | | | | | | | This disabled for now. Will be enabled by config setting once underpinnings are ready. Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* smbXsrv: introduce bool smbXsrv_client->server_multi_channel_enabledMichael Adam2016-01-231-0/+1
| | | | | | | defaulting to false. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* build: fix ldbsearch panic on FC22Uri Simchoni2016-01-231-1/+1
| | | | | | | | | | | | | add dependency that fixes ldbsearch panic due to conflict - function read_data() is implemented both by libtspi.so.1, which is a dependency of gnutls on FC22, and by an internal samba shared lib. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Uri Simchoni <uri@samba.org> Autobuild-Date(master): Sat Jan 23 00:06:59 CET 2016 on sn-devel-144
* smbspool: Add string representation of nt_statusAndreas Schneider2016-01-221-2/+2
| | | | | | | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Jan 22 20:59:36 CET 2016 on sn-devel-144
* waf: Only build the backupkey rpc test with AD DC enabledAndreas Schneider2016-01-222-4/+8
| | | | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* tests: Only execute heimdal tests if we build with heimdalAndreas Schneider2016-01-221-8/+18
| | | | | | | | | | | This is a preparation for MIT Kerberos support in the AD server. Pair-Programmed-With: Alexander Bokovoy <ab@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Jan 22 14:13:42 CET 2016 on sn-devel-144
* tests: Rename heimdal blackbox testsAndreas Schneider2016-01-224-7/+7
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* smbstatus: add support for SMB1 signing and CIFS UNIX extensions encryptionRalph Boehme2016-01-222-0/+89
| | | | | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Fri Jan 22 11:06:05 CET 2016 on sn-devel-144
* libcli/smb: add define SMB_ENCRYPTION_GSSAPI for CIFS encryption typeRalph Boehme2016-01-221-1/+1
| | | | | | | | | | | | | | | Add a define for the CIFS UNIX extensions encryption type. We store this in smbXsrv_channel and use it in smbstatus for showing the CIFS/SMB2/SMB3 encryption cipher used. The SMB3 encryption cipher constants start at 1, carefully choosing the highest available bit for the CIFS UNIX extensions encryption cipher should avoid collisions and leaves room for many SMB3 ciphers in the future. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>