Scroll to navigation



fusiondirectory-insert-schema - insert schema needed by FusionDirectory into the ldap server


fusiondirectory-insert-schema [-y] [-n] [-c] [-o options] [path] [-h|-l|-i schema1 schema2|-m schema1 schema2|-e schema1 schema2]


This program will insert the schema needed by FusionDirectory into the ldap server, or the specified schemas


This option insert the given list of schemas instead of the default list
This option insert the given list of schemas, replacing already inserted versions of those schemas
This option empty the given list of schemas, removing attributes and objectClasses from those. This is useful because you cannot delete a schema without restarting slapd.
This option list inserted schemas
This option will make generated ldifs file to not be deleted after execution. Might be useful to understand errors.
This option make the program continue even if an error occur
This option answer yes to all questions. The only question right now is the confirmation one when you ask to empty a schema.
This option allow you to specify specifics options to give to ldap commands such as ldapmodify, but beware that you will not be able to see things like password prompts as the output of these commands is piped.


 fusion@catbert$ fusiondirectory-insert-schema
   Insert the core schemas in your LDAP directory

 fusion@catbert$ fusiondirectory-insert-schema -i /etc/ldap/otherschema/myschema.ldif
   Insert the schema /etc/ldap/otherschema/myschema.ldif

 fusion@catbert$ fusiondirectory-insert-schema -i /etc/ldap/otherschema/myschema.schema
   Convert /etc/ldap/otherschema/myschema.schema to ldif and insert it

 fusion@catbert$ fusiondirectory-insert-schema -i myschema
   Insert the schema myschema.ldif from working directory

 fusion@catbert$ fusiondirectory-insert-schema -m /etc/ldap/otherschema/myschema.schema
   Convert /etc/ldap/otherschema/myschema.schema to ldif and replace the existing schema by this one

 fusion@catbert$ fusiondirectory-insert-schema -e myschema
   Empty the schema myschema

 fusion@catbert$ fusiondirectory-insert-schema -o "-H ldap:// -ZZ -D 'cn=admin,cn=config' -w password -x"
   Connect to another ldap server to insert the schema


Please report any bugs, or post any suggestions, to the fusiondirectory mailing list fusiondirectory-users or to <>


Come Bernigaud


This code is part of FusionDirectory <>
Copyright (C) 2011-2018 FusionDirectory Project

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

2019-01-22 FusionDirectory 1.3