LDAP configuration

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
darkjin
Posts: 5
Joined: 20 Jul 2016, 15:40

LDAP configuration

Post by darkjin »

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
mlcrane
Posts: 27
Joined: 21 Apr 2011, 08:21

Re: LDAP configuration

Post by mlcrane »

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:

Code: Select all

$g_ldap_server = 'ldap://ldap.domain.local:389/';
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.
Post Reply