amitay/samba.git
4 years agos3: smbd: Change smb_set_file_unix_link() to call SMB_VFS_SYMLINKAT().
Jeremy Allison [Fri, 30 Aug 2019 21:13:21 +0000 (14:13 -0700)]
s3: smbd: Change smb_set_file_unix_link() to call SMB_VFS_SYMLINKAT().

Use conn->cwd_fsp as current fsp.

No logic change for now.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: torture: Change cmd_symlink to call SMB_VFS_SYMLINKAT().
Jeremy Allison [Fri, 30 Aug 2019 21:10:47 +0000 (14:10 -0700)]
s3: torture: Change cmd_symlink to call SMB_VFS_SYMLINKAT().

Use conn->cwd_fsp as current fsp.

No logic change for now.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: VFS: vfs_unityed_media. Implement symlinkat().
Jeremy Allison [Fri, 30 Aug 2019 21:02:53 +0000 (14:02 -0700)]
s3: VFS: vfs_unityed_media. Implement symlinkat().

Currently identical to symlink().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: VFS: vfs_time_audit. Implement symlinkat().
Jeremy Allison [Fri, 30 Aug 2019 21:01:33 +0000 (14:01 -0700)]
s3: VFS: vfs_time_audit. Implement symlinkat().

Currently identical to symlink().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: VFS: vfs_syncops. Implement symlinkat().
Jeremy Allison [Fri, 30 Aug 2019 21:00:12 +0000 (14:00 -0700)]
s3: VFS: vfs_syncops. Implement symlinkat().

Currently identical to symlink().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: VFS: vfs_snapper. Implement symlinkat().
Jeremy Allison [Fri, 30 Aug 2019 20:54:52 +0000 (13:54 -0700)]
s3: VFS: vfs_snapper. Implement symlinkat().

Currently identical to symlink().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: VFS: vfs_shadow_copy2. Implement symlinkat().
Jeremy Allison [Fri, 30 Aug 2019 20:53:23 +0000 (13:53 -0700)]
s3: VFS: vfs_shadow_copy2. Implement symlinkat().

Currently identical to symlink().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: VFS: vfs_media_harmony. Implement symlinkat().
Jeremy Allison [Fri, 30 Aug 2019 20:51:50 +0000 (13:51 -0700)]
s3: VFS: vfs_media_harmony. Implement symlinkat().

Currently identical to symlink().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: VFS: vfs_glusterfs. Implement symlinkat().
Jeremy Allison [Fri, 30 Aug 2019 20:49:57 +0000 (13:49 -0700)]
s3: VFS: vfs_glusterfs. Implement symlinkat().

Currently identical to symlink().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: VFS: vfs_full_audit. Implement symlinkat().
Jeremy Allison [Fri, 30 Aug 2019 20:48:03 +0000 (13:48 -0700)]
s3: VFS: vfs_full_audit. Implement symlinkat().

Currently identical to symlink().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: VFS: vfs_ceph_snapshots. Implement symlinkat().
Jeremy Allison [Fri, 30 Aug 2019 20:16:01 +0000 (13:16 -0700)]
s3: VFS: vfs_ceph_snapshots. Implement symlinkat().

Currently identical to symlink().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: VFS: vfs_ceph. Implement symlinkat().
Jeremy Allison [Fri, 30 Aug 2019 20:13:51 +0000 (13:13 -0700)]
s3: VFS: vfs_ceph. Implement symlinkat().

Currently identical to symlink().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: VFS: vfs_cap. Implement symlinkat().
Jeremy Allison [Fri, 30 Aug 2019 19:54:23 +0000 (12:54 -0700)]
s3: VFS: vfs_cap. Implement symlinkat().

Currently identical to symlink().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: VFS: Add SMB_VFS_SYMLINKAT().
Jeremy Allison [Fri, 30 Aug 2019 19:01:13 +0000 (12:01 -0700)]
s3: VFS: Add SMB_VFS_SYMLINKAT().

Currently identical to SMB_VFS_SYMLINK().

Next, add to all VFS modules that implement
symlink and eventually remove symlink.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3/4: libsmbclient test. Test using smbc_telldir/smbc_lseekdir with smbc_readdir...
Jeremy Allison [Mon, 26 Aug 2019 18:22:35 +0000 (11:22 -0700)]
s3/4: libsmbclient test. Test using smbc_telldir/smbc_lseekdir with smbc_readdir/smbc_readdirplus/smbc_getdents.

