On Wed, Mar 30, 2022 at 05:00:19PM +0200, Martijn van Duren wrote:
> On Tue, 2022-03-29 at 20:43 +0100, Raf Czlonka wrote:
> > > Synopsis: ldap(1) search doesn't seem to working properly
> > > Category: system
> > > Environment:
> >     System      : OpenBSD 7.1
> >     Details     : OpenBSD 7.1-beta (GENERIC.MP) #444: Sun Mar 27 11:33:24 
> > MDT 2022
> >                      
> > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > 
> >     Architecture: OpenBSD.amd64
> >     Machine     : amd64
> > > Description:
> >     ldap(1) search seems broken - doesn't show the attribute
> >     which has been explicitly requested
> > > How-To-Repeat:
> >     $ ldap search -b 'ou=users,dc=debian,dc=org' -H db.debian.org -Z uid | 
> > grep ^uid | wc -l
> >            0
> > 
> >     Only dn is shown, not uid, as expected.
> > > Fix:
> >     This has been reported last year on misc@[0]; then martijn@
> >     moved it to tech@[1] and sent a diff, with a follow-up
> >     January[2].
> > 
> >     After a very quick test - essentially the same command as
> >     above - it seems like the proposed diff fixes the issue:
> > 
> >     $ /usr/obj/usr.bin/ldap/ldap search -b 'ou=users,dc=debian,dc=org' -H 
> > db.debian.org -Z uid | grep ^uid | wc -l
> >         2240
> > 
> > [0] https://marc.info/?l=openbsd-misc&m=163618291218790&w=2
> > [1] https://marc.info/?l=openbsd-tech&m=163636158613557&w=2
> > [2] https://marc.info/?l=openbsd-tech&m=164121477527625&w=2
> > 
> > Regards,
> > 
> > Raf
> > 
> 
> Anyone willing to OK this before release?
> As stated in my original mail, this should also be applied to
> libexec/login_ldap and usr.sbin/ypldap

ok tb

(to commit this to all three patients)

Reply via email to