Table of contents
Source: shared/config.default/tce_ldap.php
Configuration file for LDAP LDAP is the Lightweight Directory Access Protocol, and is a protocol used to access “Directory Servers”. The Directory is a special kind of database that holds information in a tree structure. Check http://www.php.net/manual/en/ref.ldap.php for requirements and installation.
Constants
K_LDAP_BASE_DN
The base DN for the directory.
const K_LDAP_BASE_DN = 'ou=users,dc=mydom,dc=example,dc=org'
Source: shared/config.default/tce_ldap.php:61
K_LDAP_ENABLED
If true enable LDAP.
const K_LDAP_ENABLED = \false
Source: shared/config.default/tce_ldap.php:29
K_LDAP_FILTER
The search filter can be simple or advanced, using boolean operators in the format described in the LDAP documentation. Use “#USERNAME#” as a placeholder for the username passed by login form. For W2K3 use: “(sAMAccountName=#USERNAME#)”
const K_LDAP_FILTER = 'uid=#USERNAME#'
Source: shared/config.default/tce_ldap.php:66
K_LDAP_HOST
LDAP hostname. If you are using OpenLDAP 2.x.x you can specify a URL instead of the hostname. To use LDAP with SSL, compile OpenLDAP 2.x.x with SSL support, configure PHP with SSL, and set this parameter as ldaps://hostname/.
const K_LDAP_HOST = 'localhost'
Source: shared/config.default/tce_ldap.php:34
K_LDAP_PORT
The port to connect to. Not used when using URLs.
const K_LDAP_PORT = 389
Source: shared/config.default/tce_ldap.php:39
K_LDAP_PROTOCOL_VERSION
LDAP protocol version.
const K_LDAP_PROTOCOL_VERSION = 3
Source: shared/config.default/tce_ldap.php:44
K_LDAP_ROOT_DN
The DN for the ROOT Account Set to null for anonymous LDAP binding
const K_LDAP_ROOT_DN = \null
Source: shared/config.default/tce_ldap.php:50
K_LDAP_ROOT_PASS
The password for the ROOT Account Set to null for anonymous LDAP binding
const K_LDAP_ROOT_PASS = \null
Source: shared/config.default/tce_ldap.php:56
K_LDAP_USER_GROUP_ID
Default user group ID.
This is the TCExam group id to which the LDAP accounts belongs. You can also set 0 for all available groups or a string containing a comma-separated list of group IDs.
const K_LDAP_USER_GROUP_ID = 1
Source: shared/config.default/tce_ldap.php:96
K_LDAP_USER_LEVEL
Default user level
const K_LDAP_USER_LEVEL = 1
Source: shared/config.default/tce_ldap.php:89
K_LDAP_UTF8
Set to true if LDAP uses UTF-8 encoding.
const K_LDAP_UTF8 = \true