Home › Forums › OS X Server and Client Discussion › Open Directory › 10.5 OD adding custom schemas
- This topic has 3 replies, 1 voice, and was last updated 17 years, 12 months ago by
jokke.
-
AuthorPosts
-
November 7, 2008 at 2:10 pm #374704
jokke
ParticipantI’m finally moving our tiger world to leopard time and I’m having hard time to get custom schemas to be read by slapd. In 10.4 I added my custom schemas at the end of the apple.schema and it worked. I’ve tried that and also tried the new way that slapd versions > 2.3 seems to offer to load new schemas even at the runtime but I’m failing badly. I don’t get any errors at start time but when I try to add the new objectClass or extended attribute I get ‘additional info: objectClass: value #0 invalid per syntax’ which seems to point that I’m adding oc that slapd has no idea about.
Anybody done this? Any hints what to look for?
tia,
YogiNovember 12, 2008 at 11:58 am #374727jokke
ParticipantWell it seems that there’s some trickery how to correctly format the slapd configuration files when they follow the new LDAP enabled config model. And if you have both, the new way to store configs and the old single file way, the new way takes precedence and what ever you store to slapd.conf file doesn’t get read at startup nor are the schema files at schema directory read. By naming the slapd.d directory at /etc/openldap/ to something else, the old config files (and schema files) get read so if you’ve had your custom schemas there on tiger server this way you can restore that behavior.
On the other hand the new way to store configs and have the changes to be read at runtime is quite nice, so I’ll try to figure out how to do correctly custom schemas with that and post results here in case anybody stumbles to this thread at later day.
jokke
November 12, 2008 at 12:49 pm #374729jokke
ParticipantSeems that if you want custom schemas you have to let openldap do the conversion to the new model. To the point, set up your custom schema file as you would have done previously (include statement in slapd.conf and the schema file under schema directory). Then stop slapd and trash (or stash) the old slapd.d directory and create a new slapd.d (check that the permissions are the same on) directory. After that you just type
#> slaptest -f slapd.conf -F slapd.d
and boom, you have slapd.d hierarchy that has your custom schemas. Now just start slapd again and start adding yuor attributes.
jokke
November 17, 2008 at 12:28 pm #374776jokke
ParticipantI’ll be setting up a test replica and post the results here also.
jokke
-
AuthorPosts
- You must be logged in to reply to this topic.