mantis cannot login with openldap
Posted: 15 Aug 2008, 03:51
first, I'm sorry for my poor english,I'm running an apache server, v2.0.52, php v4.3.9 and mysql v5.0.51b on CentOS 4.6 ,Mantis 1.1.2. I want to configure OpenLDAP 2.2.13 authentication for Mantis.
Here is my Mantis config_inc.php:
$g_hostname = "localhost";
$g_db_username = "root";
$g_db_password = "";
$g_database_name = "bugtracker";
$g_db_type = "mysql";
$g_ldap_server = 'ldap://localhost';
$g_ldap_port = '389';
$g_ldap_root_dn = 'dc=example,dc=com';
$g_ldap_organization = ' ';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_bind_dn = 'cn=admin,dc=example,dc=com';
$g_ldap_bind_passwd = 'ghl';
$g_use_ldap_email = OFF;
$g_ldap_protocol_version = 3;
and my Openldap slapd.conf is:
database bdb
suffix "dc=example,dc=com"
rootdn "cn=admin,dc=example,dc=com"
rootpw secret
apache's authz_ldap.conf is:
<IfModule mod_authz_ldap.c>
<Directory />
AuthzLDAPMethod ldap
AuthzLDAPServer localhost
AuthzLDAPUserBase ou=People,dc=example,dc=com
AuthzLDAPUserKey uid
AuthzLDAPUserScope base
AuthType basic
AuthName "ldap@example.com"
require valid-user
</Directory>
There's a directory authentication when I access to Mantis's web, and i can pass it with the user name and password what i config in the openldap .ldif files. But what i want is to configure OpenLDAP for the users and passwords authentication for Mantis,when I use the users and passwords in .ldif files,I can't pass the login and get the error message as follow:
"APPLICATION ERROR #1200
Invalid email."
Any help will be really appreciated. With Best regards!
Here is my Mantis config_inc.php:
$g_hostname = "localhost";
$g_db_username = "root";
$g_db_password = "";
$g_database_name = "bugtracker";
$g_db_type = "mysql";
$g_ldap_server = 'ldap://localhost';
$g_ldap_port = '389';
$g_ldap_root_dn = 'dc=example,dc=com';
$g_ldap_organization = ' ';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_bind_dn = 'cn=admin,dc=example,dc=com';
$g_ldap_bind_passwd = 'ghl';
$g_use_ldap_email = OFF;
$g_ldap_protocol_version = 3;
and my Openldap slapd.conf is:
database bdb
suffix "dc=example,dc=com"
rootdn "cn=admin,dc=example,dc=com"
rootpw secret
apache's authz_ldap.conf is:
<IfModule mod_authz_ldap.c>
<Directory />
AuthzLDAPMethod ldap
AuthzLDAPServer localhost
AuthzLDAPUserBase ou=People,dc=example,dc=com
AuthzLDAPUserKey uid
AuthzLDAPUserScope base
AuthType basic
AuthName "ldap@example.com"
require valid-user
</Directory>
There's a directory authentication when I access to Mantis's web, and i can pass it with the user name and password what i config in the openldap .ldif files. But what i want is to configure OpenLDAP for the users and passwords authentication for Mantis,when I use the users and passwords in .ldif files,I can't pass the login and get the error message as follow:
"APPLICATION ERROR #1200
Invalid email."
Any help will be really appreciated. With Best regards!