Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
    
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
add comment

1 Answer

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
    
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
add comment

This site is currently not accepting new answers.

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