From nobody Fri Aug 23 17:48:52 2024 X-Original-To: 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 4Wr6xx2Xxyz5Tfb0 for ; Fri, 23 Aug 2024 17:48:53 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wr6xx05MHz4GLM for ; Fri, 23 Aug 2024 17:48:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724435333; a=rsa-sha256; cv=none; b=QV7v4vFfwF/VbP6n0ihu7VZbXo9BoWFZKcEsahx80YSEhbJST2BKWtZuk6RfAwa/0wPqyH xhnwm3UUFMz5W5l0I7ib1j+pS9PXEFkZ2d6XPRK1DKF320mDhtUWIwzvXDPE30Bm9SgQqH NK2ArQRUmwVzOvvE5iBzhca5xw/VWzjUrKydkmvgTFMYHbunMcqI2QH/Et1V75ySqYTM26 MuHjFc060nmysdu2GkAeTXjpQ9y9+dpbtaZWiXOMrsLXlBjy50h5dSR7B98qdBp2AS+w/s s2cFHQGxMMHQMoaR5Yp83M3nNVTQ/w8ztj1Q8ffQv9GbdTVWbSoaHhNZBUc/rg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724435333; 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=fD1/jHDOYxrRqjy3MmglRabuWA7P/5Afz2dRb0zZ/jw=; b=yVjVNhGE1s3Kcue/fi6tVo5hYbCUDzBQeIfufTqy6g0MaEigIncdlGc0oMsjX+eY7CtvpI DI5qUEC0O+HV6ZG6u/cVfvzydCJoEGhHwmfiZeiO7G+XwYYtuBBjQwq83TbaWhH/Vkd3Qy Na3jtvpZTKGZOooRgA36C9pMH0VzpM3j8/pbiHJvBG6X7ITy50PnR8UpNpwPUfn1yxzXIT vKKSd1rYbb26Fufk7um4ykjc5LMtfiO3nQOZkwxOm/q8BsvosDQf359AgUKGrZGGoyD5u2 eQVzfmtf2NUQUf0xBjV0g69iJgpezUjuQbT07hdl4ITKrzb+gu0s7afB9n7nQQ== 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 4Wr6xw6fLFzLPb for ; Fri, 23 Aug 2024 17:48:52 +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 47NHmq3h069495 for ; Fri, 23 Aug 2024 17:48:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47NHmqcN069493 for bugs@FreeBSD.org; Fri, 23 Aug 2024 17:48:52 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: bugs@FreeBSD.org Subject: [Bug 281013] ypldap.conf does not permit an alternate port number for the LDAP server Date: Fri, 23 Aug 2024 17:48:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.1-RELEASE 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: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281013 Bug ID: 281013 Summary: ypldap.conf does not permit an alternate port number for the LDAP server Product: Base System Version: 14.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: gray@nxg.name Created attachment 253041 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D253041&action= =3Dedit Patch to /usr/src/usr.sbin/ypldap, against git commit deb948cd8dc2efb341ce96e1b7a56c9fbc662ba1 In ypldap.conf, the LDAP server is specified by a line directory "some.host" { # directives } This does not allow one to specify an LDAP server running on a different po= rt (for example a test server). Also, ypldap will produce BSD-style passwd li= nes which (see passwd(5)) includes class, change and expire fields, which some clients (eg Linux clients) don't expect. I attach a patch which addresses both: * It adds an optional 'port ' to this LDAP server specification. * It adds a clause 'attribute omit' to omit certain attributes = from the constructed responses. Notes: * The original grammar in parse.y includes an optional 'port ""' specification, giving the port number within a string, but neither implemen= ting nor documenting this. I've implemented this as above, but switched to a nu= mber rather than a string. * The current OpenBSD ypldap.conf [1] includes a similar optional port specification, as well as a 'tls' flag. * The current OpenBSD implementation seems to be ahead of the FreeBSD one. This patch works for me in testing, but I have *not* deployed it to product= ion, since in the course of testing, I encountered the behaviour I have logged as bug #281012. My motivation for this was to ease the transition of some machines from NIS= to LDAP, by using ypldap as an intermediate step. I'm probably now going to f= ind a Plan B; I therefore don't expect to be developing this further, but for w= hat it's worth, I offer it here. [1] https://man.openbsd.org/ypldap.conf --=20 You are receiving this mail because: You are the assignee for the bug.=