I suffered from the same problem in my current version. Version 4.5.1b (Build 1246)
Got it to work using the following:
LDAP Authentication Support
Enable LDAP yes
Server: server.domain.corp
Port Number: 389
Base DN: ou=Users,dc=companynamet,dc=com
Bind Attribute: uid
Login Attribute: uid
Authenticated User: empty
Authenticated Password: empty
Auto Create Users: yes
EDIT:
I just forgot that I actually found a bug in the Sugar LDAP code which had to be fixed first before the LDAP settings worked:
The error was found in: ./sugarcrm/modules/Users/authentication/LDAPAuthenticate/LDAPAuthenticateUser.php
You need to run the following patch:
Code:
--- LDAPAuthenticateUser.php.org 2007-06-01 15:00:12.000000000 +0200
+++ LDAPAuthenticateUser.php 2007-03-27 14:22:11.000000000 +0200
@@ -72,8 +72,12 @@
$bind_password = $password;
- $GLOBALS['log']->info("ldapauth: Binding user " . $bind_user);
- $bind = ldap_bind($ldapconn, $bind_user, $bind_password);
+ $bind_attr = $GLOBALS['ldap_config']->settings['ldap_bind_attr'];
+ $base_dn = $GLOBALS['ldap_config']->settings['ldap_base_dn'];
+ $GLOBALS['log']->info("ldapauth: Binding user $bind_attr=$bind_user, $base_dn");
+ $bind = ldap_bind($ldapconn, "$bind_attr=$bind_user, $base_dn", $bind_password);
+// $GLOBALS['log']->info("ldapauth: Binding user " . $bind_user);
+// $bind = ldap_bind($ldapconn, $bind_user, $bind_password);
$error = ldap_errno($ldapconn);
if($this->loginError($error)){ Hope it helps
Bookmarks