Skip to content

Commit 6e8aab4

Browse files
authored
Merge pull request ceph#58153 from anoopcs9/modify-smb-dot-conf
mgr/smb: Make appropriate changes to global and share specific options Reviewed-by: John Mulligan <[email protected]>
2 parents 155b498 + 6472b9b commit 6e8aab4

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

qa/suites/orch/cephadm/smb/tasks/deploy_smb_basic.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ tasks:
4343
globals = ["default", "domain"]
4444
instance_name = "SAMBA"
4545
[shares.share1.options]
46-
"vfs objects" = "ceph"
46+
"vfs objects" = "acl_xattr ceph"
4747
path = "/"
48+
"acl_xattr:security_acl_name" = "user.NTACL"
4849
"ceph:config_file" = "/etc/ceph/ceph.conf"
4950
"ceph:user_id" = "smbdata"
5051
"kernel share modes" = "no"
5152
"read only" = "no"
5253
"browseable" = "yes"
5354
[globals.default.options]
54-
"server min protocol" = "SMB2"
5555
"load printers" = "no"
5656
"printing" = "bsd"
5757
"printcap name" = "/dev/null"

qa/suites/orch/cephadm/smb/tasks/deploy_smb_domain.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ tasks:
4242
globals = ["default", "domain"]
4343
instance_name = "SAMBA"
4444
[shares.share1.options]
45-
"vfs objects" = "ceph"
45+
"vfs objects" = "acl_xattr ceph"
4646
path = "/"
47+
"acl_xattr:security_acl_name" = "user.NTACL"
4748
"ceph:config_file" = "/etc/ceph/ceph.conf"
4849
"ceph:user_id" = "smbdata"
4950
"kernel share modes" = "no"
5051
"read only" = "no"
5152
"browseable" = "yes"
5253
[globals.default.options]
53-
"server min protocol" = "SMB2"
5454
"load printers" = "no"
5555
"printing" = "bsd"
5656
"printcap name" = "/dev/null"

src/pybind/mgr/smb/handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,8 @@ def _generate_share(
10431043
# smb.conf options
10441044
'options': {
10451045
'path': path,
1046-
"vfs objects": "ceph",
1046+
"vfs objects": "acl_xattr ceph",
1047+
'acl_xattr:security_acl_name': 'user.NTACL',
10471048
'ceph:config_file': '/etc/ceph/ceph.conf',
10481049
'ceph:filesystem': share.cephfs.volume,
10491050
'ceph:user_id': cephx_entity,
@@ -1134,7 +1135,6 @@ def _generate_config(
11341135
'globals': {
11351136
'default': {
11361137
'options': {
1137-
'server min protocol': 'SMB2',
11381138
'load printers': 'No',
11391139
'printing': 'bsd',
11401140
'printcap name': '/dev/null',

src/pybind/mgr/smb/tests/test_smb.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,8 @@ def test_share_dump_config(tmodule):
421421
'browseable': 'Yes',
422422
'kernel share modes': 'no',
423423
'x:ceph:id': 'foo.s1',
424-
'vfs objects': 'ceph',
424+
'vfs objects': 'acl_xattr ceph',
425+
'acl_xattr:security_acl_name': 'user.NTACL',
425426
'ceph:config_file': '/etc/ceph/ceph.conf',
426427
'ceph:filesystem': 'cephfs',
427428
'ceph:user_id': 'smb.fs.cluster.foo',
@@ -434,7 +435,8 @@ def test_share_dump_config(tmodule):
434435
'browseable': 'Yes',
435436
'kernel share modes': 'no',
436437
'x:ceph:id': 'foo.stwo',
437-
'vfs objects': 'ceph',
438+
'vfs objects': 'acl_xattr ceph',
439+
'acl_xattr:security_acl_name': 'user.NTACL',
438440
'ceph:config_file': '/etc/ceph/ceph.conf',
439441
'ceph:filesystem': 'cephfs',
440442
'ceph:user_id': 'smb.fs.cluster.foo',
@@ -444,7 +446,6 @@ def test_share_dump_config(tmodule):
444446
'globals': {
445447
'default': {
446448
'options': {
447-
'server min protocol': 'SMB2',
448449
'load printers': 'No',
449450
'printing': 'bsd',
450451
'printcap name': '/dev/null',

0 commit comments

Comments
 (0)