In my case, I just replaced/hardcoded a call to sudo to switch user for the db_recover. Well, I'm well aware that was the cheapest solution available but it works.

Anyway, 2 solutions are available:
- let root run db_recover and then fix the files permissions after recovering before starting slapd. - Run db_recover as the same user as slapd, ie, read the configuration and wrap the db_recover call into a su ${SLAPD_USER} -c "db_recover ..." (which doesn't add a dependency to sudo which I'm sure you don't want)

Anyway, the db_recover is a great thing to add. Thx.


--
Johan Fischer





----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Attachment: bin7QEI2oWfed.bin
Description: PGP Public Key

Reply via email to