From nobody Tue Feb 8 15:32:27 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 AFC1919A8FCB for ; Tue, 8 Feb 2022 15:32:29 +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 4JtRpN0p3zz3CB6 for ; Tue, 8 Feb 2022 15:32:27 +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 A22911BE30 for ; Tue, 8 Feb 2022 15:32:27 +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 218FWRYY063870 for ; Tue, 8 Feb 2022 15:32:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 218FWRhO063869 for ports-bugs@FreeBSD.org; Tue, 8 Feb 2022 15:32:27 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 261793] net/openldap26-server /usr/local/etc/rc.d/slapd assumes cn=config/olcDatabase=* are files Date: Tue, 08 Feb 2022 15:32:27 +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 Only Me 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=1644334348; 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=Itt/ADqfb4Y1sp2MCEGbn7mpnjIrvaiUhwdEFtiZNfU=; b=jxmjpbzapan3cTRRSiS+ns9ZrFUR6awFf4t9SG+YB+LGISS6Wf6ZhGG6t1i5qjQmeAVYW6 uhz1c1Z/7kHSK866o+6PkMKNVtpXs/Iw2fPaqwjpwxo67lT8Q8BLW9BKEROhjjEwTHxhqx jxVX6hEynnkmg9NppOBqeRtREpQZuX3aNY7zZcDRy1LTV7GZKnfGPz7FBhqyT8OqaLqgC4 4Mkj6bAjkWj+66/iu92tgmCL2XKuq46mhIjiJEPAxXHqC4dmJtRpEB00/L8yFU1EAdMJe5 FnzbOBoA5HPdmjNbErRQHBeBlF3hFbZwvrgE77vcjMY32EXvGMeLLBLomfBAaw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644334348; a=rsa-sha256; cv=none; b=SyVGmg3yFVdOsXcXChXt86f0r0Y6/eMum6vNUB0i422UKQlQtTj+9cK2NNa/E/btM7BwZF HBQOLRdUs51xn8OUiNuz5t8+rL8Z4BRSz8uxrWIfZIjHuNO5ji3ZHpXx7O1mjIIHzjrvOZ J2VOfKNfcTx5HdLSrEvHwPJVQDaibv5SQT3CirBen+0qVs8s23BJMiJGZ5nuAGqwslaEc0 htd0lxlEB/px8AH+E7NLApud5dieIzA+eXUzSmd+VqRC/QYa2mj/lizvR6qNTYZcyRSLzZ gVLrxBPE9WPGICv7oKorYB9lQ/ywJilk3u1H37LVXueJ+GVV4d0Bd69BzRim9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261793 Bug ID: 261793 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 Only Me Priority: --- Component: Individual Port(s) Assignee: delphij@FreeBSD.org Reporter: gray@nxg.name Flags: maintainer-feedback?(delphij@FreeBSD.org) Assignee: 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 for 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.=