Ensure that for file access you can mix any of these
three access methods for directory entries and the
returned names/structs stay in sync across telldir/seekdir
changes.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Sep  3 17:31:29 UTC 2019 on sn-devel-184

4 years agos3: libsmbclient: Fix smbc_lseekdir() to work with smbc_readdirplus().
Jeremy Allison [Mon, 26 Aug 2019 17:18:28 +0000 (10:18 -0700)]
s3: libsmbclient: Fix smbc_lseekdir() to work with smbc_readdirplus().

If returning files the dir_list and the dirplus_list have exactly the same
entries, we just need to keep the next pointers in sync on seek.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: libsmbclient: Ensure SMBC_getdents_ctx() also updates the readdirplus pointers.
Jeremy Allison [Mon, 26 Aug 2019 17:07:32 +0000 (10:07 -0700)]
s3: libsmbclient: Ensure SMBC_getdents_ctx() also updates the readdirplus pointers.

If we are returning file entries, we
have a duplicate list in dirplus.

Update dirplus_next also so readdir and
readdirplus are kept in sync.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: libsmbclient: Ensure SMBC_readdirplus_ctx() also updates the readdir pointers.
Jeremy Allison [Mon, 26 Aug 2019 17:02:47 +0000 (10:02 -0700)]
s3: libsmbclient: Ensure SMBC_readdirplus_ctx() also updates the readdir pointers.

If we are returning file entries, we
have a duplicate list in dir_list.

Update dir_next also so readdir and
readdirplus are kept in sync.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agos3: libsmbclient: Ensure SMBC_readdir_ctx() also updates the readdirplus pointers.
Jeremy Allison [Mon, 26 Aug 2019 16:54:06 +0000 (09:54 -0700)]
s3: libsmbclient: Ensure SMBC_readdir_ctx() also updates the readdirplus pointers.

If we are returning file entries, we
have a duplicate list in dirplus.

Update dirplus_next also so readdir and
readdirplus are kept in sync.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
4 years agoCVE-2019-10197: smbd: split change_to_user_impersonate() out of change_to_user_internal()
Stefan Metzmacher [Thu, 11 Jul 2019 15:02:15 +0000 (17:02 +0200)]
CVE-2019-10197: smbd: split change_to_user_impersonate() out of change_to_user_internal()

This makes sure we always call chdir_current_service() even
when we still impersonated the user. Which is important
in order to run the SMB* request within the correct working directory
and only if the user has permissions to enter that directory.

It makes sure we always update conn->lastused_count
in chdir_current_service() for each request.

Note that vfs_ChDir() (called from chdir_current_service())
maintains its own cache and avoids calling SMB_VFS_CHDIR()
if possible.

It means we still avoid syscalls if we get a multiple requests
for the same session/tcon tuple.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(master): Tue Sep  3 09:27:22 UTC 2019 on sn-devel-184

4 years agoCVE-2019-10197: test_smbclient_s3.sh: add regression test for the no permission on...
Stefan Metzmacher [Tue, 16 Jul 2019 13:40:38 +0000 (15:40 +0200)]
CVE-2019-10197: test_smbclient_s3.sh: add regression test for the no permission on share root problem

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
4 years agoCVE-2019-10197: selftest: make fsrvp_share its own independent subdirectory
Stefan Metzmacher [Tue, 30 Jul 2019 15:16:59 +0000 (17:16 +0200)]
CVE-2019-10197: selftest: make fsrvp_share its own independent subdirectory

The next patch will otherwise break the fsrvp related tests.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
4 years agoCVE-2019-10197: smbd: make sure we reset current_user.{need,done}_chdir in become_root()
Stefan Metzmacher [Tue, 18 Jun 2019 12:04:08 +0000 (14:04 +0200)]
CVE-2019-10197: smbd: make sure we reset current_user.{need,done}_chdir in become_root()

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
4 years agoCVE-2019-10197: smbd: make sure that change_to_user_internal() always resets current_...
Stefan Metzmacher [Thu, 11 Jul 2019 15:01:29 +0000 (17:01 +0200)]
CVE-2019-10197: smbd: make sure that change_to_user_internal() always resets current_user.done_chdir

We should not leave current_user.done_chdir as true if we didn't call
chdir_current_service() with success.

This caused problems in when calling vfs_ChDir() in pop_conn_ctx() when
chdir_current_service() worked once on one share but later failed on another
share.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoCVE-2019-10197: smbd: separate out impersonation debug info into a new function.
Jeremy Allison [Fri, 12 Jul 2019 19:10:35 +0000 (12:10 -0700)]
CVE-2019-10197: smbd: separate out impersonation debug info into a new function.

