Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to add some data to the ldap directory, but i get the following error.

sudo slapadd < ldapdata.txt
slap_sasl_init: auxprop add plugin failed
slapadd: slap_init failed!

Where is the problem ?

share|improve this question
When asking questions please paste the version of the software in question (in this case, the output of slapd -V); also, run the command with a "debug" or "verbose" switch (if it has one) and paste the output here (in this case, the output of sudo slapadd -v < ldapdata.txt. – xiaq Jul 28 '12 at 11:11
Also, most of the time you will want to use ldapadd instead of slapadd. ldapadd talks the standard LDAP protocol and operates on any LDAP server, while slapadd uses an OpenLDAP-specific IPC protocol to communicate with OpenLDAP only. Generally slapadd is only used for debugging purpose since it exposes more OpenLDAP internals. – xiaq Jul 28 '12 at 11:11
up vote 0 down vote accepted

Judging from the error message, it seems the problem is during some internal initialization process, having not much to do with slapadd (ie. I guess you will get the same error with just slaptest). And according to here, you might have to install a newer version of OpenLDAP.

share|improve this answer
I gave up using the original ldap from osx and installed a new one from macports. Also I managed to make it work. – aphex Aug 2 '12 at 8:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .