Authentication

$g_login_method

  • MD5

  • LDAP

  • PLAIN

  • CRYPT

  • CRYPT_FULL_SALT

  • BASIC_AUTH

  • Some systems (mostly non-unix) do not have crypt support in PHP. MD5 will accomplish almost the same thing. PLAIN is plain text and there is no attempt to secure the password in the database. You will not be able to easily convert between encryption methods so this needs to be chosen at install time. MD5 is the default.

$g_reauthentication

TODO

$g_reauthentication_expiry

TODO

LDAP authentication method parameters

$g_ldap_server

The ldap server (eg: ldaps://ldap.example.com).

$g_ldap_port

LDAP port (default 389). If this doesn't work, try 389.

$g_ldap_protocol_version

The LDAP Protocol Version, if 0, then the protocol version is not set. Default is 0. For Active Directory use protocol version 3.

$g_ldap_follow_referrals

Determines whether the LDAP library automatically follows referrals returned by LDAP servers or not. This maps to LDAP_OPT_REFERRALS ldap library option. For Active Directory, this should be set to OFF. Default value is ON.

$g_ldap_root_dn

The root distinguished name. For example, "dc=example, dc=com".

$g_ldap_organization

The organization. For example, "organizationname=*Example)". Default value is ''.

$g_ldap_uid_field

The LDAP field for user id. The default value is 'uid'. For Active Directory, set to 'sAMAccountName'.

$g_ldap_realname_field

The LDAP field for real name (i.e. common name). Default value is 'cn'.

$g_use_ldap_email

Use email address in LDAP rather than the email stored in the database.

$g_use_ldap_realname

Use realname in LDAP rather than the email stored in the database. ON for LDAP, OFF for database. The default value is OFF.

$g_ldap_bind_dn

The distinguished of the user account to use for binding to the LDAP server. For example, 'CN=ldap,OU=Administrators,DC=example,DC=com'.

$g_ldap_bind_passwd

The password for the service account to be used for connecting to the LDAP server.

$g_ldap_simulation_file_path

For development purposes, this is a configuration option that allows replacing the ldap communication with a comma separated text file. The text file has a line per user. Each line includes: user name, user real name, email, password. For production systems this option should be set to ''.