![]() |
![]()
| ![]() |
![]()
NAMEslapo-homedir - Home directory provisioning overlay SYNOPSIS/usr/local/etc/openldap/slapd.conf DESCRIPTIONThe homedir overlay causes slapd(8) to notice changes involving RFC-2307bis style user-objects and make appropriate changes to the local filesystem. This can be performed on both master and replica systems, so it is possible to perform remote home directory provisioning. CONFIGURATIONBoth slapd.conf and back-config style configuration is supported.
REPLICATIONThe homedir overlay can operate on either master or replica systems with no changes. See slapd.conf(5) or slapd-config(5) for more information on configure syncrepl. Partial replication (e.g. with filters) is especially useful for providing different provisioning options to different sets of users. EXAMPLEThe following LDIF could be used to add this overlay to cn=config (adjust to suit) dn: cn=module{0},cn=config changetype: modify add: olcModuleLoad olcModuleLoad: homedir dn: olcOverlay=homedir,olcDatabase={1}mdb,cn=config changetype: add objectClass: olcOverlayConfig objectClass: olcHomedirConfig olcOverlay: homedir olcSkeletonPath: /etc/skel olcMinimumUidNumber: 1000 olcHomedirRegexp: ^(/home/[-_/a-z0-9]+)$ /export/$1 olcHomedirDeleteStyle: ARCHIVE olcHomedirArchivePath: /archive BUGSDELETE, MOD, and MODRDN operations that remove the unix attributes when delete style is set to DELETE will recursively delete the (regex modified) home directory from the disk. Please be careful when deleting or changing values. MOD and MODRDN will correctly respond to homeDirectory changes and perform a non-destructive rename() operation on the filesystem, but this does not correctly retry with a recursive copy when moving between filesystems. The recursive copy/delete/chown/tar functions are not aware of ACLs, extended attributes, forks, sparse files, or hard links. Block and character device archival is non-portable, but should not be an issue in home directories, hopefully. Copying and archiving may not support files larger than 2GiB on some architectures. Bare POSIX UStar archives cannot support internal files larger than 8GiB. The current tar generator does not attempt to resolve uid/gid into symbolic names. No attempt is made to try to mkdir() the parent directories needed for a given home directory or archive path. FILES
SEE ALSOslapd.conf(5), slapd-config(5), slapd(8), RFC-2307, RFC-2307bis. ACKNOWLEDGEMENTSThis module was written in 2009 by Emily Backes for Symas Corporation.
|