From 766dbab7320949f7917ef60e26b1e5029ed59d9f Mon Sep 17 00:00:00 2001 From: Pedro Gonzalez Gomez Date: Tue, 26 Aug 2025 14:05:45 +0200 Subject: [PATCH] mgr/dashboard: fix SMB custom DNS button and linked_to_cluster col - The button 'add custom DNS' in smb cluster form should only appear for active directory where is relevant. - The linked_to_cluster column data is missing from smb standalone - Some refactoring to remove magic strings and use FormControl for publicAddrs field Fixes: https://tracker.ceph.com/issues/73096 Signed-off-by: Pedro Gonzalez Gomez (cherry picked from commit 9ce943e21558d17b3a214840b39bb57eab0cbd85) --- .../smb-cluster-form.component.html | 130 +++++++++--------- .../smb-cluster-form.component.spec.ts | 2 +- .../smb-cluster-form.component.ts | 17 +-- .../smb-usersgroups-list.component.ts | 2 +- .../frontend/src/app/ceph/smb/smb.model.ts | 2 +- 5 files changed, 78 insertions(+), 75 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-cluster-form/smb-cluster-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-cluster-form/smb-cluster-form.component.html index 45a95a32b55..9050551866d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-cluster-form/smb-cluster-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-cluster-form/smb-cluster-form.component.html @@ -73,7 +73,7 @@
+ *ngIf="this.smbForm.get('auth_mode').value === AUTHMODE.ActiveDirectory">
@@ -130,7 +130,7 @@ *ngFor="let _ of joinSources.controls; index as i">
+ *ngIf="this.smbForm.get('auth_mode').value === AUTHMODE.User">
- -
-
- DNS - - -
-
- +
+
+ DNS + + +
+
- - - + + + +
-
- + -
- - One or more IP Addresses that will be - applied to the Samba containers to override - the default DNS resolver(s). This option is - intended to be used when the host Ceph node - is not configured to resolve DNS entries within - AD domain(s). - -
+
+ + One or more IP Addresses that will be + applied to the Samba containers to override + the default DNS resolver(s). This option is + intended to be used when the host Ceph node + is not configured to resolve DNS entries within + AD domain(s). + +
+ }
@@ -358,6 +359,11 @@
+
+ @@ -368,12 +374,12 @@
Address @@ -396,7 +402,7 @@
-