Will be called on elsewhere on successful impersonation.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
4 years agobuild: remove unneeded libceph-common dependency
Björn Baumbach [Thu, 13 Jun 2019 15:20:02 +0000 (17:20 +0200)]
build: remove unneeded libceph-common dependency

librados and libcephfs are both dependent on ceph-common, but
ctdb_mutex_ceph_rados_helper and vfs_ceph needn't be explicitly linked
against it.

Signed-off-by: Björn Baumbach <bb@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Sep  2 03:44:24 UTC 2019 on sn-devel-184

4 years agobuild: drop --with-libcephfs=<path> support
David Disseldorp [Tue, 18 Jun 2019 12:35:02 +0000 (14:35 +0200)]
build: drop --with-libcephfs=<path> support

--with-libcephfs=<path> provides a mechanism for explicitly specifying
header and library paths for Ceph. This adds unnecessary complexity and
can be achieved using generic compiler environment variables (e.g.
GCC LIBRARY_PATH and C_INCLUDE_PATH), so drop --with-libcephfs support.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
4 years agobuild: Raise minimum python version to 3.5.0 for Samba 4.12
Andrew Bartlett [Mon, 26 Aug 2019 02:36:49 +0000 (14:36 +1200)]
build: Raise minimum python version to 3.5.0 for Samba 4.12

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Sep  2 01:14:05 UTC 2019 on sn-devel-184

4 years agodsdb: Remove unused local_password module
Andrew Bartlett [Fri, 30 Aug 2019 10:12:03 +0000 (22:12 +1200)]
dsdb: Remove unused local_password module

This was an idea about how Samba might have worked if passwords were
not safe to be stored in a remote DB (get some kind of LDAP backend).

Nothing ever used this, but it was a nice idea.  But git master is not
the place to preserve history, even interesting ideas like splitting
passwords from the non-password data (possible because, in the same way
we are allowed to encrypt them, we do not allow a search on password
values).

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
4 years agodsdb: Remove unused simple_dn module
Andrew Bartlett [Fri, 30 Aug 2019 10:05:37 +0000 (22:05 +1200)]
dsdb: Remove unused simple_dn module

This became unused with 2b0fc74a0916a6ab0d5ac007cc5e100d4682b2ea that
removed the last of the support for the LDAP Backend

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
4 years agoutil: Remove unused NS_GUID_string() and NS_GUID_from_string()
Andrew Bartlett [Fri, 30 Aug 2019 08:38:01 +0000 (20:38 +1200)]
util: Remove unused NS_GUID_string() and NS_GUID_from_string()

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14063
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
4 years agodsdb: Remove unused entryuuid and nsuniqueid modules
Andrew Bartlett [Fri, 30 Aug 2019 08:44:57 +0000 (20:44 +1200)]
dsdb: Remove unused entryuuid and nsuniqueid modules

These were for the now removed OpenLDAP backend.  Any future work in this area will
not involve this kind of translation, it will be done much more cleanly.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
4 years agoSpelling fixes s/ querys / queries /
Mathieu Parent [Thu, 29 Aug 2019 20:44:54 +0000 (22:44 +0200)]
Spelling fixes s/ querys / queries /

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sun Sep  1 23:38:14 UTC 2019 on sn-devel-184

