Active Directory authentication (Windows 2008) [SOLVED]

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
Mejstro
Posts: 24
Joined: 07 May 2014, 12:07

Active Directory authentication (Windows 2008) [SOLVED]

Post by Mejstro »

Hallo,
I am novice with the Mantis Bug tracker and I have a problem with Active Directory Integration.
After setting of config_inc.php I can´t connect to AD server. Port TCP 389 is listenning, Windows guests can be authenticated without problems, but Mantis shows APPLICATION ERROR #1401.
I haven´t found any solution or advice over the internet and so I am trying this forum. Can anybody give me any advice? Thanks a lot.

My config_inc.php

Code: Select all

$g_login_method = LDAP;
$g_ldap_server = 'ldap://myserver-01.domain.cze:389';
$g_ldap_root_dn = 'ou=Users,dc=domain,dc=cze';
$g_ldap_uid_field = 'sAMAccountName';        
$g_ldap_bind_dn = 'cn=domain_user_name,dc=domain,dc=cze';
$g_ldap_bind_passwd = 'domain_user_password'; 
$g_ldap_protocol_version = 3;
Last edited by Mejstro on 09 May 2014, 06:12, edited 3 times in total.
atrol
Site Admin
Posts: 8573
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Active Directory authentication (Windows 2008)

Post by atrol »

I don't use LDAP myself, thus I cannot offer that much help.
This post might help some way http://www.mantisbt.org/forums/viewtopi ... 379#p54434
Please use Search before posting and read the Manual
Mejstro
Posts: 24
Joined: 07 May 2014, 12:07

Re: Active Directory authentication (Windows 2008)

Post by Mejstro »

Thank you very much for you answer...It realy helped :)
Authentication with LDAP is working like a charm now, with only one issue.
I have no entry in AD user email fields and so I tried $g_use_ldap_email= OFF settings. But Mantis shows a "Invalid email" error after login.
When I set up $g_use_ldap_email= ON, Authentication against LDAP server is correct, but new user is not allowed to change email in his profile page.
And here is my question: Is possible to allow users change their email adress in Mantis after login via AD?
Thanks a lot for any answer.
Mejstro
Posts: 24
Joined: 07 May 2014, 12:07

Re: Active Directory authentication (Windows Server 2008)

Post by Mejstro »

Now I have a solution:

Code: Select all

$g_use_ldap_email= OFF;
$g_validate_email= OFF;
atrol
Site Admin
Posts: 8573
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Active Directory authentication (Windows Server 2008)

Post by atrol »

Thanks for coming back and telling the solution.
Please use Search before posting and read the Manual
Post Reply