On 4/4/22 23:02, Clément OUDOT wrote:
Le 02/04/2022 à 09:33, David Timber a écrit :
I had to write my own schema for my application and I was struggling to figure out how to import the schema I wrote to cn=config. I had though I was missing something until I found this.
https://gist.github.com/jaseg/8577024
Notice the name of the script. Someone had to write this because there's no tool that you can use to import schemas when the slapd is configured with cn=config.
Note that Fusion Directory project provides an utility for this: https://manpages.debian.org/bullseye/fusiondirectory-schema/fusiondirectory-...
You can get away with it by using include directive with slapd.conf.
You can use olcInclude with cn=config.
https://www.openldap.org/doc/admin26/slapdconf2.html#cn=config
I don't see olcInclude in the doc.
https://lists.openldap.org/hyperkitty/list/openldap-commit@openldap.org/mess...
This is an undocumented feature. I'm not writing/using any script. I'm not using slaptest to convert schema to ldif.
On 4/4/22 23:00, Quanah Gibson-Mount wrote:
--On Saturday, April 2, 2022 4:33 PM +0800 David Timber dxdt@dev.snart.me wrote:
I had to write my own schema for my application and I was struggling to figure out how to import the schema I wrote to cn=config. I had though I was missing something until I found this.
https://gist.github.com/jaseg/8577024
Notice the name of the script. Someone had to write this because there's no tool that you can use to import schemas when the slapd is configured with cn=config.
This is incorrect. You can use ldapadd to import schema to an existing cn=config database. Just like you add entries to any other database. It's generally clear the person who wrote the "tool" you are referring to is utterly clueless in how to use OpenLDAP.
Regards, Quanah
https://www.linuxquestions.org/questions/linux-server-73/how-to-add-a-new-sc...
This is all I can find. I'm not doing that. Are you saying I can just use ldapadd? Care to elaborate?