Summary: | net/openldap26-server /usr/local/etc/rc.d/slapd assumes cn=config/olcDatabase=* are files | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Norman Gray <gray> | ||||
Component: | Individual Port(s) | Assignee: | Xin LI <delphij> | ||||
Status: | New --- | ||||||
Severity: | Affects Some People | CC: | corey, michael.glaus, zeus | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(delphij) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Norman Gray
2022-02-08 15:30:38 UTC
*** Bug 261793 has been marked as a duplicate of this bug. *** Sorry for the duplicate. I submitted the first one, but got a big red warning about an invalid token (?), so I assumed the submission had failed and did it again (I'd fortunately/automatically copied the body text!). Note that this also affects net/openldap25-server I have the same issue and used grep -r option as workaround here a diff --- slapd.orig 2023-07-26 20:40:23.461548000 +0300 +++ slapd 2023-07-26 21:16:31.057004000 +0300 @@ -71,7 +71,7 @@ if checkyesno slapd_cn_config; then required_dirs="/usr/local/etc/openldap/slapd.d" required_files="/usr/local/etc/openldap/slapd.d/cn=config.ldif" - DATABASEDIR=`grep olcDbDirectory /usr/local/etc/openldap/slapd.d/cn=config/olcDatabase=* | awk '{ print $2 }'` + DATABASEDIR=`grep -r olcDbDirectory /usr/local/etc/openldap/slapd.d/cn=config/olcDatabase=* | awk '{ print $2 }'` else required_files="/usr/local/etc/openldap/slapd.conf" DATABASEDIR=`awk '$1 == "directory" { print $2 }' "/usr/local/etc/openldap/slapd.conf" 2>&1 /dev/null` Created attachment 248207 [details]
Fix grep error message
I just run into the same problem.
Based on the workaround of Zeus i created a patch for openldap25 and openldap26.
|