6fe667eaca
phpstan fixes
2025-10-25 22:14:30 +02:00
8101154ac3
psalm fixes
2025-10-25 20:59:22 +02:00
edc9703e6b
add final to classes
2025-10-25 20:59:22 +02:00
Robin Appelman
bf27345a53
Merge pull request 'src/Native/NativeState.php aktualisiert' ( #137 ) from b3roch/SMB:b3roch-patch-encrypt-stat into master
...
Reviewed-on: https://codeberg.org/icewind/SMB/pulls/137
2025-10-25 20:28:07 +02:00
4a93467905
psalm fixes
2025-10-25 01:41:15 +02:00
dae8dea06c
code style
2025-10-25 01:41:15 +02:00
b3roch
ca8d49e323
src/Native/NativeState.php aktualisiert
...
Fixed problem if you use encrypted SMB connections.
This fix is related to https://github.com/eduardok/libsmbclient-php/issues/101
We use this fix since 2023-06-26 in our nextcloud instance.
Signed-off-by: b3roch <b3roch@noreply.codeberg.org>
2025-10-23 13:13:17 +02:00
Matthias Kühne
42627c6bb8
Add "?" to nullable parameters in functions
2025-05-02 13:38:01 +02:00
6f5b94d7fe
include the invalid path in error message
2025-03-13 16:43:35 +01:00
Joas Schilling
8a6c8cd17c
feat: Add PHP 8.4 support
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-11-08 12:06:31 +01:00
Andrea Ruggiero
a4fb6b5172
Reset pointer to the beginning of authentication file
2024-10-10 21:59:17 +02:00
15479bda21
Merge pull request #122 from come-nc/patch-1
...
Use elseif, not else if
2024-06-20 14:11:11 +02:00
Andy Scherzinger
8acffcd855
chore: Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-02 20:28:14 +02:00
Fabian Heinrich
75bafe81c1
Update IShare.php
2024-04-07 17:33:09 +02:00
89082b2b29
use stat instead of attributes
2023-10-19 17:20:07 +02:00
9d57f5aad9
fixes
2023-08-10 15:10:24 +02:00
abfd1eb360
allow unsetting kerb ticket
2023-08-10 14:37:56 +02:00
a103d9d79e
allow saving/loading of kerberos tickets
2023-08-09 15:47:30 +02:00
Côme Chilliet
72e369f743
Use elseif, not else if
...
Small fix
2022-12-20 10:31:20 +01:00
76995aa11c
set timezone for smbclient and parser to UTC
2022-05-30 17:18:19 +02:00
49b1e989fe
handle lowercase modes
2022-05-25 17:11:14 +02:00
f8cbc6081b
add fallback for when binary is not in path
2022-05-25 17:11:03 +02:00
84356e5785
distinguish unknown error from stderr
2022-05-20 16:26:21 +02:00
4c8e50f141
psalm fixes
2022-01-20 14:41:23 +01:00
3a87f21b83
re-add option for passing ticket by memory and copying the ticket to a new temp location
2022-01-20 14:36:37 +01:00
Arthur Schiwon
49b33e0854
removed unused member
2022-01-17 16:02:04 +01:00
Arthur Schiwon
fdf1051bd6
fix ticket check, remove unnecessary(?) code
...
provided by downstream
2022-01-17 16:01:29 +01:00
Arthur Schiwon
ab262dd706
suppress exceptions with extra krb auth options
...
- unsure yet whether this is really needed
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-01-06 09:53:30 +01:00
Sebastian Lederer
c337508282
fix check ticket for constrained delegation
...
for the ticket is present in a different format using constrained
delegation the isValid() test does not work properly.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-01-06 09:51:23 +01:00
c1ce4fbb2f
only intialize kerberos apache auth when used
...
this allows checking if there is a valid ticket without throwing exceptions
2021-11-04 15:28:18 +01:00
a8dc9ca75b
fix support for smbclient compiled without readline support
2021-11-03 18:08:16 +01:00
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