设置 LDAP 服务器我必须导入几个模式,例如eduPerson
. 开发人员发布了一个 LDIF 文件,上面写着:
# This LDIF file can be used to add to add the eduPerson schema to
# an OpenLDAP server > 2.4 that uses the new configuration format.
# Put this file to /etc/ldap/schema/ and then execute the following
# comand to add this schema:
# ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/eduperson.ldif
另一方面,我听说一位 LDAP 管理员通过将模式包含到 LDAP 配置(例如/etc/openldap/slapd.conf
)中并重新启动 LDAP 恶魔来导入模式。
因此,根据我的研究,在我看来,包含模式是正确的方法,而 LDIF 更适合用于导入数据——而不是模式本身。那是对的吗?两者之间有什么区别,我应该什么时候使用它们?