I am trying to link up my active directory with mantis using LDAP. Both servers are windows 2003 but the web server is running Apache. I have installed PHP LDAP extention and I am getting the following error:
APPLICATION ERROR #1401
LDAP Server Connection Failed
This is the code that i have inside the config_inc.php file.
$g_allow_signup = ON;
$g_return_path_email = '<<webmaster@opelikaschools.com>>';
$g_administrator_email = '<<webmaster@opelikaschools.com>>';
$g_webmaster_email = '<<webmaster@opelikaschools.com>>';
$g_from_email = '<<webmaster@opelikaschools.com>>';
$g_ldap_server = '<<ldap://mail.opelikaschools.com>>';
$g_ldap_port = '389';
$g_ldap_root_dn = '<<OU=ad,DC=opelikaschools,DC=com>>';
$g_ldap_organization = '???';
$g_ladp_uid_field = 'sAMAccountName';
$g_ldap_bind_dn = '<<???>>';
$g_ldap_bind_passwd = '???';
$g_ldap_protocol_version = 3;
$g_use_ldap_email = OFF;
$g_login_method = LDAP;
$g_use_ldap_realname = ON;
$g_ldap_realname_field = 'cn';
?>
What is going on. I have also placed three question marks in some of the areas I am not sure what the values are suppost to be. I am currently using version 1.1.2
Trying to connect to a Active Directory using LDAP
Moderators: Developer, Contributor
-
- Posts: 1
- Joined: 27 Sep 2008, 04:47
Re: Trying to connect to a Active Directory using LDAP
I have not tried mantis with AD. But I think the $g_ldap_bind_dn = ''; is supposed to be a user name, and not a Distinguished Name.
Maybe something like:
I know on regular LDAP $g_ldap_bind_dn is the full Distinguished Name:
*IF" if you have domain admin privileges, this is a lot easier to test... but obviously most people don't. But maybe if you are trying to set mantis up, you may have.
Good luck.
Maybe something like:
Code: Select all
$g_ldap_bind_dn = 'johndoe';
Code: Select all
$g_ldap_bind_dn = 'cn=admin,dc=example,dc=com'
Good luck.