Page 1 of 1
Active Directory / LDAP issues
Posted: 04 Feb 2010, 15:00
by jeremy.weiss
I'm attempting to get MantisBT 1.1.8 up and running and I'm having some issues with authenticating through Active Directory. I've followed the advice and instructions on the following pages:
http://www.mantisbt.org/wiki/doku.php/m ... _directory
http://www.mantisbt.org/forums/viewtopi ... +directory (because my user names have the period between first and last)
But it hasn't fixed the issue. If I hose something up, I get the typical error message saying that it can't connect to the LDAP server. But when I have everything configure how I think is right, I don't get any errors. But when I log in it still tells me "Your account may be disabled or blocked or the username/password you entered is incorrect."
Here's the ldap section of my config file:
Code: Select all
# --- ldap settings --------
# This is the settings to connect to LDAP
$g_login_method = LDAP;
$g_ldap_server = 'ldap://subdomain.domain.com';
$g_ldap_port = 389;
$g_ldap_root_dn = 'dc=subdomain,dc=domain,dc=com';
$g_ldap_bind_dn = 'CN=corridor,CN=Users,DC=subdomain,DC=domain,DC=com';
$g_ldap_bind_passwd = 'xxxxxxxxxxxxx';
$g_use_ldap_email = ON;
$g_ldap_organization = '';
$g_ldap_protocol_version = 3;
$g_ldap_uid_field = 'sAMAccountName';
If someone has a few moments to spare, I could really use some help figuring this out.
Thanks,
Jeremy
Re: Active Directory / LDAP issues
Posted: 05 Feb 2010, 14:44
by jeremy.weiss
Anyone? I'm having trouble debugging this since I can't seem to generate any errors (or I'm not looking in the right place for them).
Thanks,
Jeremy
Re: Active Directory / LDAP issues [Solved]
Posted: 08 Feb 2010, 14:37
by jeremy.weiss
Upgraded from the last stable to the latest overnight build last Friday and things are working fine now.
-jeremy
Re: Active Directory / LDAP issues
Posted: 08 Feb 2010, 19:26
by Kirill
jeremy.weiss wrote:Anyone? I'm having trouble debugging this since I can't seem to generate any errors (or I'm not looking in the right place for them).
Thanks,
Jeremy
Right place - it's config_inc.php, where value for this file you can found in config_default_inc.php.
search LOG_LDAP.
Re: Active Directory / LDAP issues
Posted: 15 Feb 2010, 05:33
by bhasker.varma
Kirill wrote:Right place - it's config_inc.php, where value for this file you can found in config_default_inc.php.
search LOG_LDAP.
I am running into same problem.. Cannot generate logs for the Auth failures with LDAP. I had already searched entire Mantis documentation and config_default_inc.php. Cannot find terms for related to LOG. Could it be some place else because of the version I am running : 1.1.8
[root@Mantis ~]# more /opt/mantisbt/latest/config_defaults_inc.php |grep -i LDAP
# Mantis LDAP Settings
# look in README.LDAP for details
# --- using openldap -------------
# $g_ldap_server = 'ldaps://ldap.example.com.au/';
# $g_ldap_port = '636';
# $g_ldap_root_dn = 'dc=example,dc=com,dc=au';
# $g_ldap_organization = ''; # e.g. '(organizationname=*Traffic)'
# $g_ldap_uid_field = 'uid'; # Use 'sAMAccountName' for Active Directory
# $g_ldap_bind_dn = '';
# $g_ldap_bind_passwd = '';
# $g_use_ldap_email = OFF; # Should we send to the LDAP email address or what MySql tells us
# The LDAP Protocol Version, if 0, then the protocol version is not set.
# $g_ldap_protocol_version = 0;
# CRYPT or PLAIN or MD5 or LDAP or BASIC_AUTH
$g_login_method = LDAP;
I am running Mantis Stable release 1.1.8. Heres my question with details of debugging I have done so far:
http://www.mantisbt.org/forums/viewtopic.php?f=3&t=9878
-Bhasker
Re: Active Directory / LDAP issues
Posted: 15 Feb 2010, 09:26
by Kirill
Sorry, MantisBT 1.1.x support only this log
Code: Select all
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT | LOG_FILTERING | LOG_AJAX;
You can install near installation 1.2.x and check config in 1.2.x with loging.
Re: Active Directory / LDAP issues
Posted: 15 Feb 2010, 09:28
by Kirill
I am running into same problem.. Cannot generate logs for the Auth failures with LDAP. I had already searched entire Mantis documentation and config_default_inc.php. Cannot find terms for related to LOG. Could it be some place else because of the version I am running : 1.1.8
[root@Mantis ~]# more /opt/mantisbt/latest/config_defaults_inc.php |grep -i LDAP
# Mantis LDAP Settings
# look in README.LDAP for details
# --- using openldap -------------
# $g_ldap_server = 'ldaps://ldap.example.com.au/';
# $g_ldap_port = '636';
# $g_ldap_root_dn = 'dc=example,dc=com,dc=au';
# $g_ldap_organization = ''; # e.g. '(organizationname=*Traffic)'
# $g_ldap_uid_field = 'uid'; # Use 'sAMAccountName' for Active Directory
# $g_ldap_bind_dn = '';
# $g_ldap_bind_passwd = '';
# $g_use_ldap_email = OFF; # Should we send to the LDAP email address or what MySql tells us
# The LDAP Protocol Version, if 0, then the protocol version is not set.
# $g_ldap_protocol_version = 0;
# CRYPT or PLAIN or MD5 or LDAP or BASIC_AUTH
$g_login_method = LDAP;
I am running Mantis Stable release 1.1.8. Heres my question with details of debugging I have done so far:
http://www.mantisbt.org/forums/viewtopic.php?f=3&t=9878
-Bhasker[/quote]
First, you must set values in config_inc.php.
Second, You don't set real ldap settings, only login method. Wich server, etc.?
Re: Active Directory / LDAP issues
Posted: 16 Feb 2010, 08:31
by bhasker.varma
Kirill, thanks for replying..
Yes, I am using config_inc.php to set the values (you can see my original thread and point if I have something missing over there:
http://www.mantisbt.org/forums/viewtopic.php?f=3&t=9878) and using config_default_inc.php to set the method.
Also, thanks for your referrence to 1.2.x to get logging features.. I completely overlooked the release of 1.2.x RC2! I'll give it a try.
-Bhasker
Re: Active Directory / LDAP issues
Posted: 16 Feb 2010, 21:37
by Kirill