Код: Выделить всё
# Load schemas
dn: cn=schema,cn=config
objectClass: olcSchemaConfig
cn: schema
include: file:///etc/ldap/schema/core.ldif
include: file:///etc/ldap/schema/cosine.ldif
include: file:///etc/ldap/schema/nis.ldif
include: file:///etc/ldap/schema/inetorgperson.ldif
dn: cn=mykepkin,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: mykepkin
olcAttributeTypes: ( 1.3.6.1.4.1.8506.1.2.11
NAME 'birthDate'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )
olcAttributeTypes: ( 1.3.6.1.4.1.8506.1.2.12
NAME 'anniversary'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )Потом при попытке добавить значение этого типа получаю ошибку:
Код: Выделить всё
$ ldapadd -f test.ldif -D "cn=Manager,dc=nodomain" -W
Enter LDAP Password:
adding new entry "cn=Hannes Hiller,ou=people,dc=nodomain"
ldap_add: Undefined attribute type (17)
additional info: annivesary: attribute type undefinedПодскажите плиз.