验证名称服务切换表中的 LDAP 资源
必须验证 SVM 的名称服务切换表中是否正确列出了名称服务的 LDAP 资源。
- 显示当前名称服务切换表的内容:vserver services name-service ns-switch show -vserver svm_name
示例
以下命令显示 SVM My_SVM 的结果:
ie3220-a::> vserver services name-service ns-switch show -vserver My_SVM
Source
Vserver Database Order
--------------- ------------ ---------
My_SVM hosts files,
dns
My_SVM group files,ldap
My_SVM passwd files,ldap
My_SVM netgroup files
My_SVM namemap files
5 entries were displayed.namemap 指定名称映射信息搜索的源和顺序。在纯 UNIX 环境中,此条目非必需条目。只有同时使用 UNIX 和 Windows 的混合环境中才需要名称映射。
- 根据需要更新 ns-switch 条目:
如果要更新以下对象的 ns-switch 条目... 请输入命令... 用户信息 vserver services name-service ns-switch modify -vserver vserver_name -database passwd -sources ldap,files 组信息 vserver services name-service ns-switch modify -vserver vserver_name -database group -sources ldap,files netgroup 信息 vserver services name-service ns-switch modify -vserver vserver_name -database netgroup -sources ldap,files
提供反馈