I would like to report a small inconvenient in the port of
openldap26-server on FreeBSD.
The startup script /usr/local/etc/slapd incudeds the line:
chown -RL "$slapd_owner" "${DBDIR}"
around the line 127
My DBDIR is a file system mounted to only contain LDAP data:
fbsd63334: mount -p |grep da1p1
/dev/da1p1 /var/db/openldap-data ufs rw 2 2
As such, it contains the file .sujournal that is not changeable"
fbsd63335: ll -o /var/db/openldap-data/.sujournal
4 65600 -r-------- 1 root wheel schg,sunlnk,nodump,opaque 33554432 Sep 20 12:02 /var/db/openldap-data/.sujournal
The chown in the startup script throws an error:
fbsd63336: /usr/local/etc/rc.d/slapd restart
Stopping slapd.
Waiting for PIDS: 41425.
chown: /var/db/openldap-data/.sujournal: Operation not permitted
Performing sanity check on slap configuration: OK
Starting slapd.
The script still work, but it may be confusing for some users who have
their DBDIR as an independant filesystem.