4 years agoSpelling fixes s/varaible/variable/
Mathieu Parent [Thu, 29 Aug 2019 20:43:03 +0000 (22:43 +0200)]
Spelling fixes s/varaible/variable/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/hightest/highest/
Mathieu Parent [Thu, 29 Aug 2019 20:42:54 +0000 (22:42 +0200)]
Spelling fixes s/hightest/highest/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/permited/permitted/
Mathieu Parent [Thu, 29 Aug 2019 20:42:36 +0000 (22:42 +0200)]
Spelling fixes s/permited/permitted/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/accomodations/accommodations/
Mathieu Parent [Thu, 29 Aug 2019 20:42:19 +0000 (22:42 +0200)]
Spelling fixes s/accomodations/accommodations/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/intergration/integration/
Mathieu Parent [Thu, 29 Aug 2019 20:41:59 +0000 (22:41 +0200)]
Spelling fixes s/intergration/integration/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/preceeding/preceding/
Mathieu Parent [Thu, 29 Aug 2019 20:39:39 +0000 (22:39 +0200)]
Spelling fixes s/preceeding/preceding/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/valuie/value/
Mathieu Parent [Thu, 29 Aug 2019 20:39:20 +0000 (22:39 +0200)]
Spelling fixes s/valuie/value/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/withing/within/
Mathieu Parent [Thu, 29 Aug 2019 20:39:12 +0000 (22:39 +0200)]
Spelling fixes s/withing/within/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/suceeded/succeeded/
Mathieu Parent [Thu, 29 Aug 2019 20:38:52 +0000 (22:38 +0200)]
Spelling fixes s/suceeded/succeeded/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/whitch/which/
Mathieu Parent [Thu, 29 Aug 2019 20:37:54 +0000 (22:37 +0200)]
Spelling fixes s/whitch/which/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/touble/trouble/
Mathieu Parent [Thu, 29 Aug 2019 20:37:10 +0000 (22:37 +0200)]
Spelling fixes s/touble/trouble/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/implentation/implementation/
Mathieu Parent [Thu, 29 Aug 2019 20:37:02 +0000 (22:37 +0200)]
Spelling fixes s/implentation/implementation/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/staticly/statically/
Mathieu Parent [Thu, 29 Aug 2019 20:36:54 +0000 (22:36 +0200)]
Spelling fixes s/staticly/statically/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/ingnored/ignored/
Mathieu Parent [Thu, 29 Aug 2019 20:36:47 +0000 (22:36 +0200)]
Spelling fixes s/ingnored/ignored/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/compatability/compatibility/
Mathieu Parent [Thu, 29 Aug 2019 20:36:40 +0000 (22:36 +0200)]
Spelling fixes s/compatability/compatibility/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/priveliges/privileges/
Mathieu Parent [Thu, 29 Aug 2019 20:34:49 +0000 (22:34 +0200)]
Spelling fixes s/priveliges/privileges/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/retreiving/retrieving/
Mathieu Parent [Thu, 29 Aug 2019 20:34:38 +0000 (22:34 +0200)]
Spelling fixes s/retreiving/retrieving/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/concatonated/concatenated/
Mathieu Parent [Thu, 29 Aug 2019 20:33:05 +0000 (22:33 +0200)]
Spelling fixes s/concatonated/concatenated/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/rebuilded/rebuilt/
Mathieu Parent [Thu, 29 Aug 2019 20:33:04 +0000 (22:33 +0200)]
Spelling fixes s/rebuilded/rebuilt/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/accidentially/accidentally/
Mathieu Parent [Thu, 29 Aug 2019 20:33:04 +0000 (22:33 +0200)]
Spelling fixes s/accidentially/accidentally/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/substitue/substitute/
Mathieu Parent [Thu, 29 Aug 2019 20:33:04 +0000 (22:33 +0200)]
Spelling fixes s/substitue/substitute/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/simliar/similar/
Mathieu Parent [Thu, 29 Aug 2019 20:32:23 +0000 (22:32 +0200)]
Spelling fixes s/simliar/similar/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/explizitly/explicitly/
Mathieu Parent [Thu, 29 Aug 2019 20:32:05 +0000 (22:32 +0200)]
Spelling fixes s/explizitly/explicitly/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/filesytems/filesystems/
Mathieu Parent [Thu, 29 Aug 2019 20:31:41 +0000 (22:31 +0200)]
Spelling fixes s/filesytems/filesystems/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/directores/directories/
Mathieu Parent [Thu, 29 Aug 2019 20:31:25 +0000 (22:31 +0200)]
Spelling fixes s/directores/directories/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/ dont / don't /
Mathieu Parent [Thu, 29 Aug 2019 20:20:11 +0000 (22:20 +0200)]
Spelling fixes s/ dont / don't /

Excluding examples/tridge/smb.conf

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/ upto / up to /
Mathieu Parent [Thu, 29 Aug 2019 20:19:42 +0000 (22:19 +0200)]
Spelling fixes s/ upto / up to /

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/ ot / to /
Mathieu Parent [Thu, 29 Aug 2019 20:19:03 +0000 (22:19 +0200)]
Spelling fixes s/ ot / to /

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/noone/no one/
Mathieu Parent [Thu, 29 Aug 2019 20:05:05 +0000 (22:05 +0200)]
Spelling fixes s/noone/no one/

