Oracle Solaris 10 9/10 安装指南:基于网络的安装

name_service 关键字的 LDAP 语法

请使用以下语法来配置系统,以使用 LDAP。


name_service=LDAP {domain_name=domain_name
                   profile=profile_name profile_server=ip_address 
                   proxy_dn="proxy_bind_dn" proxy_password=password}
domain_name

指定 LDAP 服务器的域名。

profile_name

指定要用来配置系统的 LDAP 配置文件的名称。

ip_address

指定 LDAP 配置文件服务器的 IP 地址。

proxy_bind_dn

(可选)指定代理绑定的独特名称。您必须将 proxy_bind_dn 值括在双引号中。

password

(可选)指定客户机代理的口令。


示例 2–7 使用 name_service 关键字指定 LDAP 服务器

以下示例指定具有以下配置信息的 LDAP 服务器。


name_service=LDAP {domain_name=west.example.com 
                   profile=default 
                   profile_server=172.31.2.1 
                   proxy_dn="cn=proxyagent,ou=profile,
                   dc=west,dc=example,dc=com" 
                   proxy_password=password}

有关如何使用 LDAP 的更多信息,请参见《系统管理指南:名称和目录服务(DNS、NIS 和 LDAP)》