Sunteți pe pagina 1din 1

1. Edit a file a include ref schemas . This will help to create a sample schema config file. vim /tmp/borrame.

conf (this is what goes in the file) include /etc/ldap/schema/core.schema include /etc/ldap/schema/cosine.schema include /etc/ldap/schema/nis.schema include /etc/ldap/schema/inetorgperson.schema include /etc/ldap/schema/misc.schema include /etc/ldap/schema/mypersonalschema.schema 2. create dir and run slaptest using the file created in step 1. mkdir /tmp/borrame.d slaptest -f /tmp/borrame.conf -F /tmp/borrame.d 3.Edit the generated file vim /tmp/borrame.d/cn\=config/cn\=schema/cn\=\{5\}mypersonalschema.ldif I changed the three head lines to this: dn: cn=mypersonalschema,cn=schema,cn=config objectClass: olcSchemaConfig cn: mypersonalschema 4. Then delete these lines from the bottom of the file: structuralObjectClass: entryUUID: creatorsName: createTimestamp: entryCSN: modifiersName: modifyTimestamp: 5. And at last nsert the new schema to the ldap tree: ldapadd -Y EXTERNAL -H ldapi:/// -f /tmp/borrame.d/cn\=config/cn\=schema/cn\=\{5\}mypersonalschema.ldif

S-ar putea să vă placă și