Skipping source4/torture/winbind/struct_based.c

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/recieved/received/
Mathieu Parent [Thu, 29 Aug 2019 20:02:13 +0000 (22:02 +0200)]
Spelling fixes s/recieved/received/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/explicite /explicit /
Mathieu Parent [Thu, 29 Aug 2019 20:01:54 +0000 (22:01 +0200)]
Spelling fixes s/explicite /explicit /

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/wont /won't /
Mathieu Parent [Thu, 29 Aug 2019 19:58:50 +0000 (21:58 +0200)]
Spelling fixes s/wont /won't /

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/didnt'/didn't/
Mathieu Parent [Thu, 29 Aug 2019 19:58:27 +0000 (21:58 +0200)]
Spelling fixes s/didnt'/didn't/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/overriden/overridden/
Mathieu Parent [Thu, 29 Aug 2019 19:54:14 +0000 (21:54 +0200)]
Spelling fixes s/overriden/overridden/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/optinally/optionally/
Mathieu Parent [Thu, 29 Aug 2019 19:53:43 +0000 (21:53 +0200)]
Spelling fixes s/optinally/optionally/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/componet/component/
Mathieu Parent [Thu, 29 Aug 2019 19:53:35 +0000 (21:53 +0200)]
Spelling fixes s/componet/component/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/nonexistant/nonexistent/
Mathieu Parent [Thu, 29 Aug 2019 19:53:27 +0000 (21:53 +0200)]
Spelling fixes s/nonexistant/nonexistent/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/avaiable/available/
Mathieu Parent [Thu, 29 Aug 2019 19:53:18 +0000 (21:53 +0200)]
Spelling fixes s/avaiable/available/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/DISLPAY/DISPLAY/
Mathieu Parent [Thu, 29 Aug 2019 19:52:56 +0000 (21:52 +0200)]
Spelling fixes s/DISLPAY/DISPLAY/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/serivce/service/
Mathieu Parent [Thu, 29 Aug 2019 19:52:33 +0000 (21:52 +0200)]
Spelling fixes s/serivce/service/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/BUITIN/BUILTIN/
Mathieu Parent [Thu, 29 Aug 2019 19:52:21 +0000 (21:52 +0200)]
Spelling fixes s/BUITIN/BUILTIN/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/emtpy/empty/
Mathieu Parent [Thu, 29 Aug 2019 19:52:10 +0000 (21:52 +0200)]
Spelling fixes s/emtpy/empty/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/Therefor /Therefore /
Mathieu Parent [Thu, 29 Aug 2019 19:51:56 +0000 (21:51 +0200)]
Spelling fixes s/Therefor /Therefore /

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/exisiting/existing/
Mathieu Parent [Thu, 29 Aug 2019 19:50:56 +0000 (21:50 +0200)]
Spelling fixes s/exisiting/existing/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/hierachy/hierarchy/
Mathieu Parent [Thu, 29 Aug 2019 19:50:45 +0000 (21:50 +0200)]
Spelling fixes s/hierachy/hierarchy/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/setted/set/
Mathieu Parent [Thu, 29 Aug 2019 19:50:35 +0000 (21:50 +0200)]
Spelling fixes s/setted/set/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/encrpted/encrypted/
Mathieu Parent [Thu, 29 Aug 2019 19:50:24 +0000 (21:50 +0200)]
Spelling fixes s/encrpted/encrypted/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/succedded/succeeded/
Mathieu Parent [Thu, 29 Aug 2019 19:34:10 +0000 (21:34 +0200)]
Spelling fixes s/succedded/succeeded/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/Mirgate/Migrate/
Mathieu Parent [Thu, 29 Aug 2019 19:33:56 +0000 (21:33 +0200)]
Spelling fixes s/Mirgate/Migrate/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/exising/existing/
Mathieu Parent [Thu, 29 Aug 2019 19:32:30 +0000 (21:32 +0200)]
Spelling fixes s/exising/existing/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/convertion/conversion/
Mathieu Parent [Thu, 29 Aug 2019 19:31:07 +0000 (21:31 +0200)]
Spelling fixes s/convertion/conversion/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/autentication/authentication/
Mathieu Parent [Thu, 29 Aug 2019 19:30:48 +0000 (21:30 +0200)]
Spelling fixes s/autentication/authentication/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/integrety/integrity/
Mathieu Parent [Thu, 29 Aug 2019 19:30:07 +0000 (21:30 +0200)]
Spelling fixes s/integrety/integrity/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/Unsuported/Unsupported/
Mathieu Parent [Thu, 29 Aug 2019 19:29:58 +0000 (21:29 +0200)]
Spelling fixes s/Unsuported/Unsupported/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/sepcific/specific/
Mathieu Parent [Thu, 29 Aug 2019 19:29:47 +0000 (21:29 +0200)]
Spelling fixes s/sepcific/specific/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/negotatie/negotiate/
Mathieu Parent [Thu, 29 Aug 2019 19:29:40 +0000 (21:29 +0200)]
Spelling fixes s/negotatie/negotiate/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/advertisment/advertisement/
Mathieu Parent [Thu, 29 Aug 2019 19:29:03 +0000 (21:29 +0200)]
Spelling fixes s/advertisment/advertisement/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/tempates/templates/
Mathieu Parent [Thu, 29 Aug 2019 19:28:41 +0000 (21:28 +0200)]
Spelling fixes s/tempates/templates/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/depencies/dependencies/
Mathieu Parent [Thu, 29 Aug 2019 19:11:18 +0000 (21:11 +0200)]
Spelling fixes s/depencies/dependencies/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agoSpelling fixes s/containter/container/
Mathieu Parent [Thu, 29 Aug 2019 19:34:23 +0000 (21:34 +0200)]
Spelling fixes s/containter/container/

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
4 years agodsdb: Remove OpenLDAP backend complexity from samba_dsdb module
Andrew Bartlett [Mon, 11 Mar 2019 22:46:42 +0000 (11:46 +1300)]
dsdb: Remove OpenLDAP backend complexity from samba_dsdb module

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Aug 30 09:50:25 UTC 2019 on sn-devel-184

4 years agodsdb: Remove OpenLDAP backend complexity from partitions module
Andrew Bartlett [Mon, 11 Mar 2019 22:46:28 +0000 (11:46 +1300)]
dsdb: Remove OpenLDAP backend complexity from partitions module

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
4 years agodsdb: Remove LDAP backend specific modules from extended_dn_out
Andrew Bartlett [Mon, 11 Mar 2019 22:43:15 +0000 (11:43 +1300)]
dsdb: Remove LDAP backend specific modules from extended_dn_out

This simplifies the code considerably.  A real attempt at an LDAP backend would need to implement this
module in a similar way to LDB.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
4 years agosamba-tool domain provision: Remove experimental OpenLDAP support
Andrew Bartlett [Mon, 11 Mar 2019 21:52:24 +0000 (10:52 +1300)]
samba-tool domain provision: Remove experimental OpenLDAP support

This feature has long been obsolete, remaining only in the hope
that it might be revived in the future.

Specifically, in 2011 the S4 OpenLDAP backend HOWTO was removed:

 commit 1d46325af8541ea467c79cd86e65f93ce6a14ff4
 Author: Andrew Bartlett <abartlet@samba.org>
 Date:   Wed Apr 27 22:42:29 2011 +1000

     Remove outdated S4 OpenLDAP backend HOWTO.

There is a project to revive this, hosted here:

https://github.com/Symas/samba
and
https://github.com/Symas/samba_overlays

However discussions at SambaXP with Nadezhda Ivanova
indicate a new approach with slapd being started by Samba
and taught to read native Samba ldb files is more likely
in the short term.

This has the advantage that Samba's provision and offline
tooling would not need to change, with the solution looking
more like how BIND9_DLZ has access to the Samba DB.

If any of this is required then reverting these patches will be
the least of the difficulties in bringing this to production.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
4 years agosefltest: Remove tests for obsolete OpenLDAP backend
Andrew Bartlett [Mon, 11 Mar 2019 22:49:01 +0000 (11:49 +1300)]
sefltest: Remove tests for obsolete OpenLDAP backend

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
4 years agoselftest: Remove obsolete LDAP backend hooks from selftest.pl et al
Andrew Bartlett [Mon, 11 Mar 2019 22:41:12 +0000 (11:41 +1300)]
selftest: Remove obsolete LDAP backend hooks from selftest.pl et al

This removes some quite complex logic that has not been used since the LDAP
backend project was shelved prior to 2011.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
4 years agopaged results: tests without server_sort ctrl
Aaron Haslett [Thu, 28 Feb 2019 22:04:05 +0000 (11:04 +1300)]
paged results: tests without server_sort ctrl

On windows, adding or modifying a record during a paged results search
behaves differently depending on whether or not you supply server_sort
control.  This patch adds tests and documentation.

Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Aug 30 08:26:21 UTC 2019 on sn-devel-184