The ldap.conf configuration file is used to set system-wide defaults to be applied when running ldap clients. If the environment variable LDAPNOINIT is defined, all defaulting is disabled.
Each user may specify an optional configuration file, .ldaprc, in his/her home directory which will be used to override the system-wide defaults file.
Additional configuration files can be specified using the LDAPCONF and LDAPRC environment variables. LDAPCONF may be set the path of a configuration file. This path can be absolute or relative to current working directory. The LDAPRC, if defined, should be a basename of a file in the current working directory or in the user's home directory.
Environmental variables may also be used to augment the file based defaults. The name of the option is the as listed but with a prefix of LDAP. For example, to define BASE via the environment, define the variable LDAPBASE to desired value.
The different configuration options are:
Used to specify the default base DN to use when performing ldap operations. The base must be specified as a Distinguished Name in LDAP format.
Used to specify the default bind DN to use when performing ldap operations. The bind DN must be specified as a Distinguished Name in LDAP format. This is a user-only option.
Used to specify the name(s) of an LDAP server(s) to which ldap library should connect to. Each server's name can be specified as a domain-style name or an IP address and optionally followed a ':' and the port number the ldap server is listening on. A space separated listed of host may be provided.
Used to specify the port used with connecting to LDAP servers(s). The port may be specified as a number.
Used to specify Cyrus SASL security properties. The none flag (without any other properities) causes the flag properites defaults ( noplain flag disables mechanisms susceptible to simple passive attacks. The noactive flag disables mechanisms susceptible to active attacks. The nodict flag disables mechanisms susceptible to passive dictionary attacks. The noanonyous flag disables mechanisms which support anonymous login. The forwardsec flag require forward secrecy between sessions. The passcred require mechanisms which pass client credentials (and allow mechanisms which can pass credentials to do so). The minssf= property specifies the minimum acceptable security strength factor as an integer approximate to effective key length used for encryption. 0 (zero) implies no protection, 1 implies integrity protection only, 56 allows DES or other weak ciphers, 112 allows triple DES and other strong ciphers, 128 allows RC4, Blowfish and other modern strong ciphers. The default is 0. The maxssf= property specifies the maximum acceptable security strength factor as an integer (see minssf description). The default is INT_MAX. The maxbufsize= property specifies the maximum security layer receive buffer size allowed. 0 disables security layers. The default is 65536.
Used to specify a size limit to use when performing searches. The number should be an non-negative integer. SIZELIMIT of zero (0) specifies unlimited search size.
Used to specify a time limit to use when performing searches. The number should be an non-negative integer. TIMELIMIT of zero (0) specifies unlimited search time to be used.