我试图将Cisco模式导入到我的OpenLDAP服务器中。 我遵循一个指令,需要创build一个ldif文件,然后用它来导入。 但是当我运行slapcat时,我面对这个消息:
594e80a3 /etc/openldap/schema/cisco.schema: line 89 objectclass: AttributeType not found: "sn" slapcat: bad configuration directory!
在这里我的schema.conf:
include /etc/openldap/schema/cisco.schema
当我把core.schema运行,但文件是空的。
这里是命令:
slapcat -f schema.conf -F . -n0 -H ldap:///cn={0}cisco,cn=schema,cn=config -l cisco.ldif
谁能帮我?
最好的祝福。
slapdcat可能是错误的工具。 你可能应该使用slaptest 。
您还需要包含cisco.schema具有的任何依赖关系。
'sn' 'surname'是core一部分。 cosine和nis (或rfc2307bis )也是常见的依赖关系。
-F confdir
指定一个configuration目录。 如果同时指定-f和-F,则会读取configuration文件并将其转换为config目录格式并写入指定的目录。 如果这两个选项都没有指定,slaptest会试图在使用默认configuration文件之前读取默认configuration目录。 如果存在有效的configuration目录,那么默认configuration文件将被忽略。 如果还指定了运行模式,则不会发生转换。