From a82efd08d595c87cd3efa99fd52a97ba372b2b72 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Thu, 15 Apr 2010 00:31:47 +0000 Subject: [PATCH] Add pbind proxybind overlay. Just intercepts Bind requests on a regular DB and proxies them to a remote server. --- CHANGES | 1 + doc/man/man5/slapo-chain.5 | 4 + doc/man/man5/slapo-pbind.5 | 61 ++++++++++ servers/slapd/back-ldap/Makefile.in | 4 +- servers/slapd/back-ldap/config.c | 72 +++++++++++ servers/slapd/back-ldap/init.c | 5 + servers/slapd/back-ldap/pbind.c | 173 +++++++++++++++++++++++++++ servers/slapd/back-ldap/proto-ldap.h | 2 + 8 files changed, 320 insertions(+), 2 deletions(-) create mode 100644 doc/man/man5/slapo-pbind.5 create mode 100644 servers/slapd/back-ldap/pbind.c diff --git a/CHANGES b/CHANGES index b92c65040d..317533e3fc 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,7 @@ OpenLDAP 2.4 Change Log OpenLDAP 2.4.22 Engineering Added slapd SLAP_SCHEMA_EXPOSE flag for hidden schema elements (ITS#6435) + Added slapo-pbind Fixed libldap GnuTLS serial length (ITS#6460) Fixed slapd certificateListValidate (ITS#6466) Fixed slapd empty URI parsing (ITS#6465) diff --git a/doc/man/man5/slapo-chain.5 b/doc/man/man5/slapo-chain.5 index 7f6b750865..d3ba35c98b 100644 --- a/doc/man/man5/slapo-chain.5 +++ b/doc/man/man5/slapo-chain.5 @@ -42,6 +42,10 @@ in conjunction with this overlay. They are described in .BR slapd\-ldap (5), and they also need to be prefixed by .BR chain\- . + +Note: this overlay is built into the \fIldap\fP backend; it is not +a separate module. + .TP .B overlay chain This directive adds the chain overlay to the current backend. diff --git a/doc/man/man5/slapo-pbind.5 b/doc/man/man5/slapo-pbind.5 new file mode 100644 index 0000000000..4fe43a2f10 --- /dev/null +++ b/doc/man/man5/slapo-pbind.5 @@ -0,0 +1,61 @@ +.TH SLAPO-PBIND 5 "RELEASEDATE" "OpenLDAP LDVERSION" +.\" Copyright 2010-2010 The OpenLDAP Foundation, All Rights Reserved. +.\" Copying restrictions apply. See the COPYRIGHT file. +.\" $OpenLDAP$ +.SH NAME +slapo\-pbind \- proxy bind overlay to slapd +.SH SYNOPSIS +ETCDIR/slapd.conf +.SH DESCRIPTION +The +.B pbind +overlay to +.BR slapd (8) +forwards Simple Binds on a local database to a remote +LDAP server instead of processing them locally. The remote +connection is managed using an instance of the ldap backend. + +.LP +The +.B pbind +overlay uses a subset of the \fIldap\fP backend's config directives. They +are described in more detail in +.BR slapd\-ldap (5). + +Note: this overlay is built into the \fIldap\fP backend; it is not a +separate module. + +.TP +.B overlay pbind +This directive adds the proxy bind overlay to the current backend. +The proxy bind overlay may be used with any backend, but it is mainly +intended for use with local storage backends. + +.TP +.B uri +LDAP server to use. + +.TP +.B tls +Specify the use of TLS. + +.TP +.B network\-timeout