LDAP intergration doesnt seem to be working

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
kc123
Posts: 2
Joined: 22 Apr 2024, 14:49

LDAP intergration doesnt seem to be working

Post by kc123 »

Hi All,

Setting up a fresh install for MantisBT and got the server and site up and running. Can login locally using admin credentials no issues.

The issue I am having now is getting LDAP integration to work. We currently use Bugzilla and I have LDAP integration setup with no issues but here I am struggling.

Whenever I try to login with my AD creds i get the following error, "Your account may be disabled or blocked or the username/password you entered is incorrect"

Here is a snip it of what my LDAP settings look like in the Config_defaults_inc file.

$g_ldap_server = 'ldap://servername.domain.com:389';
$g_ldap_use_starttls = OFF;
$g_ldap_tls_protocol_min = OFF;
$g_ldap_root_dn = 'cn=Employees,dc=DomainName,dc=com';
$g_ldap_protocol_version = 3;
$g_ldap_bind_dn = 'cn=username,ou=Resources,DC=DomainName,DC=COM';
$g_ldap_bind_passwd = 'Password';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_realname_field = 'cn';
$g_use_ldap_realname = ON;

Any ideas where I could be messing up the settings?
cas
Posts: 1625
Joined: 11 Mar 2006, 16:08
Contact:

Re: LDAP intergration doesnt seem to be working

Post by cas »

did you check this post: viewtopic.php?t=28211&hilit=ldap ?
kc123
Posts: 2
Joined: 22 Apr 2024, 14:49

Re: LDAP intergration doesnt seem to be working

Post by kc123 »

Yes I tried some of the suggested from that and no solution. Is there a location for logs?
cas
Posts: 1625
Joined: 11 Mar 2006, 16:08
Contact:

Re: LDAP intergration doesnt seem to be working

Post by cas »

did you try this setting in core/config_inc.php:
$g_show_detailed_errors=ON;

This may give you a clue.
In addition you can setup logging by setting this:
/**
* System logging
* This controls the type of logging information recorded.
* The available log channels are:
*
* LOG_NONE, LOG_EMAIL, LOG_EMAIL_RECIPIENT, LOG_EMAIL_VERBOSE, LOG_FILTERING,
* LOG_AJAX, LOG_LDAP, LOG_DATABASE, LOG_WEBSERVICE, LOG_PLUGIN, LOG_ALL
*
* and can be combined using
* {@link http://php.net/language.operators.bitwise PHP bitwise operators}
* Refer to {@link $g_log_destination} for details on where to save the logs.
*
* @global integer $g_log_level
*/
$g_log_level = LOG_NONE;

/**
* Specifies where the log data goes
*
* The following five options are available:
* - '': The empty string means {@link http://php.net/error_log
* default PHP error log settings}
* - 'none': Don't output the logs, but would still trigger EVENT_LOG
* plugin event.
* - 'file': Log to a specific file, specified as an absolute path, e.g.
* 'file:/var/log/mantis.log' (Unix) or
* 'file:c:/temp/mantisbt.log' (Windows)
* - 'page': Display log output at bottom of the page. See also
* {@link $g_show_log_threshold} to restrict who can see log data.
*
* @global string $g_log_destination
*/
$g_log_destination = '';
Post Reply