Adam Tauno Williams wrote:
:-)After that i found all the db files created by slapindex belongs to root:root.Of course.
My OpenLDAP database would often change. So i have to run the command slapindex daily.But i think it should not belong to root instead of ldap.Yes: chown ldap.ldap /var/lib/ldap/*
Or anyother ideas ? I am not clearly now.
Oh. i see.So i try to run this command with the user ldap. But i found that ldap even could not login in gentoo default setting.Normal. The ldap user does not have and does not need a shell.
Maybe i could not got your mean. :-(What's the correct user i should use when run the command "slapindex" or is there anything else i have lost?You simply need to fix the permissions on the files before starting the DSA.