expletive inserted

Does cursing make you feel better? Shit yeah, me too.

expletive inserted header image 2

Configuring LDAP Authentication using SugarCRM and Active Directory

March 5th, 2008 · 4 Comments

This seems to be a fairly undocumented hot topic that I’ve been trying to find an answer to for the last couple of days. Let me preface this by saying I am not an expert in SugarCRM or LDAP, but I finally got it up and running. Here’s my settings for getting SugarCRM Version 5.0.0b (Build 3150) authenticating via LDAP to our Windows 2003 Server Active Directory Domain Controller. Sugar is set up on a RHEL box using apache and MySQL. Get this up and running on our SQL Server 2005 cluster is going to be the next challenge :-).

  • Server: servername (Make sure the server your SugarCRM instance is on can ping your LDAP server.)
  • Port Number: 389 (If you are using LDAP over SSL, the default is 636.)
  • Base DN: DC=foo,DC=bar (If your domain is foo.bar. More normally this is probably going to be foo.com.)
  • Bind Attribute: userPrincipalName
  • Login Attribute: sAMAccountName
  • Authenticated User: user@foo
  • Authenticated Password: ********** (Password for user@foo.)
  • Auto Create Users:
  • Encryption Key: (Leave this blank)

Shout out to Softerra and their awesome LDAP Browser tool.

Tags: linux · microsoft

4 responses so far ↓

  • 1 Massimo // Mar 19, 2008 at 3:43 am

    Hi, and sorry for my english.

    Thanks for your guide.

    Only to complete:
    Remember to enable extension php_ldap.dll in php.ini, otherwise will receive error:
    LDAP Error: Extensions not loaded

    Thanks another time.

    Regards.

  • 2 Brian Snyder // Mar 24, 2008 at 4:18 pm

    We’re running SugarCRM Open Source on oracle unbreakable Linux. I have set up the LDAP authentication, but am getting an error indicating that the LDAP package is not installed.

    I’ve been trying to obtain and install php-ldap to no avail. Can anyone tell me the steps necessary and where I get the required files?

  • 3 z // Mar 28, 2008 at 12:39 pm

    @Massimo: Thanks, good tip!

    @Brian: Have you checked the installation section here? http://us3.php.net/ldap

  • 4 Tom // Jun 6, 2008 at 4:37 pm

    Thumbs way up. Just the first set of instructions worked straight away.

Leave a Comment

Leave comment with OpenID

Or, the normal wordpress way: