Adding a custom LDAP schema to a Mac OS 10.5.2 server
1. Copied a file called Custom.schema to /etc/openldap/schema.
2. Added the line *include /etc/openldap/schema/Custom.schema* at the bottom of the file /etc/openldap/slapd.conf.
3. Stopped LDAP server using *sudo slapconfig -stopldapserver*.
4. Started LDAP server using *sudo slapconfig -startldapserver*.
After this, when I try to add data to the custom schema as *sudo ldapadd "myattribute=somevalue,dc=myserver,dc=com" -U diradmin -W -Y CRAM-MD5*, I always get the following error message:
--------------------------------------------------------------------------------
ldap_add: Invalid DN syntax (34)
additional info: invalid DN
--------------------------------------------------------------------------------
This leads me to believe that Open Directory is not picking up the newly added schema file.
Interestingly, the same steps work with the following configurations:
1. Mac OS 10.4.10 with Open Directory in standalone mode.
2. Mac OS 10.4.10 with Open Directory in master mode.
3. Mac OS 10.4.10 with Open Directory in replica mode.
4. Mac OS 10.5.2 with Open Directory in standalone mode.
I am unable to understand why the process works when Open Directory is configured in standalone mode but does not when it is configured as a master.
XServe, Mac OS X (10.5.2)