SLAPO-SMBK5PWD(5)
๐ SLAPO-SMBK5PWD ๐
okay bestie, gather round, because this is the slapo-smbk5pwd page from the File Formats Manual and it's literally the password-sync girlie of the OpenLDAP world. โจ
๐ NAME ๐
slapo-smbk5pwd โ the Samba & Kerberos password sync overlay for slapd. ๐
๐ฆ SYNOPSIS ๐ฆ
ETCDIR/slapd.conf
include <path to>/krb5-kdc.schema
include <path to>/samba.schema
moduleload smbk5pwd.so
...
database mdb
...
overlay smbk5pwd
๐ธ DESCRIPTION ๐ธ
So the smbk5pwd overlay for slapd(8) is out here overloading the Password Modify Extended Operation (RFC 3062) โ no cap โ so that when an LDAP user changes their password, it also updates the Kerberos keys and the Samba password hashes. And because that wasn't enough main character energy, it also updates all the password-change-related attributes for Kerberos, Samba and/or UNIX user accounts. Obsessed. ๐ฅ
The Samba side of things is written using the Samba 3.0 LDAP schema; the Kerberos side is written for Heimdal, using its hdb-ldap backend. iykyk. ๐
Alsooooo, there's a shiny new {K5KEY} password hash mechanism provided. For krb5KDCEntry objects that have this scheme specifier chilling in their userPassword attribute, Simple Binds get checked against the Kerberos keys of the entry. And here's the cute part: no data is needed after the {K5KEY} scheme specifier in the userPassword โ it gets looked up from the entry directly. iconic. โจ
๐ CONFIGURATION ๐
The smbk5pwd overlay supports these slapd.conf config options, and bestie, they should appear after the overlay directive. put them in the right spot, I'm begging ๐
smbk5pwd-enable <module>โ lets you enable only the modules you actually want. Legal values for<module>are:krb5โ if the user has thekrb5KDCEntryobjectclass, update thekrb5Keyandkrb5KeyVersionNumberattributes using the new password from the Password Modify operation โ provided the Kerberos account is not expired. (Yes, the original page spells it "Exiration", and no, we're not fixing it, we're just vibing.) Expiration gets determined by evaluating thekrb5ValidEndattribute.sambaโ if the user is asambaSamAccountobject, synchronize thesambaNTPasswordto the password entered in the Password Modify operation, and updatesambaPwdLastSetaccordingly. slay. ๐shadowโ update the attributeshadowLastChange, if the entry has the objectclassshadowAccount.
- By default, all modules compiled in are enabled. Setting this config statement restricts the enabled modules to the ones you explicitly mention. so choose wisely, queen. ๐ซถ
---
smbk5pwd-can-change <seconds>โ if thesambamodule is enabled and the user is asambaSamAccount, update the attributesambaPwdCanChangeto point<seconds>into the future โ which essentially denies any Samba password change until then. A value of0disables this feature.smbk5pwd-must-change <seconds>โ if thesambamodule is enabled and the user is asambaSamAccount, update the attributesambaPwdMustChangeto point<seconds>into the future โ essentially setting the Samba password expiration time. A value of0disables this feature.
---
Alternatively โ because options are a lifestyle โ the overlay supports table-driven configuration, which means it can be run-time loaded and configured via back-config. ๐
๐ EXAMPLE ๐
The layout of a slapd.d based, table-driven configuration entry looks like this, literally copy-paste material:
# {0}smbk5pwd, {1}mdb, config
dn: olcOverlay={0}smbk5pwd,olcDatabase={1}mdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcSmbK5PwdConfig
olcOverlay: {0}smbk5pwd
olcSmbK5PwdEnable: krb5
olcSmbK5PwdEnable: samba
olcSmbK5PwdMustChange: 2592000
which enables both the krb5 and samba modules with a Samba password expiration time of 30 days (= 2592000 seconds). math ate. ๐งฎโจ
๐ SEE ALSO ๐
slapd.conf(5),ldappasswd(1),ldap(3)- "OpenLDAP Administrator's Guide" (
http://www.OpenLDAP.org/doc/admin/)
๐ ACKNOWLEDGEMENTS ๐
This manual page has been written by Peter Marschall, based on the module's README file written by Howard Chu. give them their flowers. ๐
OpenLDAP is developed and maintained by The OpenLDAP Project (http://www.openldap.org/). OpenLDAP is derived from University of Michigan LDAP 3.3 Release.
and that's the whole page, bestie โ no details skipped, no options ghosted, we ate and left no crumbs. ๐ซถ
signing off from OpenLDAP LDVERSION, dated RELEASEDATE, still serving you SLAPO-SMBK5PWD(5) realness. bye babe ๐โจ๐
๐ฆ where this page comes from
- opensuse-leap 16.0: openldap2_6 2.6.13+157-160000.1.1 ยท OLDAP-2.8
- opensuse-leap 16.0: openldap2_6 2.6.13+157-160000.1.1 ยท OLDAP-2.8
- opensuse-leap 16.0: openldap2_6 2.6.13+157-160000.1.1 ยท OLDAP-2.8
- opensuse-leap 16.0: openldap2_6 2.6.13+157-160000.1.1 ยท OLDAP-2.8
- ubuntu stonking: slapd-contrib 2.6.13+dfsg-1ubuntu3 ยท OpenLDAP-2.8
- Copyright 2015-2026 The OpenLDAP Foundation All Rights Reserved
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms