Skip to content

Configuration Variables

Deon George edited this page Jan 8, 2024 · 1 revision

The following environment variables are available to tune your configuration (particularly useful with the docker container):

Variable Value Default Purpose
Required Variables
APP_KEY (value from artisan key:generate) not defined This is used to encrypt data used internally. It should only need to be set once for the life of the application
APP_URL http[s]://URL not defined The URL used to get to your PLA instance, eg: https://demo.phpldapadmin.org
LDAP_HOST hostname to your LDAP server not defined A resolvable hostname to your LDAP server
Other Optional Variables
APP_TIMEZONE An applicable timezone UTC This is used to timezone used, mostly for, logging. eg: Australia/Melbourne
CACHE_DRIVER preferred caching driver file You can use memcached here, memcached is included in the image
LDAP_CACHE true/false false We use internal caching to reduce the impact to your LDAP server, this enables that caching
LDAP_BASE_DN Base DN undefined Base DN to your LDAP server, if unset, PLA will try to work it out
LDAP_LOGIN_ATTR LDAP Attribute uid Attribute used to login
LDAP_LOGIN_ATTR_DESC Description of login attribute User ID Shown in the login box, this is a friendly description for the login attribute
LDAP_LOGIN_OBJECTCLASS comma delimited list of objectclasses posixAccount Objectclass that must be on the user's DN to login. This is a comma delimited list, but any match is sufficient to login, eg: posixAccount,inetOrgPerson
LDAP_NAME text LDAP Server Free form text name for your ldap server
LDAP_PORT int 389 TCP port used to query ldap server
LDAP_PASSWORD text undefined Password to ldap server
LDAP_USERNAME dn undefined Authentication DN to connect to ldap server
MEMCACHED_START TRUE or FALSE [undefined] (false) Whether to start memcached when the container starts. You'll need to set this to true, if your CACHE_DRIVER is set to memcached
Clone this wiki locally