更新本地数据库中的域用户和组名称

您可以向 CIFS 服务器的本地组添加域用户和组。这些域对象在集群的本地数据库中注册。如果重命名域对象,则必须手动更新本地数据库。

关于本任务

您必须指定要更新域名的 Storage Virtual Machine (SVM) 的名称。

步骤

  1. 将权限级别设置为高级:set -privilege advanced
  2. 执行适当的操作:
    更新域用户和组并 命令
    显示成功更新和无法更新的域用户和组 vserver cifs users-and-groups update-names -vserver vserver_name
    显示成功更新的域用户和组 vserver cifs users-and-groups update-names -vserver vserver_name -display-failed-only false
    仅显示无法更新的域用户和组 vserver cifs users-and-groups update-names -vserver vserver_name -display-failed-only true
    禁止关于更新的所有状态信息 vserver cifs users-and-groups update-names -vserver vserver_name -suppress-all-output true
  3. 恢复为管理权限级别:set -privilege admin

示例

以下示例将更新与 Storage Virtual Machine(SVM,以前称为 Vserver)vs1 关联的域用户和组的名称。对于上次更新,需要更新一系列依赖名称:

cluster1::> set -privilege advanced
Warning: These advanced commands are potentially dangerous; use them
only when directed to do so by technical support personnel.
Do you wish to continue? (y or n): y

cluster1::*> vserver cifs users-and-groups update-names -vserver vs1

   Vserver:           vs1
   SID:               S-1-5-21-123456789-234565432-987654321-12345
   Domain:            EXAMPLE1
   Out-of-date Name:  dom_user1
   Updated Name:      dom_user2
   Status:            Successfully updated

   Vserver:           vs1
   SID:               S-1-5-21-123456789-234565432-987654322-23456
   Domain:            EXAMPLE2
   Out-of-date Name:  dom_user1
   Updated Name:      dom_user2
   Status:            Successfully updated

   Vserver:           vs1
   SID:               S-1-5-21-123456789-234565432-987654321-123456
   Domain:            EXAMPLE1
   Out-of-date Name:  dom_user3
   Updated Name:      dom_user4
   Status:            Successfully updated; also updated SID "S-1-5-21-123456789-234565432-987654321-123457"
                      to name "dom_user5"; also updated SID "S-1-5-21-123456789-234565432-987654321-123458" 
                      to name "dom_user6"; also updated SID "S-1-5-21-123456789-234565432-987654321-123459" 
                      to name "dom_user7"; also updated SID "S-1-5-21-123456789-234565432-987654321-123460" 
                      to name "dom_user8"

The command completed successfully. 7 Active Directory objects have been updated.

cluster1::*> set -privilege admin