306ec135c8
code style
2021-11-02 16:59:22 +01:00
93b1f14b5d
code style
2021-11-01 16:28:18 +01:00
C1-10P
e8df1df9a2
add class KerberosApacheAuth and example code
2021-11-01 16:27:26 +01:00
C1-10P
aa542ff141
Update NativeState.php
...
sync garbage collection cycle of KerberosAuth and NativeState
2021-11-01 16:26:30 +01:00
C1-10P
c0ae9aa35f
Update KerberosAuth.php
...
enable reuse of apache ticket cache
2021-11-01 16:25:51 +01:00
Grant Millar
6066f7ed66
Remove redundant cast to bool
2021-10-28 18:34:42 +02:00
Grant Millar
5291cf842d
Fix mistaking socket files for directories
...
According to https://www.php.net/manual/en/function.stat.php sockets 1100000000000000 and directories 0100000000000000 share a bit (0x4000), we just make sure that the extra socket bit (0x8000) is not set when deciding if it's a directory or not.
2021-10-28 18:34:42 +02:00
cce108848c
psalm fixes
2021-10-27 15:30:54 +02:00
9dba42ab2a
fix new psalm issues
2021-04-19 15:53:08 +02:00
Daniel Nachtrub
08c0fefe25
Fix incorrect read from StringBuffer with starting offset > 0
2021-04-18 19:59:59 +02:00
b5c6921f2e
minor type improvements
2021-03-10 15:00:37 +01:00
144439d61f
minor native stream cleanup
2021-03-10 14:53:17 +01:00
037efdcfb5
fix recursion
2021-03-09 21:13:12 +01:00
9b1c0eff3d
fix listShares error handling
2021-03-09 20:25:39 +01:00
84fa890ea7
all the types
2021-03-09 20:18:25 +01:00
515b42586e
type fixes
2021-03-09 18:21:40 +01:00
1e7e500b64
workgroup can be null
2021-03-09 18:16:44 +01:00
7cb4e41f8a
type fixes
2021-03-09 18:10:27 +01:00
e9f6d00a93
more type hints
2021-03-09 18:01:42 +01:00
767f6b3f6f
use write_time instead of change_time when using libsmbclient
...
this better matches the behavior of the smbclient backend and the previous libsmbclient behavior
2021-03-09 17:19:28 +01:00
b623cc1d7f
fix handling of 'Everyone' acl when using native backend
2021-03-05 16:13:37 +01:00
91d173cc55
add basic testing for acl parsing
2021-03-05 15:56:51 +01:00
0d9341c527
use a string based buffer for Read/Write streams
2021-03-05 15:36:18 +01:00
61012e6196
allow setting protocol levels
2021-03-02 21:28:46 +01:00
b69c20d21a
type fixes
2021-03-02 20:56:24 +01:00
0e69997579
type hint fixes
2021-03-02 19:17:37 +01:00
26ec766638
improve error handling
2021-03-02 19:06:04 +01:00
80a4edf0ef
github ci
2021-03-02 18:56:40 +01:00
Roeland Jago Douma
e1d2a71d5f
Update NativeFileInfo.php
...
We should return the actual bitmasked mode
2020-09-03 11:11:25 +02:00
Roeland Jago Douma
3dff9193a3
Ignore ATTR_NOT_CONTENT_INDEXED
...
See: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb/65e0c225-5925-44b0-8104-6b91339c709f
I'm not sure if this runs into other issues. But I ran into several servers that have 0x2000 set. (so don't index) but still just use the normal directory modes etc (0x10) instead of (0x4000)
2020-07-20 14:56:19 +02:00
24db40c674
improve mode mask detection
2020-06-29 13:37:17 +02:00
80921d69f5
dont error when working with empty file names
2020-05-27 15:56:04 +02:00
ed09f6c0b7
Add IShare::getServer
...
Fixes #91
2020-05-15 17:28:48 +02:00
cb9c9c602d
properly handle libsmbclient versions that return unix modes when we request a dos mode
2020-05-11 15:31:11 +02:00
927e330901
properly handle libsmbclient versions that return unix modes when we request a dos mode
2020-05-11 15:29:24 +02:00
db50bb51bd
add proper paths to exceptions during stream close and write
2020-04-08 17:20:22 +02:00
b2a62743cf
handle exceptions during stream close
2020-04-07 18:18:11 +02:00
b48dfc0927
add network reset error, fix connection reset
2020-04-03 17:03:38 +02:00
5330edcc57
remove unused method
2020-03-24 19:19:18 +01:00
4411326dde
ignore any errors while trying to send the close command, the process might already be dead
2020-03-24 19:13:02 +01:00
b594f7c408
use system.dos_attr.* for both mode and stat info
...
this enables getting all the info needed for the FileInfo in a single request, instead of requiring two
2020-03-24 16:29:44 +01:00
63319ec68b
fix mode parsing for php 7.4
2020-02-10 16:22:31 +01:00
9fb1753828
remove debug
2020-02-10 16:17:30 +01:00
444cc1cdfb
Revert "Use stat to fetch mode"
...
This reverts commit 26ba16309d .
2020-02-10 16:14:55 +01:00
3c5e45dc54
allow getting acls of files
2020-02-10 15:52:48 +01:00
Julius Härtl
acd992ad8c
Add error exception for ECONNRESET
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-01-08 12:59:37 +01:00
Julius Härtl
26ba16309d
Use stat to fetch mode
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-01-08 12:58:38 +01:00
065daa49cb
remove outdated readme
2019-10-18 16:10:29 +02:00
Bram Van der Sype
c67e9b9222
Only open target if source can be opened
...
This prevents empty files from being created if a remote file can't be opened.
2019-08-08 11:12:37 +02:00
raffis
f3e9e1e57a
if resource is opened with "a" append() will fail with code (6)
2019-03-28 14:46:25 +01:00