LDAPGenerateHomedir

Name

LDAPGenerateHomedir --  Enable the generation of user home directories on demand

Synopsis

LDAPGenerateHomedir [ on off ]

Default

LDAPGenerateHomedir off

Context

server config, <VirtualHost>, <Global>

Module

mod_ldap

Compatibility

mod_ldap v2.8.13 and later

Description

By default, the mod_ldap module uses the homeDirectory attribute to determine what home directory to use for the session. Sometimes, however, an administrator will want to use a different home directory for these FTP/SFTP sessions, something other than the path in the homeDirectory attribute. The LDAPGenerateHomedir directive is used for situations like this.

The LDAPGenerateHomedir directive configures the mod_ldap module to "generate" a new home directory value, overriding the value from the homeDirectory attribute. The generated home directory value requires that a starting point for the new home directory, a "prefix", also be provided using the LDAPGenerateHomedirPrefix directive.

The LDAPGenerateHomedir directives does not cause the new home directory to be created on the filesystem. It only changes the home directory value that the mod_ldap module provides to the ProFTPD engine. The creation of the home directory, if it does not already exist, is done using the CreateHome directive.

See also

LDAPForceGeneratedHomedir LDAPGenerateHomedirPrefix LDAPGenerateHomedirPrefixNoUsername

Examples