After that i found all the db files created by slapindex belongs to root:root. Of course.
After that i found all the db files created by slapindex belongs to root:root.
Of course.
But i think it should not belong to root instead of ldap. Yes: chown ldap.ldap /var/lib/ldap/*
But i think it should not belong to root instead of ldap.
Yes: chown ldap.ldap /var/lib/ldap/*
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.
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.
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.
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.