Mantis 1.1.0a3 to authenticate against Active Directory
Posted: 13 Jul 2007, 09:31
Hi,
i want to authanticate Mantis against MS Active Directory.
I installed Mantis dev Version 1.1.0a3.
I've read the documentation searched this forum and the internet but still can't get it working. I also enabled "extension=php_ldap.dll" in "php.ini" and put the whole php folder to path. Then i put the following in "config_defaults_inc.php".
#LDAP connectivity
$g_login_method = LDAP;
$g_ldap_server = 'ldap://<servername>.<domainname>.<locale>/';
$g_ldap_port = '389';
$g_ldap_root_dn = 'DC=<domainname>,DC=<locale>';
$g_ldap_organization = '<domainname>;
$g_ldap_uid_field = 'sAMAccountName';
$g_use_ldap_email = 'ON';
$g_ldap_bind_dn = 'CN=<LDAPBindUsername>, OU=<BindUserGroup>,OU=<Groupname>,DC=<domainname>,DC=<locale>'';
$g_ldap_bind_passwd = '<LDAPBindUserpassword>';
$g_ldap_protocol_version = 3;
If i try to login with a Existing Account in Active Directory i get the following messages on the login screen:
SYSTEM WARNING: ldap_search() [function.ldap-search]: Search: Bad search filter
SYSTEM WARNING: ldap_get_entries(): supplied argument is not a valid ldap result resource
SYSTEM WARNING: ldap_free_result(): supplied argument is not a valid ldap result resource
I've read in somewhere that changing $g_login_method = ADS; will help but if i do so the System Warnings disappear and nothing happens.
Can someone pleaze help me ?
PS: We use several other Applications that successfully authenticate against AD with php but mantis refuses to work.
i want to authanticate Mantis against MS Active Directory.
I installed Mantis dev Version 1.1.0a3.
I've read the documentation searched this forum and the internet but still can't get it working. I also enabled "extension=php_ldap.dll" in "php.ini" and put the whole php folder to path. Then i put the following in "config_defaults_inc.php".
#LDAP connectivity
$g_login_method = LDAP;
$g_ldap_server = 'ldap://<servername>.<domainname>.<locale>/';
$g_ldap_port = '389';
$g_ldap_root_dn = 'DC=<domainname>,DC=<locale>';
$g_ldap_organization = '<domainname>;
$g_ldap_uid_field = 'sAMAccountName';
$g_use_ldap_email = 'ON';
$g_ldap_bind_dn = 'CN=<LDAPBindUsername>, OU=<BindUserGroup>,OU=<Groupname>,DC=<domainname>,DC=<locale>'';
$g_ldap_bind_passwd = '<LDAPBindUserpassword>';
$g_ldap_protocol_version = 3;
If i try to login with a Existing Account in Active Directory i get the following messages on the login screen:
SYSTEM WARNING: ldap_search() [function.ldap-search]: Search: Bad search filter
SYSTEM WARNING: ldap_get_entries(): supplied argument is not a valid ldap result resource
SYSTEM WARNING: ldap_free_result(): supplied argument is not a valid ldap result resource
I've read in somewhere that changing $g_login_method = ADS; will help but if i do so the System Warnings disappear and nothing happens.
Can someone pleaze help me ?
PS: We use several other Applications that successfully authenticate against AD with php but mantis refuses to work.