[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
import new schema via ldapmodify
- To: openldap-technical@openldap.org
- Subject: import new schema via ldapmodify
- From: Nikos Voutsinas <nvoutsin@gmail.com>
- Date: Sat, 26 Apr 2014 12:41:19 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=f1z+hKBnbVmRLSqWfOpW1bpGhLjouEZafWunh0X7ETY=; b=gb4McLhImZ9Cx59DPcF4LBTTHJUNKjvVf/heBKAdCZ1LzGEndkfPOd8r813uLwhRaP fnXZMAjeZMGstDxBpdMHMuEueRPWDW863KlFgpBBGHaqxW/5YyMx1JDWqVepzWfOAPwZ v0HNECZWBtlSsnlYJKirWUxWY135imlfQYSm5uOVic549LVge4XK0hmXJG+5hjILVfXA ZY6IpbyVbkYMusaVN4k/OGGtA6yC0GaZ1Qej6199ZRL5rc9uaVPDa5tX9Ph5HTchf7Dq WXsBg/2YbXZdlyJdPzWB2X2M3z4SeDJ8mYYgGbz/zZIuf3qCVAQIwshdqcAYzhJfLhQH UQFQ==
Hello all,
While practising with the cn=config, I tried to import a new schema
to an Openldap 2.4.39 server by using the ldapmodify cmd. Can someone
please enlighten me on why the 1st ldif works but not the 2nd one?
The "{4}", which is the only difference between the 1st and the 2nd
ldif, is the index of the next available object under
cn=schema,cn=config
1st (works)
=============
dn: cn={4}eduPerson,cn=schema,cn=config
changetype: add
objectClass: olcSchemaConfig
cn: eduPerson
dn: cn={4}eduPerson,cn=schema,cn=config
changetype: modify
add: olcAttributeTypes
olcAttributeTypes: ( 1.3.6.1.4.1.5923.1.1.1.1
NAME 'eduPersonAffiliation'
DESC 'eduPerson per Internet2 and EDUCAUSE'
EQUALITY caseIgnoreMatch
SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )
-
add: olcObjectClasses
olcObjectClasses: ( 1.3.6.1.4.1.5923.1.1.2
NAME 'eduPerson'
AUXILIARY
MAY ( eduPersonAffiliation )
)
-
=============
2nd (doesn't work)
=============
dn: cn=eduPerson,cn=schema,cn=config
changetype: add
objectClass: olcSchemaConfig
cn: eduPerson
dn: cn=eduPerson,cn=schema,cn=config
changetype: modify
add: olcAttributeTypes
olcAttributeTypes: ( 1.3.6.1.4.1.5923.1.1.1.1
NAME 'eduPersonAffiliation'
DESC 'eduPerson per Internet2 and EDUCAUSE'
EQUALITY caseIgnoreMatch
SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )
-
add: olcObjectClasses
olcObjectClasses: ( 1.3.6.1.4.1.5923.1.1.2
NAME 'eduPerson'
AUXILIARY
MAY ( eduPersonAffiliation )
)
-
=============
The command used, looks like this:
ldapmodify -h localhost -p 389 -D cn=admin,cn=config -x -W -f <filename>
Thanks,
Nikos