LCMAPS_LDAP_ENF.MOD(8)
π lcmaps_ldap_enf.mod β it's giving "manual page, but make it cute" β¨
okay bestie, welcome to the LCMAPS_LDAP_ENF.MOD(8) page, living in the System Manager's Manual section. this one is a whole vibe: it's the LCMAPS plugin that goes into your LDAP directory and updates stuff. let's get into it π¦
πΈ NAME πΈ
lcmaps_ldap_enf.mod β the LCMAPS plugin that updates ldap based on your credentials, no cap π
β¨ SYNOPSIS β¨
lcmaps_ldap_enf.mod -maxuid maxuid -maxpgid maxpgid -maxsgid maxsgid
-hostname hostname -port port [-require_all_groups {yes|no}] -dn_manager
DN -ldap_pw filename -sb_groups searchbase -sb_user searchbase -timeout
seconds
okay so look at that synopsis, it's a lot, but we're gonna walk through every single flag together, don't even worry π«Ά
π DESCRIPTION π
so the Ldap enforcement plugin will alter the user and group settings in the ldap database, using the user and group settings that the credential acquisition plugins handed over. that's the whole job, that's the main character energy right there π
β οΈ note this, bestie, it's important: LDAP has to be used as the source of account information for PAM or NSS, and it has to be RFC 2307 compliant. no exceptions, periodt.
π OPTIONS π
okay here's the full roster, every single one, we're not skipping anybody:
-maxuidmaxuid β the maximum number of uids that can be used. and listen, it is strongly advised to set this to1. like, seriously. do it. π-maxpgidmaxpgid β the maximum number of primary gids that can be used.-maxsgidmaxsgid β the maximum number of (secondary) gids that can be used, and no, the primary group does not count in this one. advised value?1. iconic. β¨-hostnamehostname β the hostname where the LDAP server is chillin', likeasen.nikhef.nl-portport β the port number you connect to, like389-require_all_groups {yes|no}β tells you whether all the groups that the PluginManager set shall be used. default is'yes'π-dn_managerDN β the DN of the LDAP manager, like"cn=Manager,dc=root"-ldap_pwfilename β the path to the file holding the LDAP manager's password.
π okay this one is a whole thing: the mode of the password file must be read-only for root (400), otherwise the plugin will not run. not even a little bit. sochmodaccordingly, bestie.
-sb_groupssearchbase β the search base for the (secondary) groups, like"ou=LocalGroups, dc=example, dc=com"-sb_usersearchbase β the search base for the user, like"ou=LocalUsers, dc=example, dc=com"-timeouttimeout value β the timeout, in seconds, that gets applied to the ldap binding β³
π RETURN VALUE π
LCMAPS_MOD_SUCCESSβ success!! we ate π πLCMAPS_MOD_FAILβ failure. it's giving pain π
π¦ BUGS π¦
found a bug? please report any errors to the Nikhef Grid Middleware Security Team <grid-mw-security-support@nikhef.nl>. they wanna hear about it, fr fr π«Ά
π₯ SEE ALSO π₯
lcmaps.db(5), lcmaps(3), ldap(3). go read those too, iykyk π
π AUTHORS π
LCMAPS and the LCMAPS plug-ins were written by the Grid Middleware Security Team <grid-mw-security@nikhef.nl>. legends, honestly. π
and that's the whole page, bestie!! π this little gem lives in the System Manager's Manual, and the version you're reading is dated March 22, 2011. go forth and enforce that ldap, you've got this πΈπ β¨
π¦ where this page comes from
- debian bookworm: lcmaps-plugins-basic-ldap 1.7.1-1+b3 Β· Apache-2.0
- debian trixie: lcmaps-plugins-basic-ldap 1.7.1-2+b1 Β· Apache-2.0
- ubuntu jammy: lcmaps-plugins-basic-ldap 1.7.1-1build1 Β· Apache-2.0
- ubuntu noble: lcmaps-plugins-basic-ldap 1.7.1-1ubuntu2 Β· Apache-2.0
- ubuntu questing: lcmaps-plugins-basic-ldap 1.7.1-2
- ubuntu resolute: lcmaps-plugins-basic-ldap 1.7.1-3 Β· Apache-2.0
- ubuntu stonking: lcmaps-plugins-basic-ldap 1.7.1-3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms