[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: What's the differences between slapadd and ldapadd?

Quanah Gibson-Mount wrote:

--On Saturday, July 10, 2004 11:24 PM +0800 Wang Penghui <wangpenghui@realss.com> wrote:

Hi all.

Each of the commands "ldapadd" and "slapadd" could add entries to a slapd
But i could not make clear that what's the differences between them.
When should use "ldapadd" and when should use "slapadd"?
Could someone pick me up a doc about it?

In general:

slapadd is for bulk loading the database.

ldapadd is for adding entries once you have a database.

The fundamental difference is that slapadd operates on the database files. As such, it cannot be used while slapd is running, and it must run on the same machine as the slapd server. ldapadd operates via the LDAP protocol, so it requires a running LDAP server as its target, and that server can be anywhere on the network. You can use ldapadd to populate a new/empty database if you really want to, there's not much performance difference between it and slapadd these days.
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support