Date: Tue, 08 Feb 2022 15:30:38 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 261792] net/openldap26-server /usr/local/etc/rc.d/slapd assumes cn=config/olcDatabase=* are files Message-ID: <bug-261792-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261792 Bug ID: 261792 Summary: net/openldap26-server /usr/local/etc/rc.d/slapd assumes cn=3Dconfig/olcDatabase=3D* are files Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: delphij@FreeBSD.org Reporter: gray@nxg.name Assignee: delphij@FreeBSD.org Flags: maintainer-feedback?(delphij@FreeBSD.org) The slapd startup script searches for the location of the database directory with the line DATABASEDIR=3D`grep olcDbDirectory /usr/local/etc/openldap/slapd.d/cn=3Dconfig/olcDatabase=3D* | awk '{ print = $2 }'` This assumes that the objects olcDatabase=3D* are files, but they needn't b= e.=20 For example % ls -d1 /usr/local/etc/openldap/slapd.d/cn=3Dconfig/olcDatabase=3D* /usr/local/etc/openldap/slapd.d/cn=3Dconfig/olcDatabase=3D{-1}frontend.= ldif /usr/local/etc/openldap/slapd.d/cn=3Dconfig/olcDatabase=3D{0}config.ldif /usr/local/etc/openldap/slapd.d/cn=3Dconfig/olcDatabase=3D{1}mdb/ /usr/local/etc/openldap/slapd.d/cn=3Dconfig/olcDatabase=3D{1}mdb.ldif /usr/local/etc/openldap/slapd.d/cn=3Dconfig/olcDatabase=3D{2}mdb/ /usr/local/etc/openldap/slapd.d/cn=3Dconfig/olcDatabase=3D{2}mdb.ldif (the extra databases are for accesslog and syncprov) This produces warnings when the script is used: % service slapd stop grep: /usr/local/etc/openldap/slapd.d/cn=3Dconfig/olcDatabase=3D{1}mdb:= Is a directory grep: /usr/local/etc/openldap/slapd.d/cn=3Dconfig/olcDatabase=3D{2}mdb:= Is a directory Stopping slapd. Waiting for PIDS: 72659. A suitable alternative might be: % find /usr/local/etc/openldap/slapd.d/cn=3Dconfig -name olcDatabase=3D\*.ldif|xargs grep olcDbDirectory This is in the port of openldap26-server-2.6.0, in 13.0-RELEASE. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261792-7788>