What is the current OLC way to replace the nis schema with the rfc2307bis schema?
There are hacks published, but I couldn't find a document that takes advantage of OLC, removes the nis schema, and installs the rfc2307bis schema. It feels like something that I would do often enough that I would want to be able to do it one ldapmodify operation.
There is a problem. There wasn't delete support in OLC 2.4 2012 in http ://www.openldap.org/lists/openldap-technical/201204/msg00245.html.
OLC does support delete in 2.5 as of 2013 https://www.slideshare.net/ld apcon/whats-new-in-openldap.
Since that has been established, what is the least hacky way to replace the nis schema with the rfc2307bis schema in 2.4?
Le vendredi 29 septembre 2017, 07:45:53 CEST John Lewis a écrit :
There is a problem. There wasn't delete support in OLC 2.4 2012 in http ://www.openldap.org/lists/openldap-technical/201204/msg00245.html.
OLC does support delete in 2.5 as of 2013 https://www.slideshare.net/ld apcon/whats-new-in-openldap.
Since that has been established, what is the least hacky way to replace the nis schema with the rfc2307bis schema in 2.4?
Using ldap-schema-manager from https://github.com/fusiondirectory/schema2ldif/tree/1.3-fixes (or one of the repos in http://repos.fusiondirectory.org/fusiondirectory-extra/ - the package schema2ldif contains both tools) should help you. You can run "ldap-schema-manager -e nis.schema" to empty the nis schema (it will not remove it because as you noted removal is not possible in 2.4, but it will empty all its attributes). Then you can run "ldap-schema-manager -i rfc2307bis.schema"
Côme
openldap-technical@openldap.org