Dear,
I have cofiguration for LDAP and get the error mesage : "APPLICATION ERROR #1400 LDAP Authentication Failed".
This is my config:
# --- using openldap -------------
$g_ldap_server = 'ldap://server.domain.com';
$g_ldap_port ='389';
$g_ldap_root_dn = 'dc=server,dc=domain,dc=com';
$g_ldap_organization = ''; # e.g. '(organizationname=*Traffic)'
$g_ldap_uid_field = 'sAMAccountName'; # Use 'sAMAccountName' for Active Directory
$g_ldap_bind_dn = 'user@domain.com';
$g_ldap_bind_passwd = 'userpw';
$g_use_ldap_email = OFF; # Should we send to the LDAP email address or what MySql tells us
$g_ldap_protocol_version = 3;
$g_login_method = LDAP;
Please help me to fix the error.
Thanks!
APPLICATION ERROR #1400
Moderators: Developer, Contributor
Re: APPLICATION ERROR #1400
I don't think that user@domain.com is a valid dn...goldentiger wrote: $g_ldap_bind_dn = 'user@domain.com';
Thanks!
A valid dn is something like: 'uid=me, ou=people, dc=domain, dc=com'.
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/
Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
=> http://deboutv.free.fr/mantis/
Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
-
- Posts: 1
- Joined: 29 Jan 2008, 17:11
Re: APPLICATION ERROR #1400
Everything is OK!
You just need to change 2 lines. In this file: config_defaults_inc.php you need to change the server line, like that:
Now, you need to open the file /core/ldap.api and look for this function: ldap_connect_bind (probably the first one).
Inside this function, you need to change this line:
To:
And that's all !! Worked !!
You just need to change 2 lines. In this file: config_defaults_inc.php you need to change the server line, like that:
Code: Select all
$g_ldap_server = 'ldap://server.domain.com:389';
Inside this function, you need to change this line:
Code: Select all
$t_ds = @ldap_connect ( $t_ldap_server, $t_ldap_port );
Code: Select all
$t_ds = @ldap_connect ( $t_ldap_server );