>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
[email protected]:/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