我想将一些模式导入到LDAP中。 但是我得到这个错误:
ldapadd: invalid format (line 21) entry: ""
这是模式的文件:
# ****-Schema-Datei. # # OID prefix: 1.3.6.1.4.1.29508 # Attributes: 1.3.6.1.4.1.29508.1.1 # # Depends on: nis.schema, which depends on cosine.schema attributetype: ( 1.3.6.1.4.1.29508.1.1.1 NAME 'domain' DESC 'A mail domain' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) attributetype: ( 1.3.6.1.4.1.29508.1.1.2 NAME 'forward' DESC 'Forward to mail address' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} ) objectclass: ( 1.3.6.1.4.1.29508.1.2.1 NAME '****Domain' SUP top STRUCTURAL DESC 'Domain used for mail server' MUST ( domain ) MAY ( description ) ) objectclass: ( 1.3.6.1.4.1.29508.1.2.2 NAME '****MailAccount' SUP top STRUCTURAL DESC 'Mail account object' MUST ( mail $ uidNumber $ gidNumber $ userPassword ) MAY ( description ) ) objectclass: ( 1.3.6.1.4.1.29508.1.2.3 NAME '****MailAlias' SUP top STRUCTURAL DESC 'Mail aliasing forwarding entry' MUST ( mail $ forward ) MAY ( description ) ) objectclass: ( 1.3.6.1.4.1.29508.1.2.4 NAME '****Account' SUP top AUXILIARY DESC 'User account' MUST ( homeDirectory ) MAY ( uidNumber $ gidNumber $ uid $ cn $ description $ loginShell $ userPassword $ mail ) )
我刚刚用这个网站的****replace了我们组织的名字。
为什么我得到这个错误?
感谢您的帮助。
MFG
保罗
ldapadd加载LDIF文件,您正在尝试加载模式文件。 如果模式可用,则加载模式的LDIF版本,或者按照此处的说明将模式文件转换为LDIF等效模式https://www.lisenet.com/2015/convert-openldap-schema-to-ldif /创build一个包含模式的最小slapd.conf ,并将其转换为cn=config表单。