FUSIONDIRECTORY-SETUP(1)
π NAME π
fusiondirectory-setup β the FusionDirectory configuration management tool, bestie edition β¨
(also known as FUSIONDIRECTORY-SETUP(1) in the official FusionDirectory docs, iykyk)
π¦ DESCRIPTION π¦
Okay so listen. This script? It's literally your FusionDirectory/LDAP bestie. It runs a bunch of checks on your whole FusionDirectory/LDAP architecture and then fixes the usual misconfiguration for you. No cap.
And because it's an overachiever, it also has some extra features that let you install FusionDirectory's plugins and change destination directories. Main character energy fr fr. π
πΈ Options πΈ
--update-cacheβ refreshes the/var/cache/fusiondirectory/class.cachefile, which is the little cutie holding the PHP classes used in FusionDirectory plus their locations. π--update-localesβ updates internationalization by generating a fresh.molocales file for every language, using every.pofile it can find. Heads up bestie: this one needsmsgcatandmsgfmtto be installed or it simply cannot. π--check-directoriesβ runs a check on literally all of FusionDirectory's files or directories. vibe check for your filesystem β¨--check-configβ runs a check on FusionDirectory's config file. π--check-ldapβ checks your LDAP tree, looking for the admin account and for the groups or people branch. If one of those doesn't exist, the script will ask you what to do. So stay alert, it wants your opinion. π--check-idsβ checks your LDAP tree for duplicateduidNumberorgidNumberamong users and groups. Duplicates are giving messy, we don't do that. π--migrate-usersβ adds FusionDirectory attributes to the people branch. π«Ά--migrate-phonesβ removes the device objectClass for phones, becausefdPhonesis now structural since FD 1.1. Evolution, slay. π¦--migrate-systemsβ replaces old systems objectClasses with the new objectClasses from FD 1.1. β¨--migrate-winstationsβ replaces old winstations objectClasses with the new objectClasses from FD 1.1. β¨--migrate-dhcpβ moves DHCP configurations from the systems branch to the DHCP branch, which is necessary for FusionDirectory 1.0.17 and above. Necessary bestie, not optional. π--migrate-supannentiteβ adds the{SUPANN}prefix that was missing insupannTypeEntitevalues before FD 1.3. It was just wandering around prefix-less, poor thing. π₯Ί--delete-gosa-locksβ deletes old GOsa style lock tokens from 1.0.15 or older. Byeee legacy tokens π--install-pluginsβ installs the plugin from atar.gzof the plugin. This option is intended for people wanting to install from the sources. π--encrypt-passwordsβ encrypts the password inside yourfusiondirectory.conffile. It needs theheadersmodule to be activated in your apache to work β no headers module, no encryption, periodt. π₯--show-versionβ parses the filevariables_common.incof FusionDirectory to find out which version of FusionDirectory is installed. Detective mode π--list_varsβ lists the variables you can change to install FusionDirectory on another set of directories. This option is intended for people wanting to install from the sources. π--write-varsβ writes back thevariables.incfile with the updated variables. It's only useful with--set-VAR=variable, and it's for people installing from sources. π--set-VAR=variableβ changes the variable for the FusionDirectory installation. It's only useful with--install-directories, and again, for people installing from sources. β¨--list-deprecatedβ lists the deprecated attributes and objectclasses that are still hanging around in your schemas and no longer used by FusionDirectory. They're so 2011 ngl. π--check-deprecatedβ lists thednof LDAP entries that are using deprecated attributes or objectclasses, and no longer used by FusionDirectory. π΅οΈ--ldif-deprecatedβ prints an LDIF to allow you to remove deprecated attributes from your ldap server.
β οΈ Be careful and check before applying! This one is a real-life "measure twice, cut once" situation bestie, do not just yeet it at your server. π
--show-configβ prints a dump of the FusionDirectory configuration LDAP node. Show me everything π--set-config-VAR=valueβ sets the value of a configuration field in the LDAP. The value needs to be in the correct LDAP format. You cannot set a multivalued field with this. The var name can be provided with or without thefdprefix. π--yesβ this flag answers "yes" to every yes/no question asked by the script. Automatic yes, no thinking required, iconic behaviour fr fr. β
β¨ EXAMPLE β¨
benoit@catbert$ fusiondirectory-setup --update-cache --update-locales
Update FusionDirectory class cache and update localization
benoit@catbert$ fusiondirectory-setup --list-vars
List possible vars to give --set
locale_cache_dir [locale]
config_file [fusiondirectory.conf]
fd_cache [/var/cache/fusiondirectory]
fd_smarty_dir [/usr/share/php/smarty3]
fd_spool_dir [/var/spool/fusiondirectory]
fai_log_dir [fai]
tmp_dir [tmp]
secrets_file [fusiondirectory.secrets]
template_dir [template]
locale_dir [locale]
class_cache [class.cache]
fd_config_dir [/etc/fusiondirectory]
fd_home [/var/www/fusiondirectory]
benoit@catbert$ fusiondirectory-setup --set-class_cache=class.cache --write-vars
update the class.cache name and write back the variables.inc file
π BUGS π
Found a bug? Have a suggestion? Please report any bugs, or post any suggestions, to the fusiondirectory mailing list fusiondirectory-users, or open an issue at <https://gitlab.fusiondirectory.org/fusiondirectory/fd/issues/new> π
π AUTHORS π
- Benjamin Carpentier
- Come Bernigaud
π LICENCE AND COPYRIGHT π
This code is part of FusionDirectory (http://www.fusiondirectory.org/) π
Copyright (C) 2011-2018 FusionDirectory
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. π«Ά
And that's the whole page bestie π β this was FusionDirectory 1.3, dated 2019-03-04, filed under FUSIONDIRECTORY-SETUP(1). Go forth and let your LDAP architecture be unproblematic for once β¨ππ¦
π¦ where this page comes from
- ubuntu jammy: fusiondirectory 1.3-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms