From nobody Tue Feb 8 15:30:38 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3B1DA19A7FFB for ; Tue, 8 Feb 2022 15:30:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JtRmG72Hwz4tks for ; Tue, 8 Feb 2022 15:30:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 85FEC1BE11 for ; Tue, 8 Feb 2022 15:30:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 218FUclS061594 for ; Tue, 8 Feb 2022 15:30:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 218FUcGx061593 for ports-bugs@FreeBSD.org; Tue, 8 Feb 2022 15:30:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Tue, 08 Feb 2022 15:30:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: gray@nxg.name X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: delphij@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644334239; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ht9OIpC0x2i776BCX+SjQDJidU3L0e5KzOiLXmF0aSc=; b=Y7o1nWPpSGerZN+WUJKvDp23QzD55U55q5YCCB2ilsgEi7b1a7pICe0K3gszzVPH8n9lhN gKZHmT52D5JegaK+jV5V1TKgj/YBaXqbGfKgt+OTgfkfFN8oXZoK0qQ+jxS8xBwJg5tzJn XJWwxKwbSu5q40pBZve9emnmdKhruOlpdPkVpoUNRx22k3Optd8cka8PpFaST+Z7HURN/v PKAhN9ePc8+UPE+x+4Ekb+1Q/Aam6SluEd3HOl8ibasnqobguhxCzssw6R86qMNANoCF8f i1oq9Tdwgr2aBvhiiwdWnpS0kKVQnob5fJOAjVL1ObfyGWeBJS55krzB8FFGCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644334239; a=rsa-sha256; cv=none; b=kpJlFqKS+S8h7CxV+BfCgUCep0d9AzY67+Vc1Mq+t7YabHp1uw6BViTMLEv92ikhSDmYkZ Uy/ecJu1BoYJA1Pij2fKcJOwfbMxhoWVx0AaEAzGDAKA8Hp2dDs4E2AxY/yLF+BHG2Bhit DZhJ3S8Z8aAW4klNLH0Rm7nWZ3FPxnkaQtbs5zzZb9LdfnplvXFvHBlfocbyVROHusdiXa 9SLPKcLx2x4h9iA5j5ASr/dq0jZmHkNuf36dBIEFY/TazdiEHs80tT9MTx3D6W4zA6GWaI 6w9IF3jQVmkrREEDjaiF1U0BHkEw5qg6SdzOIgLmYU5ikwiVPtU7g4fTwgqWEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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.=