如何将 CIFS SVM 从域成员资格转换为工作组
不可不使用
适用场景
- ONTAP 9
- CIFS/SMB
- CIFS 服务器身份验证模式设置为域
问题解答
1. 查看在存在的 SVM 和 CIFS 共享上配置的当前身份验证模式:cluster1::> vserver cifs show
Server Status Domain/Workgroup Authentication
Vserver Name Admin Name Style
----------- --------------- --------- ---------------- --------------
svm1 SVM1 up demo.netapp.com domain <<<
小心:请仔细查看以下警告,然后使用 "y" 键确认操作。 |
2. 修改 SVM CIFS 配置:
cluster1::> vserver cifs modify -vserver svm1 -status-admin down -workgroup WORKGROUP
Warning: To enter workgroup mode, all domain-based features must be disabled
and their configuration removed automatically by the system, including
continuously-available shares and shadow copies. However,
domain-configured share ACLs such as "DEMO.NETAPP.COM\userName" will
not work properly, but cannot be removed by Data ONTAP. Remove these
share ACLs as soon as possible using external tools after the command
completes.
Do you want to continue? {y|n}: y
3. 确认身份验证模式现已更改为工作组:
cluster1::> vserver cifs show
Server Status Domain/Workgroup Authentication
Vserver Name Admin Name Style
----------- --------------- --------- ---------------- --------------
svm1 SVM1 up WORKGROUP workgroup<<<
4. 在 SVM 上创建用于 CIFS 访问的本地用户:
cluster1::> cifs users-and-groups local-user create -user-name user1 -is-account-disabled false -vserver svm1
Enter the password:
Confirm the password:
5. 确认创建本地用户:
cluster1::> cifs users-and-groups local-user show
Vserver User Name Full Name Description
------------ --------------------------- -------------------- -------------
svm1 SVM1\Administrator Built-in administrator account
svm1 SVM1\User1 - -
2 entries were displayed.