Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split off from 0.10.0 without the reworked authentication fixes #762

Merged
merged 60 commits into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from 53 commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
383dfa3
Ignore VSCode
hierynomus May 8, 2023
d0a14c7
Add NtStatus.STATUS_UNSUCCESSFUL
hierynomus May 19, 2021
a3efd24
Add NtStatus.STATUS_INSUFF_SERVER_RESOURCES (#611)
hierynomus May 19, 2021
a2d117b
Add NtStatus.STATUS_IO_REPARSE_TAG_NOT_HANDLED (#514)
hierynomus May 20, 2021
682c3e1
Update gradle build
hierynomus May 20, 2021
8983a5e
Update release plugin
hierynomus May 20, 2021
3054836
Release version: 0.11.0
hierynomus May 20, 2021
05297d7
Fix signing task dependency
hierynomus May 20, 2021
46d573e
Release version: 0.11.1
hierynomus May 20, 2021
5fb29d8
Use BCSecurityProvider by default for SMB3 compatibility (Fixes #638)
hierynomus May 28, 2021
4056519
Ensure DFS Path Referral times out after transactTimeout (Fixes #578)
hierynomus May 31, 2021
67ce970
Only add DFSPathResolver if both client and server support DFS (#640)
hierynomus May 31, 2021
f9d67c6
Upgrade Bouncy Castle to 1.68 to fix vulnerability report (#641)
hierynomus May 31, 2021
c2cdb8e
address issue #604 - stop closing the dfs share connection immediatel…
nddipiazza May 31, 2021
1ec546a
Add support for unregistering server from serverlist (Fixes #644) (#647)
hierynomus Jun 28, 2021
d687ded
Reducing logging for smb3 (#650)
ndimitry Jul 2, 2021
9ce0979
Consolidate SMBv1 error messages
hierynomus Aug 30, 2021
514436b
Upgrade BouncyCastle to 1.69
hierynomus Aug 30, 2021
2ddcaa3
Release version: 0.11.2
hierynomus Aug 30, 2021
0af7845
Ensure artifact is signed
hierynomus Aug 30, 2021
eb0a36b
Release version: 0.11.3
hierynomus Aug 30, 2021
f6d8d6d
Fix #665: Allow JCE KDF to work (#666)
pboyd04 Aug 31, 2021
cdb59ba
Use correct maxPayloadSize for encrypted packets (Fixes #668) (#683)
hierynomus Jan 19, 2022
5878ded
Read fileId as long (#693)
hannosgit Jan 31, 2022
93a45e7
File the issue that nested folder creation throw NAME EXIST error. (#…
Jan 31, 2022
1a22847
Updated build status badges (#684)
exceptionfactory Feb 4, 2022
a9a39ce
Use AceSize field when reading ACEs (#696)
cpacejo Feb 10, 2022
e79f98f
Ensure that enough bytes are cached from InputStream to get a correct…
kardashov Feb 11, 2022
7988c16
Add GH workflow for publishing
hierynomus Feb 22, 2022
cc1ea0a
Update dependencies and build file
hierynomus Feb 22, 2022
cbac919
Rename test class to *Spec
hierynomus Feb 22, 2022
421e0e9
Release version: 0.11.5
hierynomus Feb 22, 2022
e516cad
Use the hostname part of the TargetHint for DFS step 9 (fixes \#419) …
hierynomus Jun 28, 2022
537d692
Slightly reduce the locking in Connection.send and DirectTcpTransport…
hierynomus Sep 14, 2022
b667395
Fixed indentation
hierynomus Sep 14, 2022
498c095
Converting bytes written to long (Fixes #740)
hierynomus Mar 15, 2023
9e2c8df
Upgrading gradle to 8.0.2
hierynomus Mar 15, 2023
a65f5f2
Add Implementation manifest attributes (Fixes #743)
hierynomus Mar 16, 2023
07c92dc
Revert accidental comment of integration docker tasks
hierynomus Mar 16, 2023
2e3f845
Do not send SMB2EncryptionCapabilities NegotiationContext is !isEncry…
hierynomus Mar 17, 2023
7592f19
Add preliminary changelog for new release
hierynomus Mar 17, 2023
0b926eb
Ensure we call flip() on Buffer to avoid Java8 problems (Fixes #705)
hierynomus Mar 19, 2023
350c73e
Ensure path is set for rmdir to prevent accidents (Fixes #756)
hierynomus Mar 28, 2023
01d720e
Add support for reading / writing NIO ByteBuffers (#759)
laeubi Apr 28, 2023
6bf720c
Fix some sonatype warnings
hierynomus May 1, 2023
16049ea
resolve conflict with master
hierynomus May 9, 2023
1aabefe
Ignore non-semver tags for release workflow
hierynomus May 10, 2023
470b322
Small warning cleanup
hierynomus May 10, 2023
b3529fb
Setup ConnectionContext and AuthenticationContext for NTLM improvements
hierynomus May 11, 2023
5f1b9de
Refactor TargetInfo/AvPairs
hierynomus May 11, 2023
c930ce2
Added null check and rename field
hierynomus May 11, 2023
f67045e
Refactor NtlmFunctions
hierynomus May 12, 2023
7794355
Change hierarchy of Ntlm messages
hierynomus May 12, 2023
5c37afa
Next step of NTLM refactor
hierynomus May 12, 2023
de452fa
NtlmNegotiate sends Domain/Workstation/Version fields
hierynomus May 16, 2023
72fbbe5
Filter negotiateflags and use clientTargetInfo
hierynomus May 22, 2023
900621d
Rework keys in NtlmAuthenticator
hierynomus May 24, 2023
e648ab6
Change to structure of NtlmAuthenticate
hierynomus Jun 26, 2023
7d89551
Added last changes
hierynomus Jun 29, 2023
e17a275
Merge branch 'master' into working-auth
hierynomus Jul 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions .circleci/config.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: SMBJ Release

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
java12:
name: Build with Java 12
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 12
uses: actions/setup-java@v1
with:
java-version: 12
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew check
release:
name: Release
needs: [java12]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-java@v1
with:
java-version: 12
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Release
run: ./gradlew release -Prelease.disableChecks -Prelease.pushTagsOnly -Prelease.customUsername=${{ github.actor }} -Prelease.customPassword=${{ github.token }}
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNINGKEY }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNINGKEYID }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNINGPASSWORD }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_PASSWORD }}


4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ test-output/
*.pdf
.vscode/
.java-version

.metals
.bloop
MacIntegrationTest.*
33 changes: 0 additions & 33 deletions .gitlab-ci.yml

This file was deleted.

69 changes: 0 additions & 69 deletions .travis.yml

This file was deleted.

21 changes: 15 additions & 6 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
= smbj - SMB2/SMB3 client library for Java
Jeroen van Erp
:smbj_groupid: com.hierynomus
:smbj_version: 0.10.0
:smbj_version: 0.11.5
:source-highlighter: pygments

To get started, have a look at one of the examples. Hopefully you will find the API pleasant to work with :)

image:https://api.bintray.com/packages/hierynomus/maven/smbj/images/download.svg[link="https://bintray.com/hierynomus/maven/smbj/_latestVersion"]
image:https://travis-ci.org/hierynomus/smbj.svg?branch=master["Build Status", link="https://travis-ci.org/hierynomus/smbj"]
image:https://api.codacy.com/project/badge/Grade/ae8ba8e308734bfbab92fa226853ce91["Codacy code quality", link="https://www.codacy.com/app/jeroen_2/smbj?utm_source=github.com&utm_medium=referral&utm_content=hierynomus/smbj&utm_campaign=Badge_Grade"]
image:https://github.com/hierynomus/smbj/actions/workflows/gradle.yml/badge.svg["Build SMBJ", link="https://github.com/hierynomus/smbj/actions/workflows/gradle.yml"]
image:https://app.codacy.com/project/badge/Grade/cf3df44c64c84035b58b054b4e219c24["Codacy Grade", link="https://app.codecov.io/gh/hierynomus/smbj"]
image:https://codecov.io/gh/hierynomus/smbj/branch/master/graph/badge.svg["codecov", link="https://codecov.io/gh/hierynomus/smbj"]
image:http://www.javadoc.io/badge/com.hierynomus/smbj.svg?color=blue["JavaDocs", link="http://www.javadoc.io/doc/com.hierynomus/smbj"]
image:https://maven-badges.herokuapp.com/maven-central/com.hierynomus/smbj/badge.svg["Maven Central",link="https://maven-badges.herokuapp.com/maven-central/com.hierynomus/smbj"]

image:https://www.ej-technologies.com/images/product_banners/jprofiler_small.png["Java profiler", link="http://www.ej-technologies.com/products/jprofiler/overview.html"]

== Getting SMBJ

To get SMBJ, you have two options:
Expand Down Expand Up @@ -158,3 +155,15 @@ The implementation is based on the following specifications:
- https://msdn.microsoft.com/en-us/library/cc231196.aspx[[MS-ERREF\]: Windows Error Codes]
- https://msdn.microsoft.com/en-us/library/cc231987.aspx[[MS-FSCC\]: File System Control Codes]
- https://msdn.microsoft.com/en-us/library/cc226982.aspx[[MS-DFSC\]: Distributed File System (DFS): Referral Protocol]

== Changelog

=== 0.12.0 (2023-??-??)
* Ensure we call flip() on Buffer to avoid Java8/9 compatibility issues (Fixes https://github.com/hierynomus/smbj/issues/705[#705])
* Do not send SNB2EncryptionCapabilities if the withEncryptData is set to false (Fixes https://github.com/hierynomus/smbj/issues/747[#747])
* Added Implementation-Version and Implementation-Name to MANIFEST.MF (Fixes https://github.com/hierynomus/smbj/issues/743[#743])
* Upgraded Gradle to 8.0.2
* Bytes written by the SMB2Writer are now returned as long, correctly reporting on files >2GB (Fixes https://github.com/hierynomus/smbj/issues/740[#740])
* Reduce the amount of locking in Connection and DirectTcpTransport
* Fixed Cannot resolve path exception in DFS by specifying the correct TargetHint (Fixes https://github.com/hierynomus/smbj/issues/419[#419])
* Fixed ClassCastException in TargetInfo (Fixes https://github.com/hierynomus/smbj/issues/712[#712])
12 changes: 12 additions & 0 deletions WORKING_AUTH_TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Missing commit: 10001efcf7b5beee6994fb0e4a3680a6503f6eab
Extract TargetInfo to separate class and correct offsets for NtlmNegotiate (#630)

* Extract TargetInfo to separate class and correct offsets for NtlmNegotiate

* Add Target SPN AvId if NTLMSSP_REQUEST_TARGET set

* Use clientTargetInfo to calculate NTLM clientChallenge
------
Missing commit: 3e454de9a29db2ef0896af60573378ea7ba4fa4b
Fix ClassCastException (fixes \#712)
------
Loading