Commit 82b299c
committed
smb: Update the configuration logic for smbd ports
This change lets us switch the default listening ports (445 and 139)
for smbd to a custom configured port or to 445 when host networking is
disabled. Previously, with host networking off, the legacy port 139 was
never published even though the daemon was listening on it inside the
container. For consistency, regardless of whether a custom SMB port is
set, the `smb ports` parameter in smb.conf is used. Since the SMB daemon
publishes whatever port is defined in the configuration, it makes sense
to remove the checks for clustered and custom ports while adding the
`smb ports` parameter.
Signed-off-by: Anoop C S <[email protected]>1 parent 4d2729d commit 82b299c
File tree
2 files changed
+3
-7
lines changed- src
- cephadm/cephadmlib/daemons
- pybind/mgr/smb
2 files changed
+3
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
341 | | - | |
342 | | - | |
| 340 | + | |
| 341 | + | |
343 | 342 | | |
344 | 343 | | |
345 | 344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
| 796 | + | |
800 | 797 | | |
801 | 798 | | |
802 | 799 | | |
| |||
0 commit comments