📄 readme
字号:
Copyright 2004-2005 Howard Chu, Symas Corp. All rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted only as authorized by the OpenLDAPPublic License.A copy of this license is available in the file LICENSE in thetop-level directory of the distribution or, alternatively, at<http://www.OpenLDAP.org/license.html>.This directory contains a slapd overlay, smbk5pwd, that extends thePasswordModify Extended Operation to update Kerberos keys and Sambapassword hashes for an LDAP user.The Kerberos support is written for Heimdal using its hdb-ldap backend.If a PasswordModify is performed on an entry that has the krb5KDCEntryobjectclass, then the krb5Key and krb5KeyVersionNumber will be updatedusing the new password in the PasswordModify request. Additionally, anew "{K5KEY}" password hash mechanism is provided. For krb5KDCEntries thathave this hash specifier in their userPassword attribute, Simple Bindswill be checked against the Kerberos keys of the Entry. No data isneeded after the "{K5KEY}" hash specifier in the userPassword, it islooked up from the Entry directly.The Samba support is written using the Samba 3.0 LDAP schema. If aPasswordModify is performed on an entry that has the sambaSamAccountobjectclass, then the sambaLMPassword, sambaNTPassword, and sambaPwdLastSetattributes will be updated accordingly.To use the overlay, add: include <path to>/krb5-kdc.schema include <path to>/samba.schema moduleload <path to>smbk5pwd.so ... database bdb ... overlay smbk5pwdto your slapd configuration file. (You should obtain the necessary schemafiles from the Heimdal and/or Samba distributions. At this time, thereare several known errors in these schema files that you will have tocorrect before they will load in slapd. As of Samba 3.0 the schema looksfine as shipped.)All modules compiled in (i.e. krb5 and samba) are enabled; the statement smbk5pwd-enable <module>can be used to enable only the desired one(s); legal values for <module>are "krb5" and "samba", if they are respectively enabled by definingDO_KRB5 and DO_SAMBA.The samba module also supports the smbk5pwd-must-change <seconds>which sets the "sambaPwdMustChange" attribute accordingly to force passwdexpiry. A value of 0 disables this feature.The overlay now supports table-driven configuration, and thus can be run-timeloaded and configured via back-config. The layout of the entry is # {0}smbk5pwd, {1}bdb, config dn: olcOverlay={0}smbk5pwd,olcDatabase={1}bdb,cn=config objectClass: olcOverlayConfig objectClass: olcSmbK5PwdConfig olcOverlay: {0}smbk5pwd olcSmbK5PwdEnable: krb5 olcSmbK5PwdEnable: samba olcSmbK5PwdMustChange: 2592000which enables both krb5 and samba modules with a password expiry timeof 30 days.The provided Makefile builds both Kerberos and Samba support by default.You must edit the Makefile to insure that the correct include and librarypaths are used. You can change the DEFS macro if you only want one or theother of Kerberos or Samba support.This overlay is only set up to be built as a dynamically loaded module.On most platforms, in order for the module to be usable, all of the library dependencies must also be available as shared libraries.If you need to build the overlay statically, you will have to move it into theslapd/overlays directory and edit the Makefile and overlays.c to referenceit. You will also have to define SLAPD_OVER_SMBK5PWD to SLAPD_MOD_STATIC,and add the relevant libraries to the main slapd link command.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -