summaryrefslogtreecommitdiff
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* s3:libads: remove unused "GSSAPI" supportStefan Metzmacher2020-06-091-426/+0
| | | | | | | | | | | | | | | | All AD servers support "GSS-SPNEGO". So we better remove code that doesn't use gensec. If we ever need this back we could use the "gssapi_krb5_sasl" gensec module explicit or just pass the SASL mech list to gensec. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Isaac Boukris <iboukris@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Jun 9 17:24:31 UTC 2020 on sn-devel-184
* s3:libsmb: add a cache for cli_session_creds_prepare_krb5()Stefan Metzmacher2020-06-092-0/+22
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* pysmbd: make sure that session unix info is filledBjörn Baumbach2020-06-051-0/+15
| | | | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=14400 Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Fri Jun 5 11:54:06 UTC 2020 on sn-devel-184
* libsmb: Remove unused cli_smb2_qfileinfo_basic()Volker Lendecke2020-06-042-98/+0
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Jun 4 18:36:17 UTC 2020 on sn-devel-184
* libsmb: Use cli_qfileinfo_basic() in cli_smb2_qpathinfo2()Volker Lendecke2020-06-041-10/+11
| | | | | | | Last user of cli_smb2_qfileinfo_basic(). Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* torture3: Fix a debug messageVolker Lendecke2020-06-041-1/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Remove unused cli_smb2_getattrE()Volker Lendecke2020-06-042-52/+0
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Use cli_qfileinfo_basic() in cli_smb2_getatr()Volker Lendecke2020-06-041-7/+14
| | | | | | | | | This was the only remaining user of cli_smb2_getattrE(), and as cli_qfileinfo_basic() now does all protocols, we can get rid of cli_smb2_getattrE(). Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* pylibsmb: Use cli_qfileinfo_basic_send() in py_smb_filesize()Volker Lendecke2020-06-041-19/+7
| | | | | | | This now does all protocols asynchronously Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Make qfileinfo_basic available for smb2 in async modeVolker Lendecke2020-06-041-12/+62
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Remove unused sync version of cli_getattrE()Volker Lendecke2020-06-042-68/+0
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Remove cli_getattrE() fallback from cli_qfileinfo_basic() usersVolker Lendecke2020-06-043-32/+11
| | | | | | | cli_qfileinfo_basic() now takes care of this centrally Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Use SMBgetattrE in cli_qfileinfo_basic_send() if necessaryVolker Lendecke2020-06-041-5/+46
| | | | | | | | | | | | | | This is a behaviour change: Before this patch, independent of the actual protocol we tried to do the trans2 getinfo call. All the remaining callers just do a direct fallback to SMBgetattrE when that fails without even looking at the error code. Here we deterministically decide after the negotiated protocol which flavour to use without a fallback. It *might* be relevant for very old embedded systems that we don't know, but if we break something we can easily fix it. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* net: Align integer types, move variable closer to its useVolker Lendecke2020-06-041-2/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* net: Copy hires timestamps in net_copy_fileattr()Volker Lendecke2020-06-041-19/+28
| | | | | | | | | | | | In this routine we're using cli_ntcreate, so I would assume the hires timestamp calls to be available. My goal is to reduce the use of the second-resolution calls and potentially push their fallback use into clifile.c. Only tested manually. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* torture3: Use cli_qfileinfo_basic() in run_posix_append()Volker Lendecke2020-06-041-2/+4
| | | | | | | | Only Samba does the SMB1 posix extensions, and we do the "advanced" trans-based call. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Add async cli_qfileinfo_basicVolker Lendecke2020-06-042-51/+186
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3: client. Move to all 32-bit attributes in smbclient.Jeremy Allison2020-06-042-14/+14
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: torture: Add simple tests to samba3.base.attr to check INVALID_PARAMETER ↵Jeremy Allison2020-06-041-0/+14
| | | | | | | returned on SMB1 out-of-range attribute use. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: cli_setatr() and async version. Don't allow attribtes > 16 bits ↵Jeremy Allison2020-06-041-0/+10
| | | | | | | on an old protocol send. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: cli_unlink() and async version. Don't allow attribtes > 16 bits ↵Jeremy Allison2020-06-041-0/+10
| | | | | | | on an old protocol send. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change cli_unlink() and async version to take a uint32_t attribute.Jeremy Allison2020-06-043-5/+5
| | | | | | | Fix the callers. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change cli_setfileinfo_ext() and async version to take a ↵Jeremy Allison2020-06-043-6/+6
| | | | | | | | | uint32_t attr. Fix all callers. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change cli_setpathinfo_ext() to take 32-bit attributes.Jeremy Allison2020-06-045-8/+23
| | | | | | | | Fix the callers. Note the special casing of mapping (uint16)-1 -> (uint32_t)-1 in SMBC_setatr() where we can't change the ABI. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change cli_setatr() and async version to use 32-bit attributes.Jeremy Allison2020-06-044-6/+6
| | | | | | | Fix the callers. Only sets 16 bits on the wire for this level. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Make cli_list_trans() and cli_list take a 32-bit attribute.Jeremy Allison2020-06-042-8/+8
| | | | | | | | All sub-functions take 32-bits, and all callers now are compatible with 32-bit attributes. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Make cli_list_old() take 32-bit attribute.Jeremy Allison2020-06-042-4/+4
| | | | | | | Only uses 16 on the wire. No change needed in callers. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change cli_smb2_setatr() to use 32-bit attributes.Jeremy Allison2020-06-042-3/+3
| | | | | | | | | | The SMB_SET_FILE_BASIC_INFO info level this uses in SMB2 sets 32-bit attributes, so don't use SSVAL, use SIVAL. No change needed in callers as implicit casts work fine. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: Fix dfs-reparse testing code to use 32-bit attributes. Change variable ↵Jeremy Allison2020-06-041-8/+8
| | | | | | | names mode -> attr. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change cli_qpathinfo1() and async version to return a 32-bit ↵Jeremy Allison2020-06-043-8/+9
| | | | | | | | | attribute. Only used in torture. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change cli_qpathinfo3() to return a 32-bit attribute.Jeremy Allison2020-06-044-17/+19
| | | | | | | Fix all callers. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change cli_qpathinfo2() and async versions to return a 32-bit ↵Jeremy Allison2020-06-043-18/+19
| | | | | | | | | attribute. Fix all callers. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change cli_getatr() and async versions to return a 32-bit attribute.Jeremy Allison2020-06-045-21/+15
| | | | | | | Fix all callers. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Rename uint16_t attr -> sattr (short attributes).Jeremy Allison2020-06-041-5/+5
| | | | | | | This will make it easier to add 32-bit attr value later. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change cli_getattrE() and async versions to return a 32-bit ↵Jeremy Allison2020-06-045-22/+10
| | | | | | | | | attribute. Fix all callers. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change cli_qfileinfo_basic() to return 32-bit attributes.Jeremy Allison2020-06-044-16/+12
| | | | | | | Fix all callers. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change cli_smb2_qpathinfo2() to return a 32 bit attribute.Jeremy Allison2020-06-043-16/+16
| | | | | | | Fix all callers. All libsmb SMB2 calls now return 32 bit attributes. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Fix cli_smb2_getatr() to return a 32 bit attribute.Jeremy Allison2020-06-043-10/+13
| | | | | | | Fix all callers. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change cli_smb2_getattrE() to return 32 bit attributes.Jeremy Allison2020-06-043-10/+19
| | | | | | | Fix all callers. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change cli_smb2_qfileinfo_basic() and all users to return a ↵Jeremy Allison2020-06-043-8/+26
| | | | | | | uint32_t attribute. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: smbclient: Rename mode parameter to attr.Jeremy Allison2020-06-041-19/+19
| | | | | | | This is a DOS attribute, not a UNIX mode. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: clifile.c: Rename all uint16_t *attr parameters to uint16_t *pattr.Jeremy Allison2020-06-042-16/+16
| | | | | | | | | Will make it easier to move to 32 bit attributes later. No logic changes, just a rename. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: clirap. Rename all mode/ *mode parameters to attr and pattr.Jeremy Allison2020-06-042-41/+41
| | | | | | | | | They are attributes, not unix modes. Once they have the right name, we can start moving all uses to uint32_t. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: cli_smb2_qfileinfo_basic()/cli_smb2_qpathinfo2(). Rename a ↵Jeremy Allison2020-06-042-13/+13
| | | | | | | | | | | | | parameter from mode -> pattr. Also rename attr pointers to pattr. They are pointers to attributes. Only parameter name changes, no logic changes. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Change size of finfo->attr to uint32_t.Jeremy Allison2020-06-043-7/+5
| | | | | | | That's what modern servers return. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: SMBC_chmod_ctx(), rename mode -> attr when setting attributes.Jeremy Allison2020-06-041-7/+7
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Internally rename to use the name attr instead of mode for ↵Jeremy Allison2020-06-041-11/+11
| | | | | | | attributes. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: Internally rename to use the name attr instead of mode for ↵Jeremy Allison2020-06-041-11/+11
| | | | | | | attributes. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: libsmb: In struct file_info rename mode -> attr.Jeremy Allison2020-06-0410-33/+33
| | | | | | | | Cleanup. It's never been a UNIX mode, always a DOS attribute field. Make that explicit. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: VFS: default. Ensure read_dfs_pathat() returns stat info.Jeremy Allison2020-06-031-0/+14
| | | | | | | | | | | | | | Remove the knownfail.d/msdfs-attr file. Everything now passes. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14391 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Wed Jun 3 06:19:21 UTC 2020 on sn-devel-184