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

Re: Newbie LDIF question

--On Wednesday, July 28, 2004 10:22 AM -0700 Kevin Williams <kwilliams@tarity.com> wrote:

Are they because I ran slapadd as root ? Should I change back the
owenership of these files to user 'ldap' ?

Yes. As a personal practice, I try to use the ldap commands instead of the slap commands. Both work, but by using ldap, files will be created with correct read/write permissions and ldap commands tend to error out on stuff that slap will push through.

You could simply run slapadd as the user in question (I suggest looking for the utility from Daemontools known as "setuidgid"). I'll note that load times via slapadd are generally substantially faster than they are for ldapadd, when doing bulk data loads.


Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html