How is the LDAP administrator account configured when the rootdn and rootpw directives are not present in the slapd.conf file?
A. The default account admin with the password admin are used
B. The account is defined by an ACL in slapd.conf
C. The default account admin is used without a password
D. The account is defined in the file /etc/ldap.secret
E. The account is defined in the file /etc/ldap.root.conf
题解
LDAP 的「ACL」即 Access Control List。
题目所说的「rootdn」命令和「rootpw」命令是指「olcRootDN」和「olcRootPW」这两个字段。如果后端数据库是使用 MDB 的话,这个「slapd.conf」设置档在 Ubuntu 系的 Linux 发行版的新路径为「/etc/ldap/slapd.d/cn=config/olcDatabase={1}mdb.ldif」。其可以使用「olcAccess」字段(如果没有定义的话就是使用预设的 Access 规则),来设置其应该要如何被访问。
因此答案是选项「B」。
