Jason's Blog

LDAP configuration annoyances

by on Dec.14, 2004, under General

After messing with ldap for who knows how long, with continual ldap_search: no such object errors, I finally fixed the problems I was having. It seems that slapadd when adding ldif files to the LDAP backend fails to fix the permissions of the database files after creating them. This is usually when you’re first creating the ldap database, and nothing exists yet where it’s a problem. I’d guess that after the database is created, it’s not so much of an issue, as it should keep the permissions at that point, provided the permissions were set right. The file permissions should be all 0600, owner ldap. The owner is the big issue.
chown ldap:ldap -R /var/lib/ldap; chmod -R 0600 /var/lib/ldap

And yes, I know a ton of you will have NO clue what I’m talking about, but oh well. This’ll be eventually moved to the developers blog, whenever I get that going, and all the techs can read there instead of this site, which will still contain my ramblings smile But, until that point, wanted to post this semi-rant/semi-i-fixed-it post


Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...