OpenBSD CVS

CVS log for src/usr.bin/ldap/aldap.c


[BACK] Up to [local] / src / usr.bin / ldap

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.10 / (download) - annotate - [select for diffs], Thu Mar 31 09:03:48 2022 UTC (2 years, 1 month ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, HEAD
Changes since 1.9: +6 -7 lines
Diff to previous 1.9 (colored)

'e' is no longer an optional element for ober_scanf_elements.
This caused the last attribute to be dropped.

Reported by Allan Streib (astreib <at> fastmail <dot> fm)
Reminded by Raf Czlonka (rczlonka <at> gmail <dot> com)
OK tb@ claudio@

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Sun Oct 27 20:05:12 2019 UTC (4 years, 6 months ago) by tb
Branch: OPENBSD_6_6
Changes since 1.8: +85 -85 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

The ber_* namespace is used by liblber since time immemorial,
so move our BER API to the unused ober_* prefix to avoid some
breakage in ports.

Problem diagnosed by jmatthew with ber_free() in samba, but
there are many others as pointed out by sthen.

tests & ok rob
ok sthen (who had an almost identical diff for libutil)
"go head hit it" deraadt

OpenBSD 6.6 errata 002

Revision 1.9 / (download) - annotate - [select for diffs], Thu Oct 24 12:39:26 2019 UTC (4 years, 6 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.8: +85 -85 lines
Diff to previous 1.8 (colored)

The ber_* namespace is used by liblber since time immemorial,
so move our BER API to the unused ober_* prefix to avoid some
breakage in ports.

Problem diagnosed by jmatthew with ber_free() in samba, but
there are many others as pointed out by sthen.

tests & ok rob
ok sthen (who had an almost identical diff for libutil)
"go head hit it" deraadt

Revision 1.8 / (download) - annotate - [select for diffs], Tue Sep 10 14:35:32 2019 UTC (4 years, 8 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE
Branch point for: OPENBSD_6_6
Changes since 1.7: +6 -4 lines
Diff to previous 1.7 (colored)

During libutil/ber.c r1.12 I made sure that every element that's requested
by ber_scanf_elements must exist.

aldap.c apparently abused the old behaviour by always trying to retrieve
the referral element, which according to RFC4511 section 4.1.9 is optional.

This diff only requests the referral element if we get a referral response.

OK rob@

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 17 06:18:27 2019 UTC (5 years, 4 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

rm a few more $Id which cannot be useful

Revision 1.6 / (download) - annotate - [select for diffs], Tue Nov 27 12:04:57 2018 UTC (5 years, 5 months ago) by martijn
Branch: MAIN
Changes since 1.5: +30 -29 lines
Diff to previous 1.5 (colored)

LDAP returns values as OCTET STRINGs, which can be LDAPStrings, but isn't
always the case. This caused some malformed output when querying databases
returning data containing NUL-bytes. Fix this by also returning the
actual size.

With this diff we should produce basically identical output to openldap's
ldapsearch.

Lots of back and forths with claudio@

OK claudio@

Revision 1.5 / (download) - annotate - [select for diffs], Sun Aug 12 22:04:09 2018 UTC (5 years, 9 months ago) by rob
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

Change ber_write_elements() to return ssize_t instead of int.

ok claudio@

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jul 31 11:37:18 2018 UTC (5 years, 9 months ago) by rob
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Fix some debugging output now that ber type and encoding are unsigned int.

ok claudio@

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jul 31 11:02:01 2018 UTC (5 years, 9 months ago) by claudio
Branch: MAIN
Changes since 1.2: +9 -10 lines
Diff to previous 1.2 (colored)

Make ber type and encoding a unsigned int instead of unsigned long.
This way the size is the same on all archs and 32bit should be good enough.
OK rob@

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jun 21 08:27:35 2018 UTC (5 years, 10 months ago) by reyk
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Fix DEBUG message

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Jun 13 15:45:57 2018 UTC (5 years, 11 months ago) by reyk
Branch: reyk
CVS Tags: ldap_20180613
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import ldap(1), a simple ldap search client.

We have an ldapd(8) server and ypldap in base, so it makes sense to
have a simple LDAP client without depending on the OpenLDAP package.
This tool can be used in an ssh(1) AuthorizedKeysCommand script.

With feedback from many including millert@ schwarze@ gilles@ dlg@ jsing@

OK deraadt@

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 13 15:45:57 2018 UTC (5 years, 11 months ago) by reyk
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.