LDAP Access

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
egarces
Posts: 1
Joined: 27 Feb 2023, 11:43

LDAP Access

Post by egarces »

Hi,

We have Mantis installed for many years using Basic Access, but we want to upgrade to the last version using LDAP access.

The question is to know if Mantis may have the two different access, by LDAP for the internal company users and basic or HTML for customers.

Also to know if we can add users from two different domains with trust relationship.

Thanks in advanced.

Enrique
Phroobar
Posts: 22
Joined: 13 Dec 2022, 16:14

Re: LDAP Access

Post by Phroobar »

Where you able to make LDAP work? We are moving from basic access to ldap and could really use some examples or pointers.
Phroobar
Posts: 22
Joined: 13 Dec 2022, 16:14

Re: LDAP Access - please help

Post by Phroobar »

I've added these paramaters to my config_inc.php in order to get LDAP working.

$g_login_method = LDAP;
$g_ldap_server = 'dev-ldapad-internal-ep****';
$g_ldap_root_dn = 'DC=DEVT3,DC=NET';

I'm receiving
APPLICATION ERROR #1404
LDAP Extension Not Loaded.
What does that mean?
0 D:\Applications\IssueTracker\IssueTracker_wwwroot\core\ldap_api.php 62 - - trigger_error <string>'1404', <integer>256
1 D:\Applications\IssueTracker\IssueTracker_wwwroot\core\ldap_api.php 374 - - ldap_connect_bind -
2 D:\Applications\IssueTracker\IssueTracker_wwwroot\core\ldap_api.php 344 - - ldap_authenticate_by_username <string>'administrator', <string>'root'
3 D:\Applications\IssueTracker\IssueTracker_wwwroot\core\authentication_api.php 762 - - ldap_authenticate <integer>1, <string>'root'
4 D:\Applications\IssueTracker\IssueTracker_wwwroot\login_page.php 150 - - auth_does_password_match <integer>1, <string>'root'
atrol
Site Admin
Posts: 8243
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: LDAP Access

Post by atrol »

See "Optional extensions" at https://www.mantisbt.org/docs/master/en ... s.software
You have to install the PHP LDAP extension on your server.
Please use Search before posting and read the Manual
Phroobar
Posts: 22
Joined: 13 Dec 2022, 16:14

Re: LDAP Access

Post by Phroobar »

Well we got that to work. However LDAP access is returning 'ldap_search() Operations error in ...\core\ldap_api.php' line 378


This is what we have for ldap settings.
$g_login_method = LDAP;
$g_ldap_server = 'ldap://prod-****;
$g_ldap_root_dn = 'OU=Users,DC=US,DC=BANK-DNS,DC=COM';
$g_ldap_organization = '';
$g_ldap_portcol_version = 3;
$g_ldap_follow_referrals = ON;
$g_ldap_bind_dn = '';
$g_ldap_uid_field = 'uid';
$g_ldap_realname_field = 'cn';
$g_ldap_use_starttls = OFF;
$g_show_detailed_errors=ON;
$g_ldap_uid_field = 'sxxxxx';
Phroobar
Posts: 22
Joined: 13 Dec 2022, 16:14

Re: LDAP Access

Post by Phroobar »

We figured out how to get ldap to work. We needed to use a service account and password. LDAP is working now for us. Thanks everyone for you help.
Post Reply