我正在尝试为ldap服务器中的用户添加一些新属性。在几篇参考文献之后,我编写了以下代码来添加一个新的字段,称为国籍。
dn: cn=schema
changetype: modify
add: attributeTypes
attributeTypes: ( 2.25.128424792425578037463837247958458780603.1
NAME 'nationality'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)
-
add: objectClasses
objectClasses: ( 2.25.128424792425578037463837247958458780603.3
NAME 'samplePerson'
DESC 'samplePerson'
SUP inetOrgPerson
STRUCTURAL
MAY (nationality)
但是我遇到以下错误
Add Request :
Entry
dn: nationality=attributeTypes,cn=inetorgperson,ou=schema
objectclass: organizationalUnit
objectclass: top
nationality: attributeTypes
ou: attributetypes
: ERR_13735_ELEMENT_FOR_OID_DOES_NOT_EXIST ATTRIBUTE_TYPE for OID
nationality
does not exist!]
有人可以帮忙吗?