Customizing mantis with LDAP

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
vijay.opensource
Posts: 9
Joined: 18 Dec 2006, 05:26

Customizing mantis with LDAP

Post by vijay.opensource »

Hi all,
I need some step by step procedure to customize mantis with LDAP. preferred if OpenLDAP. I promise that I will help you in writing a good documentation for that part and if possible for the whole in my free time.

Please help me and I will help you in customizing this beautiful tool.

bye with regards,
Vijay Manohar Rao Gujja
gabriel
Posts: 2
Joined: 23 Jan 2007, 18:30
Location: Florida

LDAP Help

Post by gabriel »

If your openLDAP is up and running the only thing you have to play with is the config_inc.php file (Mantis Configuration file, located under Mantis directory or on Fedora under /etc/mantis directory).
Add a entry similar with this (I used a CA eTrust LDAP so my setting are a little bit diferent) to you config_inc.php file:

#############################
# Mantis LDAP Settings
#############################

# SET UP the Login Method
$g_login_method = LDAP;


$g_ldap_server = 'ldap://localhost:389';
$g_ldap_root_dn = 'ou=Staff,o=MYHOST,c=com';
$g_ldap_organization = '';
$g_ldap_uid_field = 'uid';
$g_ldap_bind_dn ='cn=lduser,ou=Staff,o=MYHOST,c=com';
$g_ldap_bind_passwd = 'secret_password';

This works fine for my LDAP, If you have problems, just keep in mind that config_inc.php is the only place you can change these setings.

Good luck,
Gabriel
Gabriel
ranjanpatro83
Posts: 2
Joined: 12 Jun 2009, 06:29

Re: Customizing mantis with LDAP

Post by ranjanpatro83 »

Hi,
Can you tell me what is wrong when this error comes

APPLICATION ERROR #1404
LDAP Extension Not Loaded.

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

I followed as advised in http://www.mantisbt.org/forums/viewtopic.php?f=2&t=6073 but could not solve my requirement. I am not using OpenLDAP
matejp
Posts: 5
Joined: 10 Jun 2009, 13:55

Re: Customizing mantis with LDAP

Post by matejp »

You have to load (enable) LDAP extension in your php.ini.


Regards,
matejp
matejp
Posts: 5
Joined: 10 Jun 2009, 13:55

Re: Customizing mantis with LDAP

Post by matejp »

You have to enable (load) extension in PHP. To do this open file php.ini in your PHP directory and enable extension LDAP.
Post Reply