From unknown Sat Jun 21 03:07:33 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#26651 <26651@debbugs.gnu.org> To: bug#26651 <26651@debbugs.gnu.org> Subject: Status: [PATCH] gnu: nss-pam-ldap: Look for nslcd.conf in global /etc/ directory. Reply-To: bug#26651 <26651@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:07:33 +0000 retitle 26651 [PATCH] gnu: nss-pam-ldap: Look for nslcd.conf in global /etc= / directory. reassign 26651 guix-patches submitter 26651 Ricardo Wurmus severity 26651 normal tag 26651 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 25 08:28:49 2017 Received: (at submit) by debbugs.gnu.org; 25 Apr 2017 12:28:49 +0000 Received: from localhost ([127.0.0.1]:38944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2zaL-0001RX-1s for submit@debbugs.gnu.org; Tue, 25 Apr 2017 08:28:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2zaJ-0001RI-MR for submit@debbugs.gnu.org; Tue, 25 Apr 2017 08:28:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2zaD-0001Y5-Du for submit@debbugs.gnu.org; Tue, 25 Apr 2017 08:28:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33985) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d2zaD-0001Xp-AK for submit@debbugs.gnu.org; Tue, 25 Apr 2017 08:28:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2zaC-0006np-5Q for guix-patches@gnu.org; Tue, 25 Apr 2017 08:28:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2za7-0001Ux-MH for guix-patches@gnu.org; Tue, 25 Apr 2017 08:28:40 -0400 Received: from sinope02.bbbm.mdc-berlin.de ([141.80.25.24]:60692) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d2za7-0001P8-Bd for guix-patches@gnu.org; Tue, 25 Apr 2017 08:28:35 -0400 Received: from localhost (localhost [127.0.0.1]) by sinope02.bbbm.mdc-berlin.de (Postfix) with ESMTP id 98BD0936B5D for ; Tue, 25 Apr 2017 14:28:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-type:content-type:mime-version:x-mailer:message-id:date :date:subject:subject:from:from:received:received:received; s= mdc; t=1493123301; x=1494937702; bh=l1jgc+U/LtIjU58nJpJiD1t/uSak QHOUU1NZLZVxp6U=; b=j1Ra3A5Q5/oTJ/9vGcjeCQHV1mrRImccCUidWp0JnC45 N3zJWOYIYDXTrA3T9dRdsoOpxGPcShOm0nE6d9s3cqbhXj3TSsazS1S2Fht4iV71 knY/8+vdsUXSWlDmZ/fXRnh1vreNenyOKv5hvDYEEt4bqlWC/mg3pTbwJw7+17E= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from sinope02.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (sinope02.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jX2pParQpw-7 for ; Tue, 25 Apr 2017 14:28:21 +0200 (CEST) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by sinope02.bbbm.mdc-berlin.de (Postfix) with ESMTPS for ; Tue, 25 Apr 2017 14:28:21 +0200 (CEST) Received: from localhost (141.80.180.135) by HTCATWO.mdc-berlin.net (141.80.180.125) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 25 Apr 2017 14:25:34 +0200 From: Ricardo Wurmus To: Subject: [PATCH] gnu: nss-pam-ldap: Look for nslcd.conf in global /etc/ directory. Date: Tue, 25 Apr 2017 14:25:31 +0200 Message-ID: <20170425122531.2522-1-ricardo.wurmus@mdc-berlin.de> X-Mailer: git-send-email 2.11.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [141.80.180.135] X-TM-AS-Product-Ver: SMEX-11.0.0.4283-8.100.1062-23028.006 X-TM-AS-Result: No--1.161200-0.000000-31 X-TM-AS-MatchedID: 703786-303277-121113-707788-704421-188019-701021-709251-7 03366-706249-701433-706561-702609-188198-702106-105040-700648-148004-148036 -10013-42000-42003 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit Cc: Ricardo Wurmus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) * gnu/packages/openldap.scm (nss-pam-ldapd)[arguments]: Set "--with-ldap-conf-file" to look for global configuration file; add build phase to install example configuration file in the package output directory. --- gnu/packages/openldap.scm | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm index b67510647..61f7a9469 100644 --- a/gnu/packages/openldap.scm +++ b/gnu/packages/openldap.scm @@ -94,8 +94,23 @@ `(#:configure-flags (list (string-append "--with-pam-seclib-dir=" (assoc-ref %outputs "out") "/lib/security/") - (string-append "--with-ldap-conf-file=" - (assoc-ref %outputs "out") "/etc/nslcd.conf")))) + ;; nslcd cannot be convinced to look at run-time for its + ;; configuration file at a location that differs from the + ;; configured location. + "--with-ldap-conf-file=/etc/nslcd.conf") + #:phases + (modify-phases %standard-phases + ;; This is necessary because we tell nslcd with configure flags that + ;; it should look for its configuration file at /etc/nslcd.conf. The + ;; build system tries to install a default configuration to that very + ;; location. + (add-after 'unpack 'override-nslcd.conf-install-path + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "Makefile.in" + (("\\$\\(DESTDIR\\)\\$\\(NSLCD_CONF_PATH\\)") + (string-append (assoc-ref outputs "out") + "/etc/nslcd.conf.example"))) + #t))))) (inputs `(("linux-pam" ,linux-pam) ("openldap" ,openldap) -- 2.11.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 25 15:20:10 2017 Received: (at 26651) by debbugs.gnu.org; 25 Apr 2017 19:20:10 +0000 Received: from localhost ([127.0.0.1]:40104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d360P-0001eE-Sq for submit@debbugs.gnu.org; Tue, 25 Apr 2017 15:20:10 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:48358 helo=mail.openmailbox.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d360N-0001e5-LD for 26651@debbugs.gnu.org; Tue, 25 Apr 2017 15:20:08 -0400 Received: by mail.openmailbox.org (Postfix, from userid 20002) id 7DEC2511EFC; Tue, 25 Apr 2017 21:20:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1493148006; bh=mu/x29oGBu9GxwBdbKi0po60yuVAr6DVYFqP9hZ1XYo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=acI7meXlb99eDgOKMYsTOb8SgWYGC+bvovDrbOj7tl+kE7ZMWYPdBkJXcN1Bs3jkj TEQe40u2laW9B8Q571uy4FaXJq0Rfq4XyA8FcCoVdYbgqzLVzRmYsK4iMi/v0VHesm 7M49kKQ1JN7lfbDp0CNlfnJM1srsADhnAoPIvhfA= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ZDZR002 X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=disabled version=3.4.0 From: Kei Kebreau DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1493148006; bh=mu/x29oGBu9GxwBdbKi0po60yuVAr6DVYFqP9hZ1XYo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=acI7meXlb99eDgOKMYsTOb8SgWYGC+bvovDrbOj7tl+kE7ZMWYPdBkJXcN1Bs3jkj TEQe40u2laW9B8Q571uy4FaXJq0Rfq4XyA8FcCoVdYbgqzLVzRmYsK4iMi/v0VHesm 7M49kKQ1JN7lfbDp0CNlfnJM1srsADhnAoPIvhfA= To: Ricardo Wurmus Subject: Re: bug#26651: [PATCH] gnu: nss-pam-ldap: Look for nslcd.conf in global /etc/ directory. References: <20170425122531.2522-1-ricardo.wurmus@mdc-berlin.de> Date: Tue, 25 Apr 2017 15:19:54 -0400 In-Reply-To: <20170425122531.2522-1-ricardo.wurmus@mdc-berlin.de> (Ricardo Wurmus's message of "Tue, 25 Apr 2017 14:25:31 +0200") Message-ID: <87fugwnvl1.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 26651 Cc: 26651@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) --=-=-= Content-Type: text/plain Ricardo Wurmus writes: > * gnu/packages/openldap.scm (nss-pam-ldapd)[arguments]: Set > "--with-ldap-conf-file" to look for global configuration file; add build phase > to install example configuration file in the package output directory. > --- > gnu/packages/openldap.scm | 19 +++++++++++++++++-- > 1 file changed, 17 insertions(+), 2 deletions(-) > > diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm > index b67510647..61f7a9469 100644 > --- a/gnu/packages/openldap.scm > +++ b/gnu/packages/openldap.scm > @@ -94,8 +94,23 @@ > `(#:configure-flags > (list (string-append "--with-pam-seclib-dir=" > (assoc-ref %outputs "out") "/lib/security/") > - (string-append "--with-ldap-conf-file=" > - (assoc-ref %outputs "out") "/etc/nslcd.conf")))) > + ;; nslcd cannot be convinced to look at run-time for its > + ;; configuration file at a location that differs from the > + ;; configured location. > + "--with-ldap-conf-file=/etc/nslcd.conf") > + #:phases > + (modify-phases %standard-phases > + ;; This is necessary because we tell nslcd with configure flags that > + ;; it should look for its configuration file at /etc/nslcd.conf. The > + ;; build system tries to install a default configuration to that very > + ;; location. > + (add-after 'unpack 'override-nslcd.conf-install-path > + (lambda* (#:key outputs #:allow-other-keys) > + (substitute* "Makefile.in" > + (("\\$\\(DESTDIR\\)\\$\\(NSLCD_CONF_PATH\\)") > + (string-append (assoc-ref outputs "out") > + "/etc/nslcd.conf.example"))) > + #t))))) > (inputs > `(("linux-pam" ,linux-pam) > ("openldap" ,openldap) LGTM. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAlj/oVsACgkQ5qXuPBlG eg1Npw/5AVxC5VACa8rU9+AjVcRGlS880f17f7jKVVFz55+rj8OtE8RsxboL6w81 3KSAQiCoE793hx6F5gZiJ7shdhB9aitiP8t3g33pI5FYL7/7oYKCpfSqROyY59n2 M7VD8OB8LK+k+/W6F1jHTW1wvl3Xu+RwnKio7o/6vlvfmAL1Bl1D+nqAbv+AUAcW feo8Ho7nMK431dcELA9eC/tp77hAkBBze/TOCJg9Oh5N81IfoBb4GAqBEIwCP8zz L/E+os2thrYzn2A3eZggvGBH1KzgNIgT+SInZ+SfsWUA29NmCnwt7PoUF5l9CViY h36ll3yERhg1L/OZpzdOSAABJtRL1JWJuDy5Z84aGZ7T56xDdhF4ill+3aNOr7Sa wR3TkuU2jSe11HdIqBIBKpr96T1tn8N5PKlLohVg7nl/IdDEOqLTdgOMARtETEZd OoxCA4J/nlQOvntKDOqxK1KIyBheAKWaTiMSXVQCt395QPCfH8ZesUTtNwcKJeX3 UFxykkWXV7PsnGqz7J+O+nG0/OFR7PXk2gc7Z9/B7U2Xs+5zomtu+ZZYdPvzVCvT GQ4jjyft8LScb5rmxPpRRH+XhdoUvUQqdjL5uTE2RVm1ax+M/tlvHMSz9+QDhpFf tu9PgOoMNOXBQDAgsB6eMI5Q0dMzS31Z0uKRAP1OXcPXKrWxR4c= =s/VV -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 26 07:11:44 2017 Received: (at 26651-done) by debbugs.gnu.org; 26 Apr 2017 11:11:44 +0000 Received: from localhost ([127.0.0.1]:40620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3KrI-000798-A0 for submit@debbugs.gnu.org; Wed, 26 Apr 2017 07:11:44 -0400 Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:58491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3KrG-00078v-SH for 26651-done@debbugs.gnu.org; Wed, 26 Apr 2017 07:11:43 -0400 Received: from localhost (localhost [127.0.0.1]) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTP id AB95C380EF3; Wed, 26 Apr 2017 13:11:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:in-reply-to:subject:subject:from:from :user-agent:references:received:received:received; s=mdc; t= 1493205096; x=1495019497; bh=7S1IV8B+bjscfIfbpdvKxtfH5fm4jq/zt3c uJnDlL+o=; b=SA94KrDhsm5AQ9CgDt6wFmyPgdnlIAR25CeSwi4BqgBvB7A5tPv k7Jw3zZqbshlH2HBy4TfDlyUssTyK5aTpDgrqny3AcIYEuxt4wjxzJ6FDPCtVBDW /DmKjDGlaQQ2lu7Pyb/31u+c7iqEn12RNnuI8Nng6+ZGYoU4RiECjz5Q= X-Virus-Scanned: amavisd-new at mdc-berlin.de Received: from pegasus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (pegasus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HSckxe8lA3cK; Wed, 26 Apr 2017 13:11:36 +0200 (CEST) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTPS; Wed, 26 Apr 2017 13:11:36 +0200 (CEST) Received: from localhost (141.80.180.135) by HTCATWO.mdc-berlin.net (141.80.180.125) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 26 Apr 2017 13:11:35 +0200 References: <20170425122531.2522-1-ricardo.wurmus@mdc-berlin.de> <87fugwnvl1.fsf@openmailbox.org> User-agent: mu4e 0.9.18; emacs 25.1.1 From: Ricardo Wurmus To: Kei Kebreau Subject: Re: bug#26651: [PATCH] gnu: nss-pam-ldap: Look for nslcd.conf in global /etc/ directory. In-Reply-To: <87fugwnvl1.fsf@openmailbox.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Wed, 26 Apr 2017 13:11:35 +0200 Message-ID: <87o9vjqv88.fsf@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [141.80.180.135] X-TM-AS-Product-Ver: SMEX-11.0.0.4283-8.100.1062-23032.000 X-TM-AS-Result: No--2.356500-0.000000-31 X-TM-AS-MatchedID: 150567-703731-139010-703786-121113-707788-704421-700107-7 03330-701236-701232-148004-148133-41000-42000-42003 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26651-done Cc: 26651-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Kei Kebreau writes: > Ricardo Wurmus writes: > >> * gnu/packages/openldap.scm (nss-pam-ldapd)[arguments]: Set >> "--with-ldap-conf-file" to look for global configuration file; add build phase >> to install example configuration file in the package output directory. […] > LGTM. Thanks. Pushed with a minor change in the summary. (Commit 289a89801afaeee0522777078258ce103d0452e8) -- Ricardo Wurmus From unknown Sat Jun 21 03:07:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 24 May 2017 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator