OpenBSD CVS

CVS log for src/usr.sbin/ypldap/aldap.h


[BACK] Up to [local] / src / usr.sbin / ypldap

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15 / (download) - annotate - [select for diffs], Thu Oct 13 04:55:33 2022 UTC (19 months, 3 weeks ago) by jmatthew
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, HEAD
Changes since 1.14: +5 -1 lines
Diff to previous 1.14 (colored)

Add client certificate authentication and optional SASL EXTERNAL bind,
which allows the client to bind as the subject of the certificate in cases
where the directory doesn't implicitly do that.

The client certificate is configured with 'certfile' and 'keyfile'
directives, and SASL EXTERNAL bind is configured with the 'bindext'
directive.

ok tb@

Revision 1.14 / (download) - annotate - [select for diffs], Sat May 11 17:46:02 2019 UTC (5 years ago) by rob
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, 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, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.13: +2 -3 lines
Diff to previous 1.13 (colored)

The BER API is currently used by ldap, ldapd, ldapctl, ypldap, snmpd, and
snmpctl. Separate copies of ber.[ch] have existed and been maintained in sync
in ldap, ldapd, ypldap and snmpd.

This commit moves the BER API into /usr/lib/libutil. All current consumers
already link libutil. ldapd and snmpd regress passes, and release builds.

With help from tb@ and guenther@.

ok deraadt@, tb@

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

use $OpenBSD markers only

Revision 1.12 / (download) - annotate - [select for diffs], Tue Nov 27 12:06:39 2018 UTC (5 years, 6 months ago) by martijn
Branch: MAIN
Changes since 1.11: +15 -7 lines
Diff to previous 1.11 (colored)

Sync aldap and ber with ldap(1).

OK claudio@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jun 21 10:37:00 2018 UTC (5 years, 11 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.10: +12 -7 lines
Diff to previous 1.10 (colored)

Sync aldap from ldap(1).

This also fixes the _url functions that was previously #ifdef'ed out.

OK claudio@

Revision 1.10 / (download) - annotate - [select for diffs], Tue May 30 09:33:31 2017 UTC (7 years ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.9: +24 -6 lines
Diff to previous 1.9 (colored)

Teach ypldap to use tls when connecting to ldap servers.
libtls help from jsing@, linker help from deraadt@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Apr 30 21:40:03 2012 UTC (12 years, 1 month ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.8: +14 -3 lines
Diff to previous 1.8 (colored)

Use paged searches so we can handle larger directories.  Servers that don't
understand paging, such as ldapd(8), ignore it and return a single set of
results as before.
from Jim Smith, some tweaks and fixes by me, ok dlg@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 28 16:37:28 2011 UTC (12 years, 9 months ago) by aschrijver
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.7: +8 -8 lines
Diff to previous 1.7 (colored)

Use the correct terminology, replace the term "entry" with the term "attribute" where applicable.

OK martinh@ pyr@

Revision 1.7 / (download) - annotate - [select for diffs], Sat Feb 6 08:04:45 2010 UTC (14 years, 4 months ago) by blambert
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.6: +6 -2 lines
Diff to previous 1.6 (colored)

Simplify LDAP URL handling (currently unused):
instead of strdup()'ing multiple values from an already strdup'ed
buffer (none of which were checked for NULL upon return, which is
also fixed in this), just use a buffer attached to the aldap_url
struct.

Add an aldap_search_url() function, which is a wrapper around
aldap_parse_url and aldap_search.

Finally, since the URL bits are unused, wrap them in #if 0 for now.

ok pyr@, whose heart was a little broken by the #if 0 (temporary, I swear!)

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 27 11:33:22 2009 UTC (15 years, 4 months ago) by aschrijver
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.5: +8 -2 lines
Diff to previous 1.5 (colored)



Add correct error handling to the aldap API.
Use the error handling in the ldapclient.

with help from pyr@

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jan 26 21:56:15 2009 UTC (15 years, 4 months ago) by pyr
Branch: MAIN
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored)

move aldap_close in aldap.c, where it belongs.
discussed with aschrijver@

Revision 1.4 / (download) - annotate - [select for diffs], Tue Oct 14 21:41:03 2008 UTC (15 years, 7 months ago) by aschrijver
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Add support for referrals and lists of attributes.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Oct 6 11:20:20 2008 UTC (15 years, 8 months ago) by aschrijver
Branch: MAIN
Changes since 1.2: +9 -9 lines
Diff to previous 1.2 (colored)

Oops, also commit the header file. Remove silly debug message.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Sep 30 17:28:52 2008 UTC (15 years, 8 months ago) by pyr
Branch: MAIN
Changes since 1.1: +20 -0 lines
Diff to previous 1.1 (colored)

add missing copyright.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Sep 30 16:24:16 2008 UTC (15 years, 8 months ago) by aschrijver
Branch: MAIN

aldap library -- Replacement for openldap used in ypldap. aldap is an semi-asynchronous client interface to connect to LDAP servers.

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.