[Date Prev][Date Next] [Chronological] [Thread] [Top]

Adding attributetypes and objectclasses with ldapmodify?



Hi,

I have successfully added attributetypes and objectclasses following the methods outlined in creating a schema file
and including that file in my slapd.conf file.


I was wondering if I could do the same action using ldapmodify and a ldif file? Am I correct that this is not possible
using the openldap software but is possible with other vendor's implementations?


This is the ldif file which I was using...

dn: cn=schema
changetype: modify
add: attributetypes
attributetypes: ( 1.3.5.1.4.1.4203.666.1.200 NAME 'anyAccess' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX '1.3.6.1.4.1.1466.115.121.1.15{1024}' )


dn: cn=schema dc=lxldap
changetype: modify
add: objectclasses
objectclasses: ( 1.3.6.1.4.1.4203.666.1.2001 NAME 'PitBull' DESC 'PitBull' SUP person STRUCTURAL MAY ( anyAccess ) )



ldapmodify -x -D "cn=schema" -f ldif


Any help would be appreciated.

Michael