February 19, 2019 at 6:28 pm #24824marquez2012Participant
There’re any tutorial to explain how can i create ‘object classes’ and ‘attributes types’ on DS 6.5 from command line?
I’d like to import by command line a ldif file which have the following structure:
dn: cn=schema objectClass: subschema objectClass: ldapSubentry objectClass: top cn: schema objectClasses: ( test-user-oid NAME 'test-user' SUP inetOrgPerson STRUCTURAL MUST (test-status $ description) MAY ( test-lang $ ds-pwp-password-policy-dn $ test-modificationUserId ) ) modifyTimestamp: 20130411155332Z attributeTypes: ( test-visible-startDate-oid NAME 'test-visible-startDate' EQUALITY caseIgnoreMatch ORDERING caseIgnoreOrderingMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 126.96.36.199.4.1.14188.8.131.52.15 USAGE userApplications ) ds-sync-state: 00000131f62eceea0a4000000001 ds-sync-generation-id: 8408 modifiersName: cn=Directory Manager,cn=Root DNs,cn=config
From what i read we need to create a ldap file like this:
attributetype ( 184.108.40.206.4.1.18060.0.4.3.2.1 NAME 'test-user' DESC 'test' EQUALITY integerMatch SYNTAX 220.127.116.11.4.1.1418.104.22.168.27 SINGLE-VALUE ) objectclass ( 22.214.171.124.4.1.18060.0.4.3.3.1 NAME 'ship' DESC 'test' SUP top STRUCTURAL MUST cn MAY ( test-user $ description ) )
and apply the slaptest cmd.
Can you help me please?
PS- I’ve a oid with characters (on custom schema elements on openDJ 2.6.4). The migration to OpenDS 6.5 with the upgrade command will translate the oid to the correct syntax (only numbers and dot) ?
ThanksFebruary 20, 2019 at 12:00 pm #24832Rob MatthewsParticipant
The process for adding custom objectclasses/attributes is in the admin guide available on backstage – https://backstage.forgerock.com/docs/ds/6.5/admin-guide/#update-schema
You do not need to use the slaptest command, if you import the schema changes with ldapmodify DS will make sure the entries are acceptable, also, if you need to restart DS at any point keep an eye on the output while it starts up as it will report any schema issues here.
DS won’t convert incorrect schema, it will warn you that it is incorrect and that you need to correct it. Setup a DS6.5 environment and try to import your custom schema using ldapmodify and it will warn you if it is incorrect. If you need to you can import without schema checking, but this is only recommended short term to give you time to rectify any issues.
ThanksFebruary 26, 2019 at 8:59 am #24877marquez2012Participant
You must be logged in to reply to this topic.