I browsed through previous posts in this forums about LDAP but had no success when looking for a fix to my error.
# --- AD Auth ---
$g_login_method = LDAP;
$g_ldap_server = 'ldap://xxxx.domain.com/';
$g_ldap_root_dn = "DC=domain,DC=com";
$g_ldap_bind_dn = "CN=Service Mantis,OU=IT Accounts,OU=Misc,DC=xxxx,DC=domain,DC=com";
$g_ldap_bind_passwd ="*****";
$g_ldap_organization = "";
$g_ldap_protocol_version = 3;
$g_ldap_uid_field = "sAMAccountName";
When I use this configuration I get a LDAP Server Connection Failed. (APPLICATION ERROR #1401). I can't locate errors in logs either.
# --- Logging ---
$g_log_level = LOG_LDAP | LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:/var/log/mantis.log';
mantis.log remains empty
I'm running version 1.3.0
LDAP configuration
Moderators: Developer, Contributor
Re: LDAP configuration
Comparing against our live config (which uses LDAP successfully), the only obvious difference is I'm specifying the LDAP port to connect to in $g_ldap_server:
As for the log, make sure that the log is owned by your Apache service user (or whatever httpd you're using), otherwise the service won't be able to write to the log.
Code: Select all
$g_ldap_server = 'ldap://ldap.domain.local:389/';