Skip to content

Conversation

@Sleepwalker86
Copy link
Contributor

Update Samba upload to modern SMB2/SMB3 connection

  • Switch SMB connection from outdated NetBIOS/SMB1 (port 139) to direct TCP (port 445)
  • Enable is_direct_tcp=True in SMBConnection for proper SMB2/3 support
  • Remove dependency on NetBIOS session setup
  • Improve security and compatibility with modern Samba/Windows servers
  • Allow raising min protocol in smb.conf to SMB2 or SMB3
  • Refactor port handling and logging accordingly

This update modernizes the backup upload mechanism and removes reliance on deprecated SMB1.

Switch SMB connection from outdated NetBIOS/SMB1 (port 139) to direct TCP (port 445)

Enable is_direct_tcp=True in SMBConnection for proper SMB2/3 support

Remove dependency on NetBIOS session setup

Improve security and compatibility with modern Samba/Windows servers

Allow raising min protocol in smb.conf to SMB2 or SMB3

Refactor port handling and logging accordingly

This update modernizes the backup upload mechanism and removes reliance on deprecated SMB1.
Copy link
Contributor

@LKuemmel LKuemmel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mit dieser Implementierung wird zunächst der Upload über SMB2/3 ausgeführt, danach SMB1. Je nach Konfiguration wird mind. eines davon fehlschlagen, dh der Benutzer erhält immer eine Fehlermeldung. Wie wäre es, die beiden Varianten in einer if-Abfrage auszuführen und sich beim ersten erfolgreichen hochladen zu merken, ob SMB1 oder SMB2/3 verwendet werden muss?

@Sleepwalker86
Copy link
Contributor Author

Danke für den Hinweis, habe ich korrigiert.

Copy link
Contributor

@LKuemmel LKuemmel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bitte auch noch die Dateien aus .idea und inspectionProfiles, die nicht zum PR gehören, aus dem PR entfernen.

Copy link
Contributor Author

@Sleepwalker86 Sleepwalker86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@LKuemmel
Copy link
Contributor

LKuemmel commented Dec 3, 2025

Was ist mit dem suggested change https://github.com/openWB/core/pull/2981/files#r2583942139? Nicht einverstanden oder vergessen?

Copy link
Contributor Author

@Sleepwalker86 Sleepwalker86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

akzeptiert

@LKuemmel LKuemmel merged commit 4dbffe9 into openWB:master Dec 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants