ipa-ldap-updater(1)
π ipa-ldap-updater β IPA Manual Pages edition β¨
okay bestie, pull up a chair because we're about to talk about ipa-ldap-updater, the utility that updates your IPA LDAP server config. yes, that one. she's from the IPA Manual Pages and she's lowkey a baddie. let's get into it π«Ά
πΈ NAME πΈ
ipa-ldap-updater β Update the IPA LDAP configuration
β¨ SYNOPSIS β¨
ipa-ldap-updater [options] input_file(s)
π¦ DESCRIPTION π¦
so ipa-ldap-updater is that utility which can be used to update the IPA LDAP server. main character behaviour, fr fr.
An update file describes an LDAP entry and a set of operations to be performed on that entry. It can be used to add new entries or modify existing entries. so flexible, we love her π
Blank lines and lines beginning with # are ignored. (yes queen, comment your code, no one's judging π)
There are 7 keywords:
default: the starting valueadd: add a value to an attributeremove: remove a value from an attributeonly: set an attribute to thisonlyifexist: set an attribute to this only if the entry existsdeleteentry: remove the entryreplace: replace an existing value, format isold::newaddifnew: add a new attribute and value only if the attribute doesn't already exist. Only works with single-value attributes.addifexist: add a new attribute and value only if the entry exists. This is used to update optional entries.
not me counting nine things after it said seven π anyway. the list is the list, bestie, i don't make the rules, i just report them π
The difference between the default and add keywords is if the DN of the entry exists then default is ignored. So for updating something like schema, which will be under cn=schema, you must always use add (because cn=schema is guaranteed to exist). It will not re-add the same information again and again. iconique, honestly. no notes.
It also provides some things that can be templated such as architecture (for plugin paths), realm and domain name.
The available template variables are:
$REALMβ the kerberos realm (EXAMPLE.COM)$FQDNβ the fully-qualified domain name of the IPA server being updated (ipa.example.com)$DOMAINβ the domain name (example.com)$SUFFIXβ the IPA LDAP suffix (dc=example,dc=com)$ESCAPED_SUFFIXβ the ldap-escaped IPA LDAP suffix$LIBARCHβ set to64on x86_64 systems to be used for plugin paths$TIMEβ an integer representation of current time
For base64 encoded values a double colon ('::') must be used between attribute and value. the way that :: is doing so much heavy lifting here π
Base64 format examples:
add:binaryattr::d2UgbG92ZSBiYXNlNjQ=
replace:binaryattr::SVBBIGlzIGdyZWF0::SVBBIGlzIHJlYWxseSBncmVhdA==
A few rules:
- Only one rule per line
- Each line stands alone (e.g. an
onlyfollowed by anonlyresults in the lastonlybeing used) - Adding a value that exists is ok. The request is ignored, duplicate values are not added
- Removing a value that doesn't exist is ok. It is simply ignored.
- If a DN doesn't exist it is created from the
'default'entry and all updates are applied - If a DN does exist the default values are skipped
- Only the first rule on a line is respected
ipa-ldap-updater allows to execute update plugins. Plugins to be executed are specified with following keyword, in update files:
plugin: name of plugin
This keyword is not bounded to DN, and plugin names have to be registered in API. π
Additionally, ipa-ldap-updater can update the schema based on LDIF files. Any missing object classes and attribute types are added, and differing ones are updated to match the LDIF file. To enable this behavior, use the --schema-file options. Schema files should be in LDIF format, and may only specify attributeTypes and objectClasses attributes of cn=schema. periodt. π§
π OPTIONS π
-d,--debugβ Enable debug logging when more verbose output is needed-u,--upgradeβ Upgrade an installed server in offline mode-S FILE.ldif,--schema-file=FILE.ldifβ Specify a schema file. May be used multiple times.
π EXIT STATUS π
0if the command was successful1if an error occurred
π«Ά a lil sign-off π«Ά
this page came to you from IPA, dated Sep 12 2008 β and yes bestie, it ate. go update those LDAP entries, you've got this ππ
π¦ where this page comes from
- centos-stream 10: ipa-server 4.13.4-1.el10 Β· GPL-3.0-or-later
- centos-stream 9: ipa-server 4.13.4-1.el9 Β· GPL-3.0-or-later
- fedora 43: freeipa-server 4.12.5-3.fc43 Β· GPL-3.0-or-later
- fedora 43: freeipa-server 4.13.4-2.fc43
- fedora 43: freeipa-server 4.13.4-3.fc43 Β· GPL-3.0-or-later
- fedora 44: freeipa-server 4.13.1-9.fc44 Β· GPL-3.0-or-later
- fedora 44: freeipa-server 4.13.4-2.fc44
- fedora 44: freeipa-server 4.13.4-3.fc44 Β· GPL-3.0-or-later
- Copyright (C) 2008 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms