Koozali.org: home of the SME Server

LDAP not working

mackayr

LDAP not working
« on: August 04, 2005, 09:13:18 PM »
Now that I've got my email working (thanks to egerards), I've moved to LDAP directory.

In a bug report, Charlie Brady said "If hostname gets changed after initial setup LDAP no longer works".  I haven't changed the name of my server, but have changed the domain.  I upgraded from 6 to 6.5 recently, though I don't think my LDAP worked previously.  I've got it set up in Outlook with proper dc's but the list appears to be empty.  I have recreated my ldif file by stopping lpap and restarting it and don't have any non-ascii characters.

Any advice/direction would be appreciated.

Thanks

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: LDAP not working
« Reply #1 on: August 05, 2005, 03:01:20 PM »
Quote from: "mackayr"
Now that I've got my email working (thanks to egerards), I've moved to LDAP directory.

In a bug report, Charlie Brady said "If hostname gets changed after initial setup LDAP no longer works".  I haven't changed the name of my server, but have changed the domain.  I upgraded from 6 to 6.5 recently, though I don't think my LDAP worked previously.  I've got it set up in Outlook with proper dc's but the list appears to be empty.  I have recreated my ldif file by stopping lpap and restarting it and don't have any non-ascii characters.

Any advice/direction would be appreciated.

Thanks


I found this post on this site some time ago.  I have had to use it once and it worked for me.  Hopefully ths can help you as well.

Problem: The LDAP server is not correctly reconfigured after changing the domain name from the console. This causes failures in webmail and other applications which access the LDAP database.
Workaround: # stop ldap
/etc/rc.d/init.d/ldap stop

# remove old ldap data
rm /home/e-smith/db/ldap/*ldif
rm /var/lib/ldap/*

# rebuild directory from scratch
/etc/e-smith/events/actions/ldap-rebuild

# start ldap
/etc/rc.d/init.d/ldap start


JB
......

mackayr

LDAP not working
« Reply #2 on: August 05, 2005, 06:02:53 PM »
I did that, but it still doesn't work.  However, I found that it does work on my iMac.  Perhaps its a configuration thing with Outlook.  I'll double check my settings, but I'm sure they are correct.

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
LDAP not working
« Reply #3 on: August 05, 2005, 07:23:31 PM »
Quote from: "mackayr"
I did that, but it still doesn't work.  However, I found that it does work on my iMac.  Perhaps its a configuration thing with Outlook.  I'll double check my settings, but I'm sure they are correct.


I have outlook 2003 and here is how it works on my system.  Tools/Email Accounts/add or view/enter host or server IP address/more settings/Search/Search base - dc=mydomain,dc=com|net|org, etc.

Open address book/choose my ldap entry from the show names drop down/Click on find items or tools -find/enter first name or space for all entries/OK

After that the items are returned.

You may have this setup as I do and it just isn't working for you.  I put in all the detail in case someone else is looking for an idea on how to get this setup.

JB
......