Mantis 1.1.0a3 to authenticate against Active Directory

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
heinzepreller
Posts: 1
Joined: 13 Jul 2007, 09:18

Mantis 1.1.0a3 to authenticate against Active Directory

Post by heinzepreller »

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.
sanippy
Posts: 1
Joined: 18 Aug 2007, 09:08

Same problem in version 1.1.0a4 and openldap

Post by sanippy »

I am getting the same error while configuring with openldap

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

Can anyone help ?
nitya
Posts: 12
Joined: 18 Jul 2007, 13:24

Hey

Post by nitya »

I get the same error. This can be fixed by plugging the right root dn values, and change the bind dn to username@domain.com.

The only thing is that it has been a couple of weeks since I did this and I've forgotten what the right root dn values are.
Post Reply