无法将自定义属性添加到 LDAP 架构

无法将自定义属性添加到 LDAP 架构

我阅读了所有能找到的资料,并尝试了不同的示例,但出于某种原因,我似乎无法向 LDAP 模式添加自定义属性(我尝试添加核心模式,想着也许会有帮助,但仍然没有效果)

这是我用来添加 2 个自定义属性 wiki 和 jira 的 ldif

    # SCHEMA "WIKI-JIRA"
dn: cn=wiki-jira, ou=schema
objectclass: metaSchema
objectclass: top
cn: wiki-jira

dn: ou=attributetypes, cn=wiki-jira, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: attributetypes

dn: m-oid=1.1.1.1.1.1.1.1.1.1.1.1, ou=attributetypes, cn=wiki-jira, ou=schema
objectclass: metaAttributeType
objectclass: metaTop
objectclass: top
m-oid: 1.1.1.1.1.1.1.1.1.1.1.1
m-name: wiki

dn: m-oid=2.2.2.2.2.2.2.2.2.2.2, ou=attributetypes, cn=wiki-jira, ou=schema
objectclass: metaAttributeType
objectclass: metaTop
objectclass: top
m-oid: 2.2.2.2.2.2.2.2.2.2.2
m-name: jira

dn: ou=comparators, cn=wiki-jira, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: comparators

dn: ou=ditcontentrules, cn=wiki-jira, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: ditcontentrules

dn: ou=ditstructurerules, cn=wiki-jira, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: ditstructurerules

dn: ou=matchingrules, cn=wiki-jira, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: matchingrules

dn: ou=matchingruleuse, cn=wiki-jira, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: matchingruleuse

dn: ou=nameforms, cn=wiki-jira, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: nameforms

dn: ou=normalizers, cn=wiki-jira, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: normalizers

dn: ou=objectclasses, cn=wiki-jira, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: objectClasses

dn: ou=syntaxcheckers, cn=wiki-jira, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: syntaxcheckers

dn: ou=syntaxes, cn=wiki-jira, ou=schema
objectclass: organizationalUnit
objectclass: top
ou: syntaxes

这是我得到的错误

[root@ldap01 schema]# ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/wiki-jira.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
adding new entry "cn=wiki-jira, ou=schema"
ldap_add: Invalid syntax (21)
    additional info: objectclass: value #0 invalid per syntax

相关内容