LDAP-SCHEMA-MANAGER(1)
π LDAP-SCHEMA-MANAGER π
okay bestie, listen up β this is ldap-schema-manager, and it's from the Schema2ldif Documentation era, so you know it's got that classic vibe. it's a little script that handles schema management for an openldap server running in cn=config mode. she's giving admin-tool main character energy and honestly? she ate. π
β¨ NAME β¨
ldap-schema-manager β manage schema to be inserted into in openldap server in cn=config mode π
π¦ SYNOPSIS π¦
ldap-schema-manager [-y] [-n] [-c] [-o options] [path] [-h|-l|-i schema1
schema2|-m schema1 schema2|-e schema1 schema2]
πΈ DESCRIPTION πΈ
okay so this program will list, insert, empty or modify the ldap schemas into an openldap server in cn=config mode. no cap. π«Ά
if a schema is not listed as a path, it will be searched for in the provided path, or in /etc/ldap/schema/ if no path has been provided. and heads up β to insert schemas from the working directory, prepend them with ./. β¨
a schema with no extension is assumed to be .ldif. and if you specify .schema? that's when you want the tool to autoconvert the schema to an ldif file. π
see the examples for more information, bestie β they're further down and they're lowkey the best part.
π Options π
-iβ This option insert the given list of schemas π-mβ This option insert the given list of schemas, replacing already inserted versions of those schemas β¨-eβ This option empty the given list of schemas, removing attributes and objectClasses from those. This is useful because you cannot delete a schema without restartingslapd. π (yeah, fr fr β no delete without a restart, that's just the rules)-lβ This option list inserted schemas π-nβ This option will make generated ldifs file to not be deleted after execution. Might be useful to understand errors. π (genuinely so helpful when something's acting up)-cβ This option make the program continue even if an error occur π-yβ This option answer yes to all questions. The only question right now is the confirmation one when you ask to empty a schema. π-oβ This option allow you to specify specifics options to give to ldap commands such asldapmodify, but beware that you will not be able to see things like password prompts as the output of these commands is piped. π
π§ Special options π§
--tool-nameβ This option allows you to set the binary name to use in usage output, only useful if you wish to create a tool based uponldap-schema-manager. π οΈ--default-pathβ This option defines the default path, which is otherwise/etc/ldap/schema/π--default-schemasβ This option specifies the default list of schemas to use in case no schema list is given. Only useful if you create a tool based upon this one. The list needs to end with--end. π
π EXAMPLES π
look at her go β these are literally the best part of the whole page:
admin@ldapserver$ ldap-schema-manager -i /etc/ldap/otherschema/myschema.ldif
Insert the schema /etc/ldap/otherschema/myschema.ldif
admin@ldapserver$ ldap-schema-manager -i /etc/ldap/otherschema/myschema.schema
Convert /etc/ldap/otherschema/myschema.schema to ldif and insert it
admin@ldapserver$ ldap-schema-manager -i myschema
Insert the schema myschema.ldif from default directory (/etc/ldap/schema/)
admin@ldapserver$ ldap-schema-manager -i myschema.schema
Insert the schema myschema.schema from default directory (/etc/ldap/schema/)
admin@ldapserver$ ldap-schema-manager -m /etc/ldap/otherschema/myschema.schema
Convert /etc/ldap/otherschema/myschema.schema to ldif and replace the existing schema by this one
admin@ldapserver$ ldap-schema-manager -e myschema
Empty the schema myschema
admin@ldapserver$ ldap-schema-manager -o "-H ldap://my.ldap.com -ZZ -D 'cn=admin,cn=config' -w password -x" -l
Connect to another ldap server and list schemas
π BUGS π
Please report any bugs, or post any suggestions, to the fusiondirectory mailing list fusiondirectory-users or to <https://forge.fusiondirectory.org/projects/fdirectory/issues/new> π
β AUTHOR β
Come Bernigaud π
π LICENCE AND COPYRIGHT π
This code is part of FusionDirectory <http://www.fusiondirectory.org>
Copyright (C) 2011-2017 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. π€
okay that's the whole thing, bestie!! this page is Schema2ldif version 1.3, dated 2017-04-19, and it's filed under the LDAP-SCHEMA-MANAGER(1) manual. go manage those schemas, you absolute icon πβ¨π¦π
π¦ where this page comes from
- debian bookworm: schema2ldif 1.3-4 Β· BSD-3-Clause
- debian trixie: schema2ldif 1.3-4 Β· BSD-3-Clause
- nixos 26.05: schema2ldif 1.3
- nixpkgs unstable: schema2ldif 1.3
- ubuntu jammy: schema2ldif 1.3-3 Β· BSD-3-Clause
- ubuntu noble: schema2ldif 1.3-4 Β· BSD-3-Clause
- ubuntu questing: schema2ldif 1.3-4
- ubuntu resolute: schema2ldif 1.3-4build1 Β· BSD-3-Clause
- ubuntu stonking: schema2ldif 1.3-4build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms