@@ -4527,6 +4527,15 @@ Members of a group
+
Backends do the actual work of storing or retrieving data in response to LDAP requests. Backends may be compiled statically into slapd , or when module support is enabled, they may be dynamically loaded.
+
If your installation uses dynamic modules, you may need to add the relevant moduleload directives to the examples that follow. The name of the module for a backend is usually of the form:
+
+ back_<backend name>.la
+
+
So for example, if you need to load the hdb backend, you would configure
+
+ moduleload back_hdb.la
+
The bdb backend to slapd (8) is the recommended primary backend for a normal slapd database. It uses the Oracle Berkeley DB (BDB ) package to store data. It makes extensive use of indexing and caching (see the Tuning section) to speed data access.
@@ -4577,11 +4586,6 @@ Members of a group
rootdn "cn=LDIF,dc=suretecsystems,dc=com"
rootpw LDIF
-
You'll notice that when compared to examples below, there is no:
-
- moduleload back_ldif.la
-
-
directive. This is because back_ldif is always built in by default as it is used by slapd-config(5) , which again is built in by default.
If we add the dcObject for dc=suretecsystems,dc=com , you can see how this is added behind the scenes on the file system:
dn: dc=suretecsystems,dc=com
@@ -4640,9 +4644,6 @@ Members of a group
include ./schema/core.schema
- modulepath /usr/local/libexec/openldap
- moduleload back_monitor.la
-
database monitor
rootdn "cn=monitoring,cn=Monitor"
rootpw monitoring
@@ -4699,13 +4700,10 @@ Members of a group
This has to be one of the shortest configurations you'll ever do. In order to test this, your slapd.conf file would look like:
- modulepath /usr/local/libexec/openldap
- moduleload back_null.la
database null
suffix "cn=Nothing"
bind on
-The first two directives are only applicable if you've enabled module support and haven't "built-in" slapd-null(5) support (why would you?).
bind on means:
"Allow binds as any DN in this backend's suffix, with any password. The default is "off"."
To test this backend with ldapsearch :
@@ -4736,9 +4734,6 @@ Members of a group
include ./schema/core.schema
- modulepath /usr/local/libexec/openldap
- moduleload back_passwd.la
-
database passwd
suffix "cn=passwd"
@@ -5252,8 +5247,7 @@ Members of a group
include /usr/share/openldap/schema/core.schema
include /usr/share/openldap/schema/cosine.schema
- modulepath /usr/lib/openldap
- moduleload memberof.la
+
authz-regexp "gidNumber=0\\\+uidNumber=0,cn=peercred,cn=external,cn=auth"
"cn=Manager,dc=example,dc=com"
database bdb
@@ -5565,11 +5559,6 @@ Members of a group
pidfile ./slapd.pid
argsfile ./slapd.args
- modulepath /usr/local/libexec/openldap
- moduleload back_bdb.la
- moduleload back_ldap.la
- moduleload translucent.la
-
database bdb
suffix "dc=suretecsystems,dc=com"
rootdn "cn=trans,dc=suretecsystems,dc=com"
@@ -5917,7 +5906,7 @@ x-my-ObjectClass
You are, of course, free to design a hierarchy suitable to your organizational needs under your organization's OID. No matter what hierarchy you choose, you should maintain a registry of assignments you make. This can be a simple flat file or something more sophisticated such as the OpenLDAP OID Registry (http://www.openldap.org/faq/index.cgi?file=197 ).
-For more information about Object Identifiers (and a listing service) see http://www.alvestrand.no/harald/objectid/ .
+For more information about Object Identifiers (and a listing service) see http://www.alvestrand.no/objectid/ .
Under no circumstances should you hijack OID namespace!
To obtain a registered OID at no cost , apply for a OID under the Internet Assigned Numbers Authority (ORG:IANA) maintained Private Enterprise arc. Any private enterprise (organization) may request a Private Enterprise Number (PEN) to be assigned under this arc. Just fill out the IANA form at http://pen.iana.org/pen/PenApplication.page and your official PEN will be sent to you usually within a few days. Your base OID will be something like 1.3.6.1.4.1.X where X is an integer.
diff --git a/external/bsd/openldap/dist/doc/guide/admin/guide.sdf b/external/bsd/openldap/dist/doc/guide/admin/guide.sdf
index 5f73fa336671..6c88ddcc3c43 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/guide.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/guide.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/guide.sdf,v 1.7.2.6 2009/01/22 00:00:47 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/guide.sdf,v 1.7.2.7 2010/04/13 20:22:33 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
#
# guide.sdf
diff --git a/external/bsd/openldap/dist/doc/guide/admin/index.sdf b/external/bsd/openldap/dist/doc/guide/admin/index.sdf
index 0f05911e78e0..e04f30db960c 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/index.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/index.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/index.sdf,v 1.7.2.6 2009/01/22 00:00:47 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/index.sdf,v 1.7.2.7 2010/04/13 20:22:33 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
#
# index.sdf
diff --git a/external/bsd/openldap/dist/doc/guide/admin/install.sdf b/external/bsd/openldap/dist/doc/guide/admin/install.sdf
index 5bc05c4cd203..c3a41722a7a1 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/install.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/install.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/install.sdf,v 1.38.2.8 2009/01/22 00:00:47 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/install.sdf,v 1.38.2.9 2010/04/13 20:22:33 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: Building and Installing OpenLDAP Software
diff --git a/external/bsd/openldap/dist/doc/guide/admin/intro.sdf b/external/bsd/openldap/dist/doc/guide/admin/intro.sdf
index 7894f2c563ed..19a85ea35aba 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/intro.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/intro.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/intro.sdf,v 1.45.2.8 2009/01/22 00:00:47 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/intro.sdf,v 1.45.2.9 2010/04/13 20:22:33 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: Introduction to OpenLDAP Directory Services
diff --git a/external/bsd/openldap/dist/doc/guide/admin/limits.sdf b/external/bsd/openldap/dist/doc/guide/admin/limits.sdf
index d83a0015e584..1aab7f7cdd86 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/limits.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/limits.sdf
@@ -1,5 +1,5 @@
-# $Id: limits.sdf,v 1.1.1.1 2010/03/08 02:14:20 lukem Exp $
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# $Id: limits.sdf,v 1.1.1.2 2010/12/12 15:20:06 adam Exp $
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
# This contribution is derived from OpenLDAP Software.
diff --git a/external/bsd/openldap/dist/doc/guide/admin/maintenance.sdf b/external/bsd/openldap/dist/doc/guide/admin/maintenance.sdf
index 463b5f17902d..4bf716e99130 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/maintenance.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/maintenance.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/maintenance.sdf,v 1.7.2.9 2009/01/22 00:00:47 kurt Exp
-# Copyright 2007-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/maintenance.sdf,v 1.7.2.10 2010/04/13 20:22:34 kurt Exp
+# Copyright 2007-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: Maintenance
diff --git a/external/bsd/openldap/dist/doc/guide/admin/master.sdf b/external/bsd/openldap/dist/doc/guide/admin/master.sdf
index 6472dad3612c..551190b13dc0 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/master.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/master.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/master.sdf,v 1.18.2.10 2009/01/22 00:00:47 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/master.sdf,v 1.18.2.11 2010/04/13 20:22:34 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
#
# master file for the OpenLDAP Administrator's Guide
diff --git a/external/bsd/openldap/dist/doc/guide/admin/monitoringslapd.sdf b/external/bsd/openldap/dist/doc/guide/admin/monitoringslapd.sdf
index 1058d12f98f8..e446d6ae261a 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/monitoringslapd.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/monitoringslapd.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/monitoringslapd.sdf,v 1.9.2.6 2009/01/22 00:00:47 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/monitoringslapd.sdf,v 1.9.2.7 2010/04/13 20:22:34 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: Monitoring
diff --git a/external/bsd/openldap/dist/doc/guide/admin/overlays.sdf b/external/bsd/openldap/dist/doc/guide/admin/overlays.sdf
index 469c1574b021..0de148f6c249 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/overlays.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/overlays.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/overlays.sdf,v 1.8.2.28 2009/12/16 19:07:08 quanah Exp
-# Copyright 2007-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/overlays.sdf,v 1.8.2.30 2010/04/15 18:25:42 quanah Exp
+# Copyright 2007-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: Overlays
@@ -613,8 +613,7 @@ specific database. For example, with the following minimal slapd.conf:
> include /usr/share/openldap/schema/core.schema
> include /usr/share/openldap/schema/cosine.schema
-> modulepath /usr/lib/openldap
-> moduleload memberof.la
+>
> authz-regexp "gidNumber=0\\\+uidNumber=0,cn=peercred,cn=external,cn=auth"
> "cn=Manager,dc=example,dc=com"
> database bdb
@@ -1175,11 +1174,6 @@ First we configure the overlay in the normal manner:
> pidfile ./slapd.pid
> argsfile ./slapd.args
>
-> modulepath /usr/local/libexec/openldap
-> moduleload back_bdb.la
-> moduleload back_ldap.la
-> moduleload translucent.la
->
> database bdb
> suffix "dc=suretecsystems,dc=com"
> rootdn "cn=trans,dc=suretecsystems,dc=com"
diff --git a/external/bsd/openldap/dist/doc/guide/admin/preface.sdf b/external/bsd/openldap/dist/doc/guide/admin/preface.sdf
index 2384462c0719..57fee924f669 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/preface.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/preface.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/preface.sdf,v 1.25.2.7 2009/01/22 00:00:47 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/preface.sdf,v 1.25.2.8 2010/04/13 20:22:34 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
#
diff --git a/external/bsd/openldap/dist/doc/guide/admin/quickstart.sdf b/external/bsd/openldap/dist/doc/guide/admin/quickstart.sdf
index baf676d54985..070cc1c41b8b 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/quickstart.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/quickstart.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/quickstart.sdf,v 1.44.2.7 2009/01/22 00:00:47 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/quickstart.sdf,v 1.44.2.8 2010/04/13 20:22:34 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: A Quick-Start Guide
diff --git a/external/bsd/openldap/dist/doc/guide/admin/referrals.sdf b/external/bsd/openldap/dist/doc/guide/admin/referrals.sdf
index cc3ebb65d02b..1227082f10dc 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/referrals.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/referrals.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/referrals.sdf,v 1.25.2.7 2009/02/02 22:46:51 quanah Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/referrals.sdf,v 1.25.2.8 2010/04/13 20:22:34 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: Constructing a Distributed Directory Service
diff --git a/external/bsd/openldap/dist/doc/guide/admin/replication.sdf b/external/bsd/openldap/dist/doc/guide/admin/replication.sdf
index 961161594733..b42b76070344 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/replication.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/replication.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/replication.sdf,v 1.32.2.26 2009/04/28 00:57:46 quanah Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/replication.sdf,v 1.32.2.27 2010/04/13 20:22:34 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: Replication
diff --git a/external/bsd/openldap/dist/doc/guide/admin/runningslapd.sdf b/external/bsd/openldap/dist/doc/guide/admin/runningslapd.sdf
index 545c0bbea487..49d10a8c94cb 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/runningslapd.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/runningslapd.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/runningslapd.sdf,v 1.16.2.8 2009/02/06 16:38:31 quanah Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/runningslapd.sdf,v 1.16.2.9 2010/04/13 20:22:34 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: Running slapd
diff --git a/external/bsd/openldap/dist/doc/guide/admin/sasl.sdf b/external/bsd/openldap/dist/doc/guide/admin/sasl.sdf
index 2cf5eca9ef81..1aa8909d58d2 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/sasl.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/sasl.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/sasl.sdf,v 1.34.2.10 2009/04/29 01:27:12 quanah Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/sasl.sdf,v 1.34.2.11 2010/04/13 20:22:34 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: Using SASL
diff --git a/external/bsd/openldap/dist/doc/guide/admin/schema.sdf b/external/bsd/openldap/dist/doc/guide/admin/schema.sdf
index ec81c0b5fc4b..fac79c733466 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/schema.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/schema.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/schema.sdf,v 1.41.2.9 2009/01/22 00:00:47 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/schema.sdf,v 1.41.2.11 2010/04/19 15:58:40 quanah Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: Schema Specification
@@ -105,7 +105,7 @@ You are, of course, free to design a hierarchy suitable to your
organizational needs under your organization's OID. No matter what hierarchy you choose, you should maintain a registry of assignments you make. This can be a simple flat file or something more sophisticated such as the {{OpenLDAP OID Registry}} ({{URL:http://www.openldap.org/faq/index.cgi?file=197}}).
For more information about Object Identifiers (and a listing service)
-see {{URL:http://www.alvestrand.no/harald/objectid/}}.
+see {{URL:http://www.alvestrand.no/objectid/}}.
.{{Under no circumstances should you hijack OID namespace!}}
diff --git a/external/bsd/openldap/dist/doc/guide/admin/security.sdf b/external/bsd/openldap/dist/doc/guide/admin/security.sdf
index 10ca9a784360..3d9c5b646df5 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/security.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/security.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/security.sdf,v 1.16.2.10 2009/01/22 00:00:47 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/security.sdf,v 1.16.2.11 2010/04/13 20:22:34 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# Portions Copyright 2008 Andrew Findlay.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
diff --git a/external/bsd/openldap/dist/doc/guide/admin/slapdconf2.sdf b/external/bsd/openldap/dist/doc/guide/admin/slapdconf2.sdf
index 3b440579704e..00e53e89f661 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/slapdconf2.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/slapdconf2.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/slapdconf2.sdf,v 1.20.2.20 2009/06/27 17:55:39 quanah Exp
-# Copyright 2005-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/slapdconf2.sdf,v 1.20.2.21 2010/04/13 20:22:35 kurt Exp
+# Copyright 2005-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: Configuring slapd
diff --git a/external/bsd/openldap/dist/doc/guide/admin/slapdconfig.sdf b/external/bsd/openldap/dist/doc/guide/admin/slapdconfig.sdf
index 522c09e5e2ba..68c8c5f73798 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/slapdconfig.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/slapdconfig.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/slapdconfig.sdf,v 1.87.2.20 2009/06/27 17:55:39 quanah Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/slapdconfig.sdf,v 1.87.2.21 2010/04/13 20:22:35 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: The slapd Configuration File
diff --git a/external/bsd/openldap/dist/doc/guide/admin/title.sdf b/external/bsd/openldap/dist/doc/guide/admin/title.sdf
index d5580d28003e..10ceb2f6a731 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/title.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/title.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/title.sdf,v 1.9.6.6 2009/01/22 00:00:47 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/title.sdf,v 1.9.6.7 2010/04/13 20:22:35 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
#
# Document: OpenLDAP Administrator's Guide
diff --git a/external/bsd/openldap/dist/doc/guide/admin/tls.sdf b/external/bsd/openldap/dist/doc/guide/admin/tls.sdf
index 5548b1c54a5e..eee88c0cd30b 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/tls.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/tls.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/tls.sdf,v 1.13.2.9 2009/01/22 00:00:47 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/tls.sdf,v 1.13.2.10 2010/04/13 20:22:35 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: Using TLS
diff --git a/external/bsd/openldap/dist/doc/guide/admin/troubleshooting.sdf b/external/bsd/openldap/dist/doc/guide/admin/troubleshooting.sdf
index 81bdb4220308..1ba2eb6c1b5a 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/troubleshooting.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/troubleshooting.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/troubleshooting.sdf,v 1.10.2.6 2009/01/22 00:00:47 kurt Exp
-# Copyright 2007-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/troubleshooting.sdf,v 1.10.2.7 2010/04/13 20:22:35 kurt Exp
+# Copyright 2007-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: Troubleshooting
diff --git a/external/bsd/openldap/dist/doc/guide/admin/tuning.sdf b/external/bsd/openldap/dist/doc/guide/admin/tuning.sdf
index 218ed66be354..102295a78b79 100644
--- a/external/bsd/openldap/dist/doc/guide/admin/tuning.sdf
+++ b/external/bsd/openldap/dist/doc/guide/admin/tuning.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/admin/tuning.sdf,v 1.9.2.8 2009/01/22 00:00:47 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/admin/tuning.sdf,v 1.9.2.9 2010/04/13 20:22:35 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: Tuning
diff --git a/external/bsd/openldap/dist/doc/guide/images/src/README.fonts b/external/bsd/openldap/dist/doc/guide/images/src/README.fonts
index 1a66d9774c8b..58ada452937b 100644
--- a/external/bsd/openldap/dist/doc/guide/images/src/README.fonts
+++ b/external/bsd/openldap/dist/doc/guide/images/src/README.fonts
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/images/src/README.fonts,v 1.2.2.2 2009/01/22 00:00:48 kurt Exp
-# Copyright 2007-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/images/src/README.fonts,v 1.2.2.3 2010/04/13 20:22:35 kurt Exp
+# Copyright 2007-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
#
# README.fonts
diff --git a/external/bsd/openldap/dist/doc/guide/plain.sdf b/external/bsd/openldap/dist/doc/guide/plain.sdf
index d29654b89c4e..277a959457c2 100644
--- a/external/bsd/openldap/dist/doc/guide/plain.sdf
+++ b/external/bsd/openldap/dist/doc/guide/plain.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/plain.sdf,v 1.11.2.5 2009/01/22 00:00:46 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/plain.sdf,v 1.11.2.6 2010/04/13 20:22:32 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
# template for plain documents
diff --git a/external/bsd/openldap/dist/doc/guide/preamble.sdf b/external/bsd/openldap/dist/doc/guide/preamble.sdf
index 26406bb0d791..983767805353 100644
--- a/external/bsd/openldap/dist/doc/guide/preamble.sdf
+++ b/external/bsd/openldap/dist/doc/guide/preamble.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/preamble.sdf,v 1.70.2.10 2009/11/24 02:41:10 quanah Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/preamble.sdf,v 1.70.2.11 2010/04/13 20:22:32 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
#
diff --git a/external/bsd/openldap/dist/doc/guide/release/copyright-plain.sdf b/external/bsd/openldap/dist/doc/guide/release/copyright-plain.sdf
index 7f4ee1d21fce..7194da39eee4 100644
--- a/external/bsd/openldap/dist/doc/guide/release/copyright-plain.sdf
+++ b/external/bsd/openldap/dist/doc/guide/release/copyright-plain.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/release/copyright-plain.sdf,v 1.10.2.4 2009/01/22 00:00:48 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/release/copyright-plain.sdf,v 1.10.2.5 2010/04/13 20:22:35 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
#
diff --git a/external/bsd/openldap/dist/doc/guide/release/copyright.sdf b/external/bsd/openldap/dist/doc/guide/release/copyright.sdf
index ee1e75c178bf..00d94b1dac17 100644
--- a/external/bsd/openldap/dist/doc/guide/release/copyright.sdf
+++ b/external/bsd/openldap/dist/doc/guide/release/copyright.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/release/copyright.sdf,v 1.22.2.9 2009/01/30 19:38:55 quanah Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/release/copyright.sdf,v 1.22.2.10 2010/04/13 20:22:35 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
!if OPT_PP_HTML
diff --git a/external/bsd/openldap/dist/doc/guide/release/install.sdf b/external/bsd/openldap/dist/doc/guide/release/install.sdf
index 125e43784e80..64848a3af862 100644
--- a/external/bsd/openldap/dist/doc/guide/release/install.sdf
+++ b/external/bsd/openldap/dist/doc/guide/release/install.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/release/install.sdf,v 1.23.2.4 2009/01/22 00:00:48 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/release/install.sdf,v 1.23.2.5 2010/04/13 20:22:35 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
P1: Making and Installing the OpenLDAP Distribution
diff --git a/external/bsd/openldap/dist/doc/guide/release/license-plain.sdf b/external/bsd/openldap/dist/doc/guide/release/license-plain.sdf
index 08d4b113a549..6633fa54915a 100644
--- a/external/bsd/openldap/dist/doc/guide/release/license-plain.sdf
+++ b/external/bsd/openldap/dist/doc/guide/release/license-plain.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/release/license-plain.sdf,v 1.10.2.4 2009/01/22 00:00:48 kurt Exp
-# Copyright 1999-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/release/license-plain.sdf,v 1.10.2.5 2010/04/13 20:22:36 kurt Exp
+# Copyright 1999-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
#
diff --git a/external/bsd/openldap/dist/doc/guide/release/license.sdf b/external/bsd/openldap/dist/doc/guide/release/license.sdf
index 3559b6635199..8422ee20e48f 100644
--- a/external/bsd/openldap/dist/doc/guide/release/license.sdf
+++ b/external/bsd/openldap/dist/doc/guide/release/license.sdf
@@ -1,5 +1,5 @@
-# OpenLDAP: pkg/openldap-guide/release/license.sdf,v 1.12.2.4 2009/01/22 00:00:48 kurt Exp
-# Copyright 2000-2009 The OpenLDAP Foundation, All Rights Reserved.
+# OpenLDAP: pkg/openldap-guide/release/license.sdf,v 1.12.2.5 2010/04/13 20:22:36 kurt Exp
+# Copyright 2000-2010 The OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT.
H1: OpenLDAP Public License
diff --git a/external/bsd/openldap/dist/doc/man/Makefile.in b/external/bsd/openldap/dist/doc/man/Makefile.in
index b08243866e66..20269d197f39 100644
--- a/external/bsd/openldap/dist/doc/man/Makefile.in
+++ b/external/bsd/openldap/dist/doc/man/Makefile.in
@@ -1,8 +1,8 @@
# man Makefile.in for OpenLDAP
-# OpenLDAP: pkg/ldap/doc/man/Makefile.in,v 1.11.2.4 2009/01/22 00:00:48 kurt Exp
+# OpenLDAP: pkg/ldap/doc/man/Makefile.in,v 1.11.2.5 2010/04/13 20:22:36 kurt Exp
## This work is part of OpenLDAP Software
.
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/doc/man/man1/Makefile.in b/external/bsd/openldap/dist/doc/man/man1/Makefile.in
index 7fc87abf27fe..fc4e311b67e1 100644
--- a/external/bsd/openldap/dist/doc/man/man1/Makefile.in
+++ b/external/bsd/openldap/dist/doc/man/man1/Makefile.in
@@ -1,8 +1,8 @@
# man1 Makefile.in for OpenLDAP
-# OpenLDAP: pkg/ldap/doc/man/man1/Makefile.in,v 1.11.2.4 2009/01/22 00:00:48 kurt Exp
+# OpenLDAP: pkg/ldap/doc/man/man1/Makefile.in,v 1.11.2.5 2010/04/13 20:22:36 kurt Exp
## This work is part of OpenLDAP Software
.
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/doc/man/man1/ldapcompare.1 b/external/bsd/openldap/dist/doc/man/man1/ldapcompare.1
index 37c9423251d8..ab31d0543fb5 100644
--- a/external/bsd/openldap/dist/doc/man/man1/ldapcompare.1
+++ b/external/bsd/openldap/dist/doc/man/man1/ldapcompare.1
@@ -1,6 +1,6 @@
.TH LDAPCOMPARE 1 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man1/ldapcompare.1,v 1.12.2.8 2009/06/08 18:23:33 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man1/ldapcompare.1,v 1.12.2.9 2010/04/13 20:22:36 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldapcompare \- LDAP compare tool
diff --git a/external/bsd/openldap/dist/doc/man/man1/ldapdelete.1 b/external/bsd/openldap/dist/doc/man/man1/ldapdelete.1
index 1ee493dc26e0..9f91ab6a1744 100644
--- a/external/bsd/openldap/dist/doc/man/man1/ldapdelete.1
+++ b/external/bsd/openldap/dist/doc/man/man1/ldapdelete.1
@@ -1,6 +1,6 @@
.TH LDAPDELETE 1 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man1/ldapdelete.1,v 1.42.2.9 2009/06/08 18:23:33 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man1/ldapdelete.1,v 1.42.2.10 2010/04/13 20:22:36 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldapdelete \- LDAP delete entry tool
diff --git a/external/bsd/openldap/dist/doc/man/man1/ldapmodify.1 b/external/bsd/openldap/dist/doc/man/man1/ldapmodify.1
index 3fa03f6136fe..0d5528f4124e 100644
--- a/external/bsd/openldap/dist/doc/man/man1/ldapmodify.1
+++ b/external/bsd/openldap/dist/doc/man/man1/ldapmodify.1
@@ -1,6 +1,6 @@
.TH LDAPMODIFY 1 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man1/ldapmodify.1,v 1.49.2.11 2009/06/08 18:23:33 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man1/ldapmodify.1,v 1.49.2.12 2010/04/13 20:22:36 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldapmodify, ldapadd \- LDAP modify entry and LDAP add entry tools
diff --git a/external/bsd/openldap/dist/doc/man/man1/ldapmodrdn.1 b/external/bsd/openldap/dist/doc/man/man1/ldapmodrdn.1
index c0922fb9eec8..5b3be4e44d02 100644
--- a/external/bsd/openldap/dist/doc/man/man1/ldapmodrdn.1
+++ b/external/bsd/openldap/dist/doc/man/man1/ldapmodrdn.1
@@ -1,6 +1,6 @@
.TH LDAPMODRDN 1 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man1/ldapmodrdn.1,v 1.38.2.8 2009/06/08 18:23:33 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man1/ldapmodrdn.1,v 1.38.2.9 2010/04/13 20:22:36 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldapmodrdn \- LDAP rename entry tool
diff --git a/external/bsd/openldap/dist/doc/man/man1/ldappasswd.1 b/external/bsd/openldap/dist/doc/man/man1/ldappasswd.1
index 4beadee85703..5bb4e47de4d0 100644
--- a/external/bsd/openldap/dist/doc/man/man1/ldappasswd.1
+++ b/external/bsd/openldap/dist/doc/man/man1/ldappasswd.1
@@ -1,6 +1,6 @@
.TH LDAPPASSWD 1 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man1/ldappasswd.1,v 1.39.2.8 2009/06/03 01:41:51 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man1/ldappasswd.1,v 1.39.2.9 2010/04/13 20:22:36 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldappasswd \- change the password of an LDAP entry
diff --git a/external/bsd/openldap/dist/doc/man/man1/ldapsearch.1 b/external/bsd/openldap/dist/doc/man/man1/ldapsearch.1
index 1ba694ab99a7..3ec172ffa79d 100644
--- a/external/bsd/openldap/dist/doc/man/man1/ldapsearch.1
+++ b/external/bsd/openldap/dist/doc/man/man1/ldapsearch.1
@@ -1,6 +1,6 @@
.TH LDAPSEARCH 1 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man1/ldapsearch.1,v 1.59.2.11 2009/07/22 20:02:20 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man1/ldapsearch.1,v 1.59.2.12 2010/04/13 20:22:37 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldapsearch \- LDAP search tool
diff --git a/external/bsd/openldap/dist/doc/man/man1/ldapurl.1 b/external/bsd/openldap/dist/doc/man/man1/ldapurl.1
index 85959b10696b..39ed73b8fd84 100644
--- a/external/bsd/openldap/dist/doc/man/man1/ldapurl.1
+++ b/external/bsd/openldap/dist/doc/man/man1/ldapurl.1
@@ -1,6 +1,6 @@
.TH LDAPURL 1 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man1/ldapurl.1,v 1.1.2.4 2009/06/08 18:23:33 quanah Exp
-.\" Copyright 2008-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man1/ldapurl.1,v 1.1.2.5 2010/04/13 20:22:37 kurt Exp
+.\" Copyright 2008-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldapurl \- LDAP URL formatting tool
diff --git a/external/bsd/openldap/dist/doc/man/man1/ldapwhoami.1 b/external/bsd/openldap/dist/doc/man/man1/ldapwhoami.1
index 36e9dc31e191..50490903d181 100644
--- a/external/bsd/openldap/dist/doc/man/man1/ldapwhoami.1
+++ b/external/bsd/openldap/dist/doc/man/man1/ldapwhoami.1
@@ -1,6 +1,6 @@
.TH LDAPWHOAMI 1 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man1/ldapwhoami.1,v 1.10.2.8 2009/06/08 18:23:33 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man1/ldapwhoami.1,v 1.10.2.9 2010/04/13 20:22:37 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldapwhoami \- LDAP who am i? tool
diff --git a/external/bsd/openldap/dist/doc/man/man3/Makefile.in b/external/bsd/openldap/dist/doc/man/man3/Makefile.in
index aa777d0b7e06..f8bce035645a 100644
--- a/external/bsd/openldap/dist/doc/man/man3/Makefile.in
+++ b/external/bsd/openldap/dist/doc/man/man3/Makefile.in
@@ -1,8 +1,8 @@
# man3 Makefile.in for OpenLDAP
-# OpenLDAP: pkg/ldap/doc/man/man3/Makefile.in,v 1.11.2.4 2009/01/22 00:00:48 kurt Exp
+# OpenLDAP: pkg/ldap/doc/man/man3/Makefile.in,v 1.11.2.5 2010/04/13 20:22:37 kurt Exp
## This work is part of OpenLDAP Software
.
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/doc/man/man3/lber-decode.3 b/external/bsd/openldap/dist/doc/man/man3/lber-decode.3
index 2a50b0a163e4..2c83a53d9cbe 100644
--- a/external/bsd/openldap/dist/doc/man/man3/lber-decode.3
+++ b/external/bsd/openldap/dist/doc/man/man3/lber-decode.3
@@ -1,6 +1,6 @@
.TH LBER_DECODE 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/lber-decode.3,v 1.23.2.6 2009/06/03 01:41:52 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/lber-decode.3,v 1.23.2.7 2010/04/13 20:22:37 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ber_get_next, ber_skip_tag, ber_peek_tag, ber_scanf, ber_get_int, ber_get_enum, ber_get_stringb, ber_get_stringa, ber_get_stringal, ber_get_stringbv, ber_get_null, ber_get_boolean, ber_get_bitstring, ber_first_element, ber_next_element \- OpenLDAP LBER simplified Basic Encoding Rules library routines for decoding
diff --git a/external/bsd/openldap/dist/doc/man/man3/lber-encode.3 b/external/bsd/openldap/dist/doc/man/man3/lber-encode.3
index 3e88990ea2cf..08e5a1c7cef9 100644
--- a/external/bsd/openldap/dist/doc/man/man3/lber-encode.3
+++ b/external/bsd/openldap/dist/doc/man/man3/lber-encode.3
@@ -1,6 +1,6 @@
.TH LBER_ENCODE 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/lber-encode.3,v 1.21.2.6 2009/06/03 01:41:52 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/lber-encode.3,v 1.21.2.7 2010/04/13 20:22:37 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ber_alloc_t, ber_flush, ber_flush2, ber_printf, ber_put_int, ber_put_enum, ber_put_ostring, ber_put_string, ber_put_null, ber_put_boolean, ber_put_bitstring, ber_start_seq, ber_start_set, ber_put_seq, ber_put_set \- OpenLDAP LBER simplified Basic Encoding Rules library routines for encoding
diff --git a/external/bsd/openldap/dist/doc/man/man3/lber-memory.3 b/external/bsd/openldap/dist/doc/man/man3/lber-memory.3
index c6759a0e6e89..6d7299af5a33 100644
--- a/external/bsd/openldap/dist/doc/man/man3/lber-memory.3
+++ b/external/bsd/openldap/dist/doc/man/man3/lber-memory.3
@@ -1,6 +1,6 @@
.TH LBER_MEMORY 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/lber-memory.3,v 1.14.2.5 2009/06/03 01:41:52 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/lber-memory.3,v 1.14.2.6 2010/04/13 20:22:37 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ber_memalloc, ber_memcalloc, ber_memrealloc, ber_memfree, ber_memvfree \- OpenLDAP LBER memory allocators
diff --git a/external/bsd/openldap/dist/doc/man/man3/lber-sockbuf.3 b/external/bsd/openldap/dist/doc/man/man3/lber-sockbuf.3
index 524b51ec9955..f70cac34d773 100644
--- a/external/bsd/openldap/dist/doc/man/man3/lber-sockbuf.3
+++ b/external/bsd/openldap/dist/doc/man/man3/lber-sockbuf.3
@@ -1,6 +1,6 @@
.TH LBER_SOCKBUF 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/lber-sockbuf.3,v 1.2.2.5 2009/06/03 01:41:52 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/lber-sockbuf.3,v 1.2.2.6 2010/04/13 20:22:37 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ber_sockbuf_alloc, ber_sockbuf_free, ber_sockbuf_ctrl, ber_sockbuf_add_io, ber_sockbuf_remove_io, Sockbuf_IO \- OpenLDAP LBER I/O infrastructure
diff --git a/external/bsd/openldap/dist/doc/man/man3/lber-types.3 b/external/bsd/openldap/dist/doc/man/man3/lber-types.3
index 0cb317e20f51..6a2e99ef330a 100644
--- a/external/bsd/openldap/dist/doc/man/man3/lber-types.3
+++ b/external/bsd/openldap/dist/doc/man/man3/lber-types.3
@@ -1,6 +1,6 @@
.TH LBER_TYPES 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/lber-types.3,v 1.19.2.5 2009/06/03 01:41:52 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/lber-types.3,v 1.19.2.6 2010/04/13 20:22:37 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ber_int_t, ber_uint_t, ber_len_t, ber_slen_t, ber_tag_t, struct berval, BerValue, BerVarray, BerElement, ber_bvfree, ber_bvecfree, ber_bvecadd, ber_bvarray_free, ber_bvarray_add, ber_bvdup, ber_dupbv, ber_bvstr, ber_bvstrdup, ber_str2bv, ber_alloc_t, ber_init, ber_init2, ber_free \- OpenLDAP LBER types and allocation functions
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap.3 b/external/bsd/openldap/dist/doc/man/man3/ldap.3
index 53f02c2706f1..aebf4ff028e6 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap.3
@@ -1,6 +1,6 @@
.TH LDAP 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap.3,v 1.40.2.6 2009/06/03 01:41:52 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap.3,v 1.40.2.7 2010/04/13 20:22:37 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap \- OpenLDAP Lightweight Directory Access Protocol API
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_abandon.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_abandon.3
index 27a8c7b2f730..f318081e646d 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_abandon.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_abandon.3
@@ -1,6 +1,6 @@
.TH LDAP_ABANDON 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_abandon.3,v 1.17.2.6 2009/06/03 01:41:53 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_abandon.3,v 1.17.2.7 2010/04/13 20:22:38 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_abandon_ext \- Abandon an LDAP operation in progress
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_add.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_add.3
index 2c4e2ec6d626..238bc7d6e60e 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_add.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_add.3
@@ -1,6 +1,6 @@
.TH LDAP_ADD 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_add.3,v 1.17.2.6 2009/06/03 01:41:53 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_add.3,v 1.17.2.7 2010/04/13 20:22:38 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_add_ext, ldap_add_ext_s \- Perform an LDAP add operation
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_bind.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_bind.3
index f4ce6cb0e8f0..2ede92c72b83 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_bind.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_bind.3
@@ -1,6 +1,6 @@
.TH LDAP_BIND 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_bind.3,v 1.20.2.7 2009/06/03 01:41:53 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_bind.3,v 1.20.2.8 2010/04/13 20:22:38 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_bind, ldap_bind_s, ldap_simple_bind, ldap_simple_bind_s, ldap_sasl_bind, ldap_sasl_bind_s, ldap_sasl_interactive_bind_s, ldap_parse_sasl_bind_result, ldap_unbind, ldap_unbind_s, ldap_unbind_ext, ldap_unbind_ext_s, ldap_set_rebind_proc \- LDAP bind routines
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_compare.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_compare.3
index 5877c8223630..ce4741751569 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_compare.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_compare.3
@@ -1,6 +1,6 @@
.TH LDAP_COMPARE 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_compare.3,v 1.16.2.6 2009/06/03 01:41:53 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_compare.3,v 1.16.2.7 2010/04/13 20:22:38 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_compare, ldap_compare_s, ldap_compare_ext, ldap_compare_ext_s \- Perform an LDAP compare operation.
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_controls.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_controls.3
index 9f8b8c97ea38..0e184d83246d 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_controls.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_controls.3
@@ -1,6 +1,6 @@
.TH LDAP_CONTROLS 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_controls.3,v 1.1.2.5 2009/06/03 01:41:53 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_controls.3,v 1.1.2.6 2010/04/13 20:22:38 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_control_create, ldap_control_find, ldap_control_dup,
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_delete.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_delete.3
index c17a3ae17874..fa9ada691b6b 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_delete.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_delete.3
@@ -1,6 +1,6 @@
.TH LDAP_DELETE 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_delete.3,v 1.16.2.5 2009/06/03 01:41:53 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_delete.3,v 1.16.2.6 2010/04/13 20:22:38 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_delete, ldap_delete_s, ldap_delete_ext, ldap_delete_ext_s \- Perform an LDAP delete operation.
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_error.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_error.3
index bf516f3b9966..51d8ee91bf80 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_error.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_error.3
@@ -1,6 +1,6 @@
.TH LDAP_ERROR 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_error.3,v 1.21.2.6 2009/06/03 01:41:53 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_error.3,v 1.21.2.7 2010/04/13 20:22:38 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_perror, ld_errno, ldap_result2error, ldap_errlist, ldap_err2string \- LDAP protocol error handling routines
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_extended_operation.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_extended_operation.3
index 60e46928e668..73dbb456e1d9 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_extended_operation.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_extended_operation.3
@@ -1,6 +1,6 @@
.TH LDAP_EXTENDED_OPERATION 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_extended_operation.3,v 1.1.2.8 2009/06/03 01:41:53 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_extended_operation.3,v 1.1.2.9 2010/04/13 20:22:38 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_extended_operation, ldap_extended_operation_s \- Extends the LDAP operations to the LDAP server.
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_first_attribute.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_first_attribute.3
index 971769ea2af3..13d0fbe1e667 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_first_attribute.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_first_attribute.3
@@ -1,6 +1,6 @@
.TH LDAP_FIRST_ATTRIBUTE 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_first_attribute.3,v 1.21.2.6 2009/06/03 01:41:53 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_first_attribute.3,v 1.21.2.7 2010/04/13 20:22:38 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_first_attribute, ldap_next_attribute \- step through LDAP entry attributes
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_first_entry.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_first_entry.3
index 443713192ecd..99fbddecf5ab 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_first_entry.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_first_entry.3
@@ -1,6 +1,6 @@
.TH LDAP_FIRST_ENTRY 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_first_entry.3,v 1.16.2.5 2009/06/03 01:41:53 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_first_entry.3,v 1.16.2.6 2010/04/13 20:22:38 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_first_entry, ldap_next_entry, ldap_count_entries \- LDAP result entry parsing and counting routines
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_first_message.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_first_message.3
index 6d6074660499..e05fa1b36a04 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_first_message.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_first_message.3
@@ -1,6 +1,6 @@
.TH LDAP_FIRST_MESSAGE 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_first_message.3,v 1.11.2.5 2009/06/03 01:41:53 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_first_message.3,v 1.11.2.6 2010/04/13 20:22:38 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_first_message, ldap_next_message, ldap_count_messages \- Stepping through messages in a result chain
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_first_reference.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_first_reference.3
index 18c0df21b9f4..e2015fe2b884 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_first_reference.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_first_reference.3
@@ -1,6 +1,6 @@
.TH LDAP_FIRST_REFERENCE 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_first_reference.3,v 1.11.2.5 2009/06/03 01:41:54 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_first_reference.3,v 1.11.2.6 2010/04/13 20:22:39 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_first_reference, ldap_next_reference, ldap_count_references \- Stepping through continuation references in a result chain
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_get_dn.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_get_dn.3
index 0c6b08db150e..185e8b939c37 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_get_dn.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_get_dn.3
@@ -1,6 +1,6 @@
.TH LDAP_GET_DN 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_get_dn.3,v 1.28.2.7 2009/10/30 17:57:32 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_get_dn.3,v 1.28.2.8 2010/04/13 20:22:39 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_get_dn, ldap_explode_dn, ldap_explode_rdn, ldap_dn2ufn \- LDAP DN handling routines
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_get_option.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_get_option.3
index 42b128e60c87..dde8f0aa889e 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_get_option.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_get_option.3
@@ -1,6 +1,6 @@
.TH LDAP_GET_OPTION 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_get_option.3,v 1.3.2.8 2009/08/27 20:30:49 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_get_option.3,v 1.3.2.9 2010/04/13 20:22:39 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_get_option, ldap_set_option \- LDAP option handling routines
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_get_values.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_get_values.3
index 9d937865c805..0cca29a2b328 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_get_values.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_get_values.3
@@ -1,6 +1,6 @@
.TH LDAP_GET_VALUES 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_get_values.3,v 1.17.2.6 2009/06/03 01:41:54 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_get_values.3,v 1.17.2.7 2010/04/13 20:22:39 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_get_values, ldap_get_values_len, ldap_count_values \- LDAP attribute value handling routines
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_memory.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_memory.3
index 8f985bf4c319..97c7ade8927a 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_memory.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_memory.3
@@ -1,6 +1,6 @@
.TH LDAP_MEMORY 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_memory.3,v 1.1.2.5 2009/06/03 01:41:54 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_memory.3,v 1.1.2.6 2010/04/13 20:22:39 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_memfree, ldap_memvfree, ldap_memalloc, ldap_memcalloc, ldap_memrealloc, ldap_strdup \- LDAP memory allocation routines
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_modify.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_modify.3
index fcb36f921794..7098e74beb45 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_modify.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_modify.3
@@ -1,6 +1,6 @@
.TH LDAP_MODIFY 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_modify.3,v 1.14.2.6 2009/06/03 01:41:54 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_modify.3,v 1.14.2.7 2010/04/13 20:22:39 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_modify_ext, ldap_modify_ext_s \- Perform an LDAP modify operation
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_modrdn.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_modrdn.3
index 4f019f9328da..4fd918ab7255 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_modrdn.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_modrdn.3
@@ -1,6 +1,6 @@
.TH LDAP_MODRDN 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_modrdn.3,v 1.14.2.5 2009/06/03 01:41:54 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_modrdn.3,v 1.14.2.6 2010/04/13 20:22:39 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_modrdn, ldap_modrdn_s, ldap_modrdn2, ldap_modrdn2_s \- Perform an LDAP modify RDN operation
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_open.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_open.3
index 412d2ab54570..84108c26a0e8 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_open.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_open.3
@@ -1,6 +1,6 @@
.TH LDAP_OPEN 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_open.3,v 1.16.2.6 2009/08/25 22:53:47 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_open.3,v 1.16.2.7 2010/04/13 20:22:39 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_init, ldap_initialize, ldap_open \- Initialize the LDAP library and open a connection to an LDAP server
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_parse_reference.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_parse_reference.3
index 752ff65784ad..79baa01df17d 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_parse_reference.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_parse_reference.3
@@ -1,6 +1,6 @@
.TH LDAP_PARSE_REFERENCE 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_parse_reference.3,v 1.12.2.5 2009/06/03 01:41:54 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_parse_reference.3,v 1.12.2.6 2010/04/13 20:22:39 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_parse_reference \- Extract referrals and controls from a reference message
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_parse_result.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_parse_result.3
index aa35f41be62e..5f48c56d3fd9 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_parse_result.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_parse_result.3
@@ -1,6 +1,6 @@
.TH LDAP_PARSE_RESULT 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_parse_result.3,v 1.11.2.5 2009/06/03 01:41:54 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_parse_result.3,v 1.11.2.6 2010/04/13 20:22:39 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_parse_result \- Parsing results
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_parse_sort_control.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_parse_sort_control.3
index e7fab564b5b0..b69c6e4217f7 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_parse_sort_control.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_parse_sort_control.3
@@ -1,6 +1,6 @@
.TH LDAP_PARSE_SORT-CONTROL 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_parse_sort_control.3,v 1.1.2.5 2009/06/03 01:41:54 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_parse_sort_control.3,v 1.1.2.6 2010/04/13 20:22:40 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_parse_sort_control \- Decode the information returned from a search operation that used a server-side sort control
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_parse_vlv_control.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_parse_vlv_control.3
index 537880d88dda..c882a152567f 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_parse_vlv_control.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_parse_vlv_control.3
@@ -1,6 +1,6 @@
.TH LDAP_PARSE_VLV_CONTROL 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_parse_vlv_control.3,v 1.1.2.6 2009/06/03 01:41:55 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_parse_vlv_control.3,v 1.1.2.7 2010/04/13 20:22:40 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_parse_vlv_control \- Decode the information returned from a search operation that used a VLV (virtual list view) control
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_rename.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_rename.3
index ee86c8688231..b49841e24294 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_rename.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_rename.3
@@ -1,6 +1,6 @@
.TH LDAP_RENAME 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_rename.3,v 1.1.2.5 2009/06/03 01:41:55 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_rename.3,v 1.1.2.6 2010/04/13 20:22:40 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_rename, ldap_rename_s \- Renames the specified entry.
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_result.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_result.3
index 6be79434b7f1..b38fb11fa466 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_result.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_result.3
@@ -1,6 +1,6 @@
.TH LDAP_RESULT 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_result.3,v 1.20.2.8 2009/11/18 17:04:31 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_result.3,v 1.20.2.9 2010/04/13 20:22:40 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_result \- Wait for the result of an LDAP operation
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_schema.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_schema.3
index 343b3725b481..c62ef3b13b6d 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_schema.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_schema.3
@@ -1,6 +1,6 @@
.TH LDAP_SCHEMA 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_schema.3,v 1.15.2.6 2009/06/03 01:41:55 quanah Exp
-.\" Copyright 2000-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_schema.3,v 1.15.2.7 2010/04/13 20:22:40 kurt Exp
+.\" Copyright 2000-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_str2syntax, ldap_syntax2str, ldap_syntax2name, ldap_syntax_free, ldap_str2matchingrule, ldap_matchingrule2str, ldap_matchingrule2name, ldap_matchingrule_free, ldap_str2attributetype, ldap_attributetype2str, ldap_attributetype2name, ldap_attributetype_free, ldap_str2objectclass, ldap_objectclass2str, ldap_objectclass2name, ldap_objectclass_free, ldap_scherr2str \- Schema definition handling routines
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_search.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_search.3
index ad6eedacc10e..20c7672d6625 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_search.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_search.3
@@ -1,6 +1,6 @@
.TH LDAP_SEARCH 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_search.3,v 1.22.2.6 2009/06/03 01:41:55 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_search.3,v 1.22.2.8 2010/04/14 18:08:22 quanah Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_search, ldap_search_s, ldap_search_st, ldap_search_ext, ldap_search_ext_s \- Perform an LDAP search operation
@@ -114,6 +114,14 @@ emulate read) or LDAP_SCOPE_ONELEVEL (to emulate list).
These routines may dynamically allocate memory. The caller is
responsible for freeing such memory using supplied deallocation
routines. Return values are contained in
.
+.LP
+Note that \fIres\fR parameter of
+.B ldap_search_ext_s()
+and
+.B ldap_search_s()
+should be freed with
+.B ldap_msgfree()
+regardless of return value of these functions.
.SH DEPRECATED INTERFACES
The
.B ldap_search()
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_sort.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_sort.3
index eddf3d6416a4..18eb0c88c36d 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_sort.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_sort.3
@@ -1,6 +1,6 @@
.TH LDAP_SORT 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_sort.3,v 1.15.2.6 2009/06/03 01:41:55 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_sort.3,v 1.15.2.7 2010/04/13 20:22:40 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_sort_entries, ldap_sort_values, ldap_sort_strcasecmp \- LDAP sorting routines (deprecated)
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_sync.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_sync.3
index f6b5dd29375e..6c5ce8acee70 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_sync.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_sync.3
@@ -1,6 +1,6 @@
.TH LDAP_SYNC 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_sync.3,v 1.1.2.6 2009/06/03 01:41:55 quanah Exp
-.\" Copyright 2006-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_sync.3,v 1.1.2.7 2010/04/13 20:22:40 kurt Exp
+.\" Copyright 2006-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_sync_init, ldap_sync_init_refresh_only, ldap_sync_init_refresh_and_persist, ldap_sync_poll \- LDAP sync routines
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_tls.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_tls.3
index a1e9016eb25e..a70cfd9a9664 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_tls.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_tls.3
@@ -1,6 +1,6 @@
.TH LDAP_TLS 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_tls.3,v 1.1.2.5 2009/06/03 01:41:55 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_tls.3,v 1.1.2.6 2010/04/13 20:22:40 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_start_tls, ldap_start_tls_s, ldap_tls_inplace, ldap_install_tls \- LDAP TLS initialization routines
diff --git a/external/bsd/openldap/dist/doc/man/man3/ldap_url.3 b/external/bsd/openldap/dist/doc/man/man3/ldap_url.3
index 7e2af60fa582..aecc750aa227 100644
--- a/external/bsd/openldap/dist/doc/man/man3/ldap_url.3
+++ b/external/bsd/openldap/dist/doc/man/man3/ldap_url.3
@@ -1,6 +1,6 @@
.TH LDAP_URL 3 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_url.3,v 1.18.2.7 2009/06/03 01:41:55 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man3/ldap_url.3,v 1.18.2.8 2010/04/13 20:22:40 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap_is_ldap_url, ldap_url_parse, ldap_free_urldesc \- LDAP Uniform Resource Locator routines
diff --git a/external/bsd/openldap/dist/doc/man/man5/Makefile.in b/external/bsd/openldap/dist/doc/man/man5/Makefile.in
index 3235ad32fdc2..0e71947c0249 100644
--- a/external/bsd/openldap/dist/doc/man/man5/Makefile.in
+++ b/external/bsd/openldap/dist/doc/man/man5/Makefile.in
@@ -1,8 +1,8 @@
# man5 Makefile.in for OpenLDAP
-# OpenLDAP: pkg/ldap/doc/man/man5/Makefile.in,v 1.11.2.4 2009/01/22 00:00:49 kurt Exp
+# OpenLDAP: pkg/ldap/doc/man/man5/Makefile.in,v 1.11.2.5 2010/04/13 20:22:40 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/doc/man/man5/ldap.conf.5 b/external/bsd/openldap/dist/doc/man/man5/ldap.conf.5
index 7c333864c8b0..630b1d064b63 100644
--- a/external/bsd/openldap/dist/doc/man/man5/ldap.conf.5
+++ b/external/bsd/openldap/dist/doc/man/man5/ldap.conf.5
@@ -1,6 +1,6 @@
.TH LDAP.CONF 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man5/ldap.conf.5,v 1.33.2.13 2009/11/18 20:41:15 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man5/ldap.conf.5,v 1.33.2.14 2010/04/13 20:22:41 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldap.conf, .ldaprc \- LDAP configuration file/environment variables
diff --git a/external/bsd/openldap/dist/doc/man/man5/ldif.5 b/external/bsd/openldap/dist/doc/man/man5/ldif.5
index a86310ebeb42..85ebb51f95fc 100644
--- a/external/bsd/openldap/dist/doc/man/man5/ldif.5
+++ b/external/bsd/openldap/dist/doc/man/man5/ldif.5
@@ -1,6 +1,6 @@
.TH LDIF 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" OpenLDAP: pkg/ldap/doc/man/man5/ldif.5,v 1.22.2.5 2009/06/03 01:41:55 quanah Exp
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" OpenLDAP: pkg/ldap/doc/man/man5/ldif.5,v 1.22.2.6 2010/04/13 20:22:41 kurt Exp
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldif \- LDAP Data Interchange Format
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd-bdb.5 b/external/bsd/openldap/dist/doc/man/man5/slapd-bdb.5
index d99b2e8c00aa..30c7866cd87a 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd-bdb.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd-bdb.5
@@ -1,7 +1,7 @@
.TH SLAPD-BDB 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-bdb.5,v 1.31.2.12 2009/07/27 17:38:40 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-bdb.5,v 1.31.2.13 2010/04/13 20:22:41 kurt Exp
.SH NAME
slapd\-bdb, slapd\-hdb \- Berkeley DB backends to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd-config.5 b/external/bsd/openldap/dist/doc/man/man5/slapd-config.5
index 720a5621793b..a45760b6bb86 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd-config.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd-config.5
@@ -1,7 +1,7 @@
.TH SLAPD-CONFIG 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-config.5,v 1.13.2.23 2009/11/22 20:31:59 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-config.5,v 1.13.2.26 2010/06/10 17:17:53 quanah Exp
.SH NAME
slapd\-config \- configuration backend to slapd
.SH SYNOPSIS
@@ -1552,6 +1552,13 @@ a namingContext (suffix) of the database, a simple bind password
may also be provided using the
.B olcRootPW
directive. Note that the rootdn is always needed when using syncrepl.
+The
+.B olcRootDN
+of the
+.B cn=config
+database defaults to
+.B cn=config
+itself.
.TP
.B olcRootPW:
Specify a password (or hash of the password) for the rootdn. The
@@ -1661,6 +1668,7 @@ FALSE, meaning the contextCSN is stored in the context entry.
.B [credentials=]
.B [realm=]
.B [secprops=]
+.B [keepalive=::]
.B [starttls=yes|critical]
.B [tls_cert=]
.B [tls_key=]
@@ -1802,6 +1810,22 @@ should grant that identity appropriate access privileges to the data
that is being replicated (\fBaccess\fP directive), and appropriate time
and size limits (\fBlimits\fP directive).
+The
+.B keepalive
+parameter sets the values of \fIidle\fP, \fIprobes\fP, and \fIinterval\fP
+used to check whether a socket is alive;
+.I idle
+is the number of seconds a connection needs to remain idle before TCP
+starts sending keepalive probes;
+.I probes
+is the maximum number of keepalive probes TCP should send before dropping
+the connection;
+.I interval
+is interval in seconds between individual keepalive probes.
+Only some systems support the customization of these values;
+the
+.B keepalive
+parameter is ignored otherwise, and system-wide settings are used.
The
.B starttls
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd-dnssrv.5 b/external/bsd/openldap/dist/doc/man/man5/slapd-dnssrv.5
index add8044bdf2a..bb97d4dce2b0 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd-dnssrv.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd-dnssrv.5
@@ -1,7 +1,7 @@
.TH SLAPD-DNSSRV 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-dnssrv.5,v 1.11.2.6 2009/06/03 01:41:56 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-dnssrv.5,v 1.11.2.7 2010/04/13 20:22:41 kurt Exp
.SH NAME
slapd\-dnssrv \- DNS SRV referral backend to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd-ldap.5 b/external/bsd/openldap/dist/doc/man/man5/slapd-ldap.5
index 9e4a06a1e754..70acced9d95b 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd-ldap.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd-ldap.5
@@ -1,7 +1,7 @@
.TH SLAPD-LDAP 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-ldap.5,v 1.41.2.14 2009/06/03 01:41:56 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-ldap.5,v 1.41.2.17 2010/04/19 19:28:14 quanah Exp
.SH NAME
slapd\-ldap \- LDAP backend to slapd
.SH SYNOPSIS
@@ -341,7 +341,7 @@ useful when the asserted identities do not exist on the remote server.
Flags can be
-\fBoverride,[non\-]prescriptive\fP
+\fBoverride,[non\-]prescriptive,proxy\-authz\-[non\-]critical\fP
When the
.B override
@@ -365,6 +365,13 @@ whose assertion is not allowed by the
.B idassert\-authzFrom
patterns.
+When the
+.B proxy\-authz\-non\-critical
+flag is used (the default), the proxyAuthz control is not marked as critical,
+in violation of RFC 4370. Use of
+.B proxy\-authz\-critical
+is recommended.
+
The TLS settings default to the same as the main slapd TLS settings,
except for
.B tls_reqcert
@@ -382,6 +389,24 @@ and
.BR idassert\-method .
.RE
+.TP
+.B idassert-passthru
+if defined, selects what
+.I local
+identities bypass the identity assertion feature.
+Those identities need to be known by the remote host.
+The string
+.B
+follows the rules defined for the
+.I authzFrom
+attribute.
+See
+.BR slapd.conf (5),
+section related to
+.BR authz\-policy ,
+for details on the syntax of this field.
+
+
.TP
.B idle\-timeout
This directive causes a cached connection to be dropped an recreated
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd-ldbm.5 b/external/bsd/openldap/dist/doc/man/man5/slapd-ldbm.5
index c702360f0cf1..3d348ae58396 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd-ldbm.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd-ldbm.5
@@ -1,7 +1,7 @@
.TH SLAPD-LDBM 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-ldbm.5,v 1.14.2.5 2009/06/03 01:41:56 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-ldbm.5,v 1.14.2.6 2010/04/13 20:22:41 kurt Exp
.SH NAME
slapd\-ldbm \- Discontinued LDBM backend to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd-ldif.5 b/external/bsd/openldap/dist/doc/man/man5/slapd-ldif.5
index 02444e01d0dd..86e966c56802 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd-ldif.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd-ldif.5
@@ -1,7 +1,7 @@
.TH SLAPD-LDIF 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-ldif.5,v 1.3.2.6 2009/06/03 01:41:56 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-ldif.5,v 1.3.2.7 2010/04/13 20:22:41 kurt Exp
.SH NAME
slapd\-ldif \- LDIF backend to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd-meta.5 b/external/bsd/openldap/dist/doc/man/man5/slapd-meta.5
index facd16dafa71..d9fc93e9db2e 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd-meta.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd-meta.5
@@ -1,8 +1,8 @@
.TH SLAPD-META 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation, All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation, All Rights Reserved.
.\" Copying restrictions apply. See the COPYRIGHT file.
.\" Copyright 2001, Pierangelo Masarati, All rights reserved.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-meta.5,v 1.46.2.17 2009/12/15 20:37:40 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-meta.5,v 1.46.2.19 2010/04/19 19:28:14 quanah Exp
.\"
.\" Portions of this document should probably be moved to slapd-ldap(5)
.\" and maybe manual pages for librewrite.
@@ -464,7 +464,7 @@ useful when the asserted identities do not exist on the remote server.
Flags can be
-\fBoverride,[non\-]prescriptive\fP
+\fBoverride,[non\-]prescriptive,proxy\-authz\-[non\-]critical\fP
When the
.B override
@@ -488,6 +488,13 @@ whose assertion is not allowed by the
.B idassert\-authzFrom
patterns.
+When the
+.B proxy\-authz\-non\-critical
+flag is used (the default), the proxyAuthz control is not marked as critical,
+in violation of RFC 4370. Use of
+.B proxy\-authz\-critical
+is recommended.
+
The TLS settings default to the same as the main slapd TLS settings,
except for
.B tls_reqcert
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd-monitor.5 b/external/bsd/openldap/dist/doc/man/man5/slapd-monitor.5
index e91f4394d600..f93d99619305 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd-monitor.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd-monitor.5
@@ -1,7 +1,7 @@
.TH SLAPD-MONITOR 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-monitor.5,v 1.9.2.6 2009/06/03 01:41:56 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-monitor.5,v 1.9.2.7 2010/04/13 20:22:41 kurt Exp
.SH NAME
slapd\-monitor \- Monitor backend to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd-ndb.5 b/external/bsd/openldap/dist/doc/man/man5/slapd-ndb.5
index f88ac16aba92..103ecf834c78 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd-ndb.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd-ndb.5
@@ -1,7 +1,7 @@
.TH SLAPD-NDB 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2008-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2008-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-ndb.5,v 1.4.2.4 2009/06/03 01:41:56 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-ndb.5,v 1.4.2.5 2010/04/13 20:22:42 kurt Exp
.SH NAME
slapd\-ndb \- MySQL NDB backend to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd-null.5 b/external/bsd/openldap/dist/doc/man/man5/slapd-null.5
index bdafc47885a4..504ecc83ccd4 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd-null.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd-null.5
@@ -1,7 +1,7 @@
.TH SLAPD-NULL 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2002-2009 The OpenLDAP Foundation. All Rights Reserved.
+.\" Copyright 2002-2010 The OpenLDAP Foundation. All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-null.5,v 1.10.2.6 2009/06/03 01:41:57 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-null.5,v 1.10.2.7 2010/04/13 20:22:42 kurt Exp
.SH NAME
slapd\-null \- Null backend to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd-passwd.5 b/external/bsd/openldap/dist/doc/man/man5/slapd-passwd.5
index 6b8ec9e8c0b9..4195c6cf4681 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd-passwd.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd-passwd.5
@@ -1,7 +1,7 @@
.TH SLAPD-PASSWD 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-passwd.5,v 1.11.2.5 2009/06/03 01:41:57 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-passwd.5,v 1.11.2.6 2010/04/13 20:22:42 kurt Exp
.SH NAME
slapd\-passwd \- /etc/passwd backend to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd-relay.5 b/external/bsd/openldap/dist/doc/man/man5/slapd-relay.5
index e54a8207dfcb..191ec43b7fcc 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd-relay.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd-relay.5
@@ -1,7 +1,7 @@
.TH SLAPD-RELAY 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-relay.5,v 1.4.4.4 2009/06/03 01:41:57 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-relay.5,v 1.4.4.5 2010/04/13 20:22:42 kurt Exp
.SH NAME
slapd\-relay \- relay backend to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd-shell.5 b/external/bsd/openldap/dist/doc/man/man5/slapd-shell.5
index 5ce21880887d..feb19fa7694a 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd-shell.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd-shell.5
@@ -1,7 +1,7 @@
.TH SLAPD-SHELL 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-shell.5,v 1.16.2.7 2009/06/03 01:41:57 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-shell.5,v 1.16.2.8 2010/04/13 20:22:42 kurt Exp
.SH NAME
slapd\-shell \- Shell backend to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd-sock.5 b/external/bsd/openldap/dist/doc/man/man5/slapd-sock.5
index 57553bed77ab..868062bfd1fb 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd-sock.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd-sock.5
@@ -1,7 +1,7 @@
.TH SLAPD-SOCK 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2007-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2007-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-sock.5,v 1.3.2.4 2009/06/03 01:41:57 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd-sock.5,v 1.3.2.5 2010/04/13 20:22:42 kurt Exp
.SH NAME
slapd\-sock \- Socket backend to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd.access.5 b/external/bsd/openldap/dist/doc/man/man5/slapd.access.5
index 50be577f32c8..caff6c46b7f5 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd.access.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd.access.5
@@ -1,7 +1,7 @@
.TH SLAPD.ACCESS 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd.access.5,v 1.70.2.18 2009/06/27 18:00:32 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd.access.5,v 1.70.2.20 2010/04/19 22:25:07 quanah Exp
.SH NAME
slapd.access \- access configuration for slapd, the stand-alone LDAP daemon
.SH SYNOPSIS
@@ -257,6 +257,24 @@ resulting in base, onelevel, subtree or children match, respectively.
The dn, filter, and attrs statements are additive; they can be used in sequence
to select entities the access rule applies to based on naming context,
value and attribute type simultaneously.
+Submatches resulting from
+.B regex
+matching can be dereferenced in the
+.B
+field using the syntax
+.IR ${v} ,
+where
+.I
+is the submatch number.
+The default syntax,
+.IR $ ,
+is actually an alias for
+.IR ${d} ,
+that corresponds to dereferencing submatches from the
+.B dnpattern
+portion of the
+.B
+field.
.SH THE FIELD
The field
.B
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd.backends.5 b/external/bsd/openldap/dist/doc/man/man5/slapd.backends.5
index 16114f5117ab..c522d5cea439 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd.backends.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd.backends.5
@@ -1,7 +1,7 @@
.TH SLAPD.BACKENDS 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2006-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2006-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd.backends.5,v 1.3.2.6 2009/06/03 01:41:58 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd.backends.5,v 1.3.2.7 2010/04/13 20:22:42 kurt Exp
.SH NAME
slapd.backends \- backends for slapd, the stand-alone LDAP daemon
.SH DESCRIPTION
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd.conf.5 b/external/bsd/openldap/dist/doc/man/man5/slapd.conf.5
index 13b66059e7c3..fd31c81c0b26 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd.conf.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd.conf.5
@@ -1,7 +1,7 @@
.TH SLAPD.CONF 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd.conf.5,v 1.239.2.37 2009/11/22 20:31:59 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd.conf.5,v 1.239.2.39 2010/04/16 18:05:07 quanah Exp
.SH NAME
slapd.conf \- configuration file for slapd, the stand-alone LDAP daemon
.SH SYNOPSIS
@@ -1647,6 +1647,7 @@ the contextCSN is stored in the context entry.
.B [credentials=]
.B [realm=]
.B [secprops=]
+.B [keepalive=::]
.B [starttls=yes|critical]
.B [tls_cert=]
.B [tls_key=]
@@ -1807,6 +1808,23 @@ and \fBtimelimit\fP, or by setting an appropriate \fBlimits\fP statement
in the consumer's configuration (see \fBsizelimit\fP and \fBlimits\fP
for details).
+The
+.B keepalive
+parameter sets the values of \fIidle\fP, \fIprobes\fP, and \fIinterval\fP
+used to check whether a socket is alive;
+.I idle
+is the number of seconds a connection needs to remain idle before TCP
+starts sending keepalive probes;
+.I probes
+is the maximum number of keepalive probes TCP should send before dropping
+the connection;
+.I interval
+is interval in seconds between individual keepalive probes.
+Only some systems support the customization of these values;
+the
+.B keepalive
+parameter is ignored otherwise, and system-wide settings are used.
+
The
.B starttls
parameter specifies use of the StartTLS extended operation
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd.overlays.5 b/external/bsd/openldap/dist/doc/man/man5/slapd.overlays.5
index 9ac1791cfac8..d6051a211d08 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd.overlays.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd.overlays.5
@@ -1,7 +1,7 @@
.TH SLAPD.OVERLAYS 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2006-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2006-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd.overlays.5,v 1.4.2.5 2009/06/03 01:41:58 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapd.overlays.5,v 1.4.2.6 2010/04/13 20:22:43 kurt Exp
.SH NAME
slapd.overlays \- overlays for slapd, the stand-alone LDAP daemon
.SH DESCRIPTION
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapd.plugin.5 b/external/bsd/openldap/dist/doc/man/man5/slapd.plugin.5
index e6fb822fab4c..5d3615446210 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapd.plugin.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapd.plugin.5
@@ -1,5 +1,5 @@
.TH SLAPD.PLUGIN 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2002-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2002-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
slapd.plugin \- plugin configuration for slapd, the stand-alone LDAP daemon
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-accesslog.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-accesslog.5
index d269de836772..8c8ebbc46801 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-accesslog.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-accesslog.5
@@ -1,7 +1,7 @@
.TH SLAPO-ACCESSLOG 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2005-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2005-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-accesslog.5,v 1.9.2.8 2009/06/03 01:41:58 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-accesslog.5,v 1.9.2.9 2010/04/13 20:22:43 kurt Exp
.SH NAME
slapo\-accesslog \- Access Logging overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-auditlog.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-auditlog.5
index 6d4031d3decd..98162d59cfab 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-auditlog.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-auditlog.5
@@ -1,7 +1,7 @@
.TH SLAPO-AUDITLOG 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2005-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2005-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-auditlog.5,v 1.3.2.7 2009/06/03 01:41:58 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-auditlog.5,v 1.3.2.8 2010/04/13 20:22:43 kurt Exp
.SH NAME
slapo\-auditlog \- Audit Logging overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-chain.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-chain.5
index 69b632edaa71..e71e0ca8b345 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-chain.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-chain.5
@@ -1,7 +1,7 @@
.TH SLAPO-CHAIN 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation, All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation, All Rights Reserved.
.\" Copying restrictions apply. See the COPYRIGHT file.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-chain.5,v 1.10.2.7 2009/06/03 01:41:58 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-chain.5,v 1.10.2.9 2010/04/14 22:31:47 quanah Exp
.SH NAME
slapo\-chain \- chain overlay to slapd
.SH SYNOPSIS
@@ -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/external/bsd/openldap/dist/doc/man/man5/slapo-collect.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-collect.5
index 85d807d0735b..02f33c0be6ff 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-collect.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-collect.5
@@ -1,7 +1,7 @@
.TH SLAPO-COLLECT 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2003-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2003-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-collect.5,v 1.3.2.4 2009/06/03 01:41:59 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-collect.5,v 1.3.2.5 2010/04/13 20:22:43 kurt Exp
.SH NAME
slapo\-collect \- Collective attributes overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-constraint.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-constraint.5
index 9552a3fe1b4e..69e4de5a9f91 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-constraint.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-constraint.5
@@ -1,8 +1,8 @@
.TH SLAPO-CONSTRAINT 5 "RELEASEDATE" "OpenLDAP LDVERSION"
.\" Copyright 2005-2006 Hewlett-Packard Company
-.\" Copyright 2006-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2006-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-constraint.5,v 1.2.2.17 2009/06/03 01:41:59 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-constraint.5,v 1.2.2.18 2010/04/13 20:22:43 kurt Exp
.SH NAME
slapo\-constraint \- Attribute Constraint Overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-dds.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-dds.5
index 9690a81f410c..b05d09a593ca 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-dds.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-dds.5
@@ -1,7 +1,7 @@
.TH SLAPO-DDS 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2005-2009 The OpenLDAP Foundation, All Rights Reserved.
+.\" Copyright 2005-2010 The OpenLDAP Foundation, All Rights Reserved.
.\" Copying restrictions apply. See the COPYRIGHT file.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-dds.5,v 1.1.2.9 2009/06/03 01:41:59 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-dds.5,v 1.1.2.10 2010/04/13 20:22:43 kurt Exp
.SH NAME
slapo\-dds \- Dynamic Directory Services overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-dyngroup.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-dyngroup.5
index 1acc8c0e0a54..7bd95dbd6fa6 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-dyngroup.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-dyngroup.5
@@ -1,7 +1,7 @@
.TH SLAPO-DYNGROUP 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2005-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2005-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-dyngroup.5,v 1.2.2.5 2009/06/03 01:41:59 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-dyngroup.5,v 1.2.2.6 2010/04/13 20:22:43 kurt Exp
.SH NAME
slapo\-dyngroup \- Dynamic Group overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-dynlist.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-dynlist.5
index a744f0646235..0f0b8386b348 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-dynlist.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-dynlist.5
@@ -1,7 +1,7 @@
.TH SLAPO-DYNLIST 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation, All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation, All Rights Reserved.
.\" Copying restrictions apply. See the COPYRIGHT file.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-dynlist.5,v 1.7.2.8 2009/06/03 01:41:59 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-dynlist.5,v 1.7.2.9 2010/04/13 20:22:44 kurt Exp
.SH NAME
slapo\-dynlist \- Dynamic List overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-memberof.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-memberof.5
index 3ade76ca2b9c..5eee44600020 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-memberof.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-memberof.5
@@ -1,7 +1,7 @@
.TH SLAPO-MEMBEROF 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation, All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation, All Rights Reserved.
.\" Copying restrictions apply. See the COPYRIGHT file.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-memberof.5,v 1.1.2.6 2009/06/03 01:41:59 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-memberof.5,v 1.1.2.7 2010/04/13 20:22:44 kurt Exp
.SH NAME
slapo\-memberof \- Reverse Group Membership overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-pbind.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-pbind.5
new file mode 100644
index 000000000000..b70034861f05
--- /dev/null
+++ b/external/bsd/openldap/dist/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: pkg/ldap/doc/man/man5/slapo-pbind.5,v 1.2.2.2 2010/04/14 22:31:47 quanah Exp
+.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
+Set the network timeout.
+
+.TP
+.B quarantine
+Turns on quarantine of URIs that returned
+.IR LDAP_UNAVAILABLE .
+
+.SH FILES
+.TP
+ETCDIR/slapd.conf
+default slapd configuration file
+.SH SEE ALSO
+.BR slapd.conf (5),
+.BR slapd\-config (5),
+.BR slapd\-ldap (5),
+.BR slapd (8).
+.SH AUTHOR
+Howard Chu
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-pcache.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-pcache.5
index d7304f73b66f..8d6c9e6d1931 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-pcache.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-pcache.5
@@ -1,8 +1,8 @@
.TH SLAPO-PCACHE 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation, All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation, All Rights Reserved.
.\" Copying restrictions apply. See the COPYRIGHT file.
.\" Copyright 2001, Pierangelo Masarati, All rights reserved.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-pcache.5,v 1.14.2.11 2009/08/25 21:24:46 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-pcache.5,v 1.14.2.12 2010/04/13 20:22:44 kurt Exp
.SH NAME
slapo\-pcache \- proxy cache overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-ppolicy.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-ppolicy.5
index 243fc2fa4a06..3f263947b8f9 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-ppolicy.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-ppolicy.5
@@ -1,7 +1,7 @@
.TH SLAPO_PPOLICY 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2004-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2004-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-ppolicy.5,v 1.12.2.13 2009/10/30 18:03:16 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-ppolicy.5,v 1.12.2.14 2010/04/13 20:22:44 kurt Exp
.SH NAME
slapo\-ppolicy \- Password Policy overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-refint.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-refint.5
index bbaa3694ff98..0fc7957f48b6 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-refint.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-refint.5
@@ -1,7 +1,7 @@
.TH SLAPO-REFINT 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2004-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2004-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-refint.5,v 1.5.2.8 2009/06/03 01:41:59 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-refint.5,v 1.5.2.9 2010/04/13 20:22:44 kurt Exp
.SH NAME
slapo\-refint \- Referential Integrity overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-retcode.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-retcode.5
index 4b43853b825e..0be825e839e3 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-retcode.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-retcode.5
@@ -1,8 +1,8 @@
.TH SLAPO-RETCODE 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation, All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation, All Rights Reserved.
.\" Copying restrictions apply. See the COPYRIGHT file.
.\" Copyright 2001, Pierangelo Masarati, All rights reserved.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-retcode.5,v 1.9.2.9 2009/06/03 01:42:00 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-retcode.5,v 1.9.2.10 2010/04/13 20:22:44 kurt Exp
.SH NAME
slapo\-retcode \- return code overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-rwm.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-rwm.5
index 603144b0e468..68a51138112b 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-rwm.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-rwm.5
@@ -1,8 +1,8 @@
.TH SLAPO-RWM 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation, All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation, All Rights Reserved.
.\" Copying restrictions apply. See the COPYRIGHT file.
.\" Copyright 2004, Pierangelo Masarati, All rights reserved.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-rwm.5,v 1.14.2.10 2009/06/03 01:42:00 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-rwm.5,v 1.14.2.11 2010/04/13 20:22:45 kurt Exp
.\"
.\" Portions of this document should probably be moved to slapd-ldap(5)
.\" and maybe manual pages for librewrite.
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-sssvlv.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-sssvlv.5
index 83e8b3c2fe9b..952e0086946c 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-sssvlv.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-sssvlv.5
@@ -1,8 +1,8 @@
.TH SLAPO-SSSVLV 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2009-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copyright 2009 Symas Corporation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-sssvlv.5,v 1.1.2.2 2009/07/22 20:02:21 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-sssvlv.5,v 1.1.2.3 2010/04/13 20:22:45 kurt Exp
.SH NAME
slapo\-sssvlv \- Server Side Sorting and Virtual List View overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-syncprov.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-syncprov.5
index c1f266d2fdf0..b7816cad172c 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-syncprov.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-syncprov.5
@@ -1,7 +1,7 @@
.TH SLAPO-SYNCPROV 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2004-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2004-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-syncprov.5,v 1.9.2.8 2009/06/03 01:42:00 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-syncprov.5,v 1.9.2.9 2010/04/13 20:22:45 kurt Exp
.SH NAME
slapo\-syncprov \- Sync Provider overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-translucent.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-translucent.5
index c241a3d5a1cf..d3457435010d 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-translucent.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-translucent.5
@@ -1,7 +1,7 @@
.TH SLAPO-TRANSLUCENT 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2004-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2004-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-translucent.5,v 1.4.2.10 2009/06/03 01:42:00 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-translucent.5,v 1.4.2.11 2010/04/13 20:22:45 kurt Exp
.SH NAME
slapo\-translucent \- Translucent Proxy overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-unique.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-unique.5
index 147ade558f46..a174f8b8fd0c 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-unique.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-unique.5
@@ -1,7 +1,7 @@
.TH SLAPO-UNIQUE 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2004-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2004-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-unique.5,v 1.6.2.7 2009/06/03 01:42:00 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-unique.5,v 1.6.2.8 2010/04/13 20:22:45 kurt Exp
.SH NAME
slapo\-unique \- Attribute Uniqueness overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man5/slapo-valsort.5 b/external/bsd/openldap/dist/doc/man/man5/slapo-valsort.5
index a0e706d9f44f..5a1aeaeb0567 100644
--- a/external/bsd/openldap/dist/doc/man/man5/slapo-valsort.5
+++ b/external/bsd/openldap/dist/doc/man/man5/slapo-valsort.5
@@ -1,7 +1,7 @@
.TH SLAPO-VALSORT 5 "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2005-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2005-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-valsort.5,v 1.4.2.6 2009/06/03 01:42:00 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man5/slapo-valsort.5,v 1.4.2.7 2010/04/13 20:22:45 kurt Exp
.SH NAME
slapo\-valsort \- Value Sorting overlay to slapd
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man8/Makefile.in b/external/bsd/openldap/dist/doc/man/man8/Makefile.in
index 230028c52173..dce5be3b13d9 100644
--- a/external/bsd/openldap/dist/doc/man/man8/Makefile.in
+++ b/external/bsd/openldap/dist/doc/man/man8/Makefile.in
@@ -1,8 +1,8 @@
# man8 Makefile.in for OpenLDAP
-# OpenLDAP: pkg/ldap/doc/man/man8/Makefile.in,v 1.11.2.4 2009/01/22 00:00:50 kurt Exp
+# OpenLDAP: pkg/ldap/doc/man/man8/Makefile.in,v 1.11.2.5 2010/04/13 20:22:45 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/doc/man/man8/slapacl.8 b/external/bsd/openldap/dist/doc/man/man8/slapacl.8
index 1dcd1cf667f9..3fe2c51b21c7 100644
--- a/external/bsd/openldap/dist/doc/man/man8/slapacl.8
+++ b/external/bsd/openldap/dist/doc/man/man8/slapacl.8
@@ -1,7 +1,7 @@
.TH SLAPACL 8C "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2004-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2004-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man8/slapacl.8,v 1.8.2.11 2009/06/03 01:42:00 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man8/slapacl.8,v 1.8.2.12 2010/04/13 20:22:45 kurt Exp
.SH NAME
slapacl \- Check access to a list of attributes.
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man8/slapadd.8 b/external/bsd/openldap/dist/doc/man/man8/slapadd.8
index e3c68dcc9622..1bf4eccb5399 100644
--- a/external/bsd/openldap/dist/doc/man/man8/slapadd.8
+++ b/external/bsd/openldap/dist/doc/man/man8/slapadd.8
@@ -1,7 +1,7 @@
.TH SLAPADD 8C "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man8/slapadd.8,v 1.34.2.13 2009/06/08 18:01:09 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man8/slapadd.8,v 1.34.2.14 2010/04/13 20:22:46 kurt Exp
.SH NAME
slapadd \- Add entries to a SLAPD database
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man8/slapauth.8 b/external/bsd/openldap/dist/doc/man/man8/slapauth.8
index 0e836f8f5add..2c54a8994fc3 100644
--- a/external/bsd/openldap/dist/doc/man/man8/slapauth.8
+++ b/external/bsd/openldap/dist/doc/man/man8/slapauth.8
@@ -1,7 +1,7 @@
.TH SLAPAUTH 8C "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2004-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2004-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man8/slapauth.8,v 1.6.2.10 2009/06/03 01:42:01 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man8/slapauth.8,v 1.6.2.11 2010/04/13 20:22:46 kurt Exp
.SH NAME
slapauth \- Check a list of string-represented IDs for LDAP authc/authz
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man8/slapcat.8 b/external/bsd/openldap/dist/doc/man/man8/slapcat.8
index 4a43d0b507a5..4fd208f6e199 100644
--- a/external/bsd/openldap/dist/doc/man/man8/slapcat.8
+++ b/external/bsd/openldap/dist/doc/man/man8/slapcat.8
@@ -1,7 +1,7 @@
.TH SLAPCAT 8C "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man8/slapcat.8,v 1.28.2.12 2009/09/29 19:05:44 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man8/slapcat.8,v 1.28.2.14 2010/04/14 22:59:08 quanah Exp
.SH NAME
slapcat \- SLAPD database to LDIF utility
.SH SYNOPSIS
@@ -21,6 +21,8 @@ slapcat \- SLAPD database to LDIF utility
[\c
.BR \-g ]
[\c
+.BI \-H URI\fR]
+[\c
.BI \-l ldif-file\fR]
[\c
.BI \-n dbnum\fR]
@@ -69,6 +71,7 @@ slapcat \-a \\
will dump all but the "ou=People,dc=example,dc=com" subtree
of the "dc=example,dc=com" database.
+Deprecated; use \fB-H\fP \fIldap:///???(filter)\fP instead.
.TP
.BI \-b \ suffix
Use the specified \fIsuffix\fR to determine which database to
@@ -109,6 +112,9 @@ default config file is ignored.
disable subordinate gluing. Only the specified database will be
processed, and not its glued subordinates (if any).
.TP
+.B \-H \ URI
+use dn, scope and filter from URI to only handle matching entries.
+.TP
.BI \-l \ ldif-file
Write LDIF to specified file instead of standard output.
.TP
@@ -147,6 +153,7 @@ Implies \fB\-b\fP \fIsubtree-dn\fP if no
or
.B \-n
option is given.
+Deprecated; use \fB-H\fP \fIldap:///subtree-dn\fP instead.
.TP
.B \-v
Enable verbose mode.
diff --git a/external/bsd/openldap/dist/doc/man/man8/slapd.8 b/external/bsd/openldap/dist/doc/man/man8/slapd.8
index 0746fed150bd..102c4ff085a8 100644
--- a/external/bsd/openldap/dist/doc/man/man8/slapd.8
+++ b/external/bsd/openldap/dist/doc/man/man8/slapd.8
@@ -1,7 +1,7 @@
.TH SLAPD 8C "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man8/slapd.8,v 1.64.2.11 2009/06/03 01:42:01 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man8/slapd.8,v 1.64.2.12 2010/04/13 20:22:46 kurt Exp
.SH NAME
slapd \- Stand-alone LDAP Daemon
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man8/slapdn.8 b/external/bsd/openldap/dist/doc/man/man8/slapdn.8
index ded4637f1c7b..0a14f7388de0 100644
--- a/external/bsd/openldap/dist/doc/man/man8/slapdn.8
+++ b/external/bsd/openldap/dist/doc/man/man8/slapdn.8
@@ -1,7 +1,7 @@
.TH SLAPDN 8C "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2004-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2004-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man8/slapdn.8,v 1.6.2.10 2009/06/03 01:42:01 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man8/slapdn.8,v 1.6.2.11 2010/04/13 20:22:46 kurt Exp
.SH NAME
slapdn \- Check a list of string-represented LDAP DNs based on schema syntax
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man8/slapindex.8 b/external/bsd/openldap/dist/doc/man/man8/slapindex.8
index a6f8b83e5b7e..256fbfdf81d2 100644
--- a/external/bsd/openldap/dist/doc/man/man8/slapindex.8
+++ b/external/bsd/openldap/dist/doc/man/man8/slapindex.8
@@ -1,7 +1,7 @@
.TH SLAPINDEX 8C "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man8/slapindex.8,v 1.19.2.14 2009/06/03 01:42:01 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man8/slapindex.8,v 1.19.2.15 2010/04/13 20:22:46 kurt Exp
.SH NAME
slapindex \- Reindex entries in a SLAPD database
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man8/slappasswd.8 b/external/bsd/openldap/dist/doc/man/man8/slappasswd.8
index 518b963e8ff6..cc2eb8e06f01 100644
--- a/external/bsd/openldap/dist/doc/man/man8/slappasswd.8
+++ b/external/bsd/openldap/dist/doc/man/man8/slappasswd.8
@@ -1,7 +1,7 @@
.TH SLAPPASSWD 8C "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man8/slappasswd.8,v 1.21.2.10 2009/06/03 01:42:01 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man8/slappasswd.8,v 1.21.2.11 2010/04/13 20:22:46 kurt Exp
.SH NAME
slappasswd \- OpenLDAP password utility
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/man/man8/slapschema.8 b/external/bsd/openldap/dist/doc/man/man8/slapschema.8
index 5a09c7786b47..f040758047de 100644
--- a/external/bsd/openldap/dist/doc/man/man8/slapschema.8
+++ b/external/bsd/openldap/dist/doc/man/man8/slapschema.8
@@ -1,7 +1,7 @@
.TH SLAPSCHEMA 8C "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 1998-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 1998-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man8/slapschema.8,v 1.1.2.3 2009/06/03 01:42:01 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man8/slapschema.8,v 1.1.2.5 2010/04/14 22:59:08 quanah Exp
.SH NAME
slapschema \- SLAPD in-database schema checking utility
.SH SYNOPSIS
@@ -21,6 +21,8 @@ slapschema \- SLAPD in-database schema checking utility
[\c
.BR \-g ]
[\c
+.BI \-H URI\fR]
+[\c
.BI \-l error-file\fR]
[\c
.BI \-n dbnum\fR]
@@ -72,6 +74,7 @@ slapschema \-a \\
will check all but the "ou=People,dc=example,dc=com" subtree
of the "dc=example,dc=com" database.
+Deprecated; use \fB-H\fP \fIldap:///???(filter)\fP instead.
.TP
.BI \-b \ suffix
Use the specified \fIsuffix\fR to determine which database to
@@ -112,6 +115,9 @@ default config file is ignored.
disable subordinate gluing. Only the specified database will be
processed, and not its glued subordinates (if any).
.TP
+.B \-H \ URI
+use dn, scope and filter from URI to only handle matching entries.
+.TP
.BI \-l \ error-file
Write errors to specified file instead of standard output.
.TP
@@ -149,6 +155,7 @@ Implies \fB\-b\fP \fIsubtree-dn\fP if no
nor
.B \-n
option is given.
+Deprecated; use \fB-H\fP \fIldap:///subtree-dn\fP instead.
.TP
.B \-v
Enable verbose mode.
diff --git a/external/bsd/openldap/dist/doc/man/man8/slaptest.8 b/external/bsd/openldap/dist/doc/man/man8/slaptest.8
index 2fe81be7c1a4..ddfd7896182f 100644
--- a/external/bsd/openldap/dist/doc/man/man8/slaptest.8
+++ b/external/bsd/openldap/dist/doc/man/man8/slaptest.8
@@ -1,7 +1,7 @@
.TH SLAPTEST 8C "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2004-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2004-2010 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
-.\" OpenLDAP: pkg/ldap/doc/man/man8/slaptest.8,v 1.7.2.11 2009/09/29 19:05:44 quanah Exp
+.\" OpenLDAP: pkg/ldap/doc/man/man8/slaptest.8,v 1.7.2.12 2010/04/13 20:22:46 kurt Exp
.SH NAME
slaptest \- Check the suitability of the OpenLDAP slapd.conf file
.SH SYNOPSIS
diff --git a/external/bsd/openldap/dist/doc/rfc/INDEX b/external/bsd/openldap/dist/doc/rfc/INDEX
index 81f29367716e..5916cc29ace5 100644
--- a/external/bsd/openldap/dist/doc/rfc/INDEX
+++ b/external/bsd/openldap/dist/doc/rfc/INDEX
@@ -63,6 +63,7 @@ rfc4531.txt LDAP Turn Operation (E)
rfc4532.txt LDAP Who am I? Operation (PS)
rfc4533.txt LDAP Content Sync Operation (E)
rfc5020.txt LDAP 'entryDN' operational attribute (PS)
+rfc5805.txt LDAP Transactions (E)
Legend:
STD Standard
@@ -75,4 +76,4 @@ BCP Best Common Practice
Please see http://www.rfc-editor.org/ for up-to-date status information.
-OpenLDAP: pkg/ldap/doc/rfc/INDEX,v 1.42.2.3 2007/09/26 15:33:48 quanah Exp
+OpenLDAP: pkg/ldap/doc/rfc/INDEX,v 1.42.2.4 2010/04/15 19:58:21 quanah Exp
diff --git a/external/bsd/openldap/dist/doc/rfc/rfc5805.txt b/external/bsd/openldap/dist/doc/rfc/rfc5805.txt
new file mode 100644
index 000000000000..55b6b9e9e18a
--- /dev/null
+++ b/external/bsd/openldap/dist/doc/rfc/rfc5805.txt
@@ -0,0 +1,619 @@
+
+
+
+
+
+
+Independent Submission K. Zeilenga
+Request for Comments: 5805 Isode Limited
+Category: Experimental March 2010
+ISSN: 2070-1721
+
+
+ Lightweight Directory Access Protocol (LDAP) Transactions
+
+Abstract
+
+ Lightweight Directory Access Protocol (LDAP) update operations, such
+ as Add, Delete, and Modify operations, have atomic, consistency,
+ isolation, durability (ACID) properties. Each of these update
+ operations act upon an entry. It is often desirable to update two or
+ more entries in a single unit of interaction, a transaction.
+ Transactions are necessary to support a number of applications
+ including resource provisioning. This document extends LDAP to
+ support transactions.
+
+Status of This Memo
+
+ This document is not an Internet Standards Track specification; it is
+ published for examination, experimental implementation, and
+ evaluation.
+
+ This document defines an Experimental Protocol for the Internet
+ community. This is a contribution to the RFC Series, independently
+ of any other RFC stream. The RFC Editor has chosen to publish this
+ document at its discretion and makes no statement about its value for
+ implementation or deployment. Documents approved for publication by
+ the RFC Editor are not a candidate for any level of Internet
+ Standard; see Section 2 of RFC 5741.
+
+ Information about the current status of this document, any errata,
+ and how to provide feedback on it may be obtained at
+ http://www.rfc-editor.org/info/rfc5805.
+
+Copyright Notice
+
+ Copyright (c) 2010 IETF Trust and the persons identified as the
+ document authors. All rights reserved.
+
+ This document is subject to BCP 78 and the IETF Trust's Legal
+ Provisions Relating to IETF Documents
+ (http://trustee.ietf.org/license-info) in effect on the date of
+ publication of this document. Please review these documents
+ carefully, as they describe your rights and restrictions with respect
+ to this document.
+
+
+
+Zeilenga Experimental [Page 1]
+
+RFC 5805 LDAP Transactions March 2010
+
+
+1. Overview
+
+ This document extends the Lightweight Directory Access Protocol
+ (LDAP) [RFC4510] to allow clients to relate a number of update
+ operations [RFC4511] and have them performed as one unit of
+ interaction, a transaction. As with distinct update operations, each
+ transaction has atomic, consistency, isolation, and durability (ACID)
+ properties [ACID].
+
+ This extension consists of two extended operations, one control, and
+ one unsolicited notification message. The Start Transaction
+ operation is used to obtain a transaction identifier. This
+ identifier is then attached to multiple update operations to indicate
+ that they belong to the transaction using the Transaction
+ Specification control. The End Transaction is used to settle (commit
+ or abort) the transaction. The Aborted Transaction Notice is
+ provided by the server to notify the client that the server is no
+ longer willing or able to process an outstanding transaction.
+
+1.1. Conventions and Terminology
+
+ The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
+ "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
+ document are to be interpreted as described in RFC 2119 [RFC2119].
+
+ Protocol elements are described using ASN.1 [X.680] with implicit
+ tags. The term "BER-encoded" means the element is to be encoded
+ using the Basic Encoding Rules [X.690] under the restrictions
+ detailed in Section 5.1 of [RFC4511].
+
+ DSA stands for "Directory System Agent" (a server). DSE stands for
+ "DSA-specific entry".
+
+2. Elements of an LDAP Transaction
+
+2.1. Start Transaction Request and Response
+
+ A Start Transaction Request is an LDAPMessage of CHOICE extendedReq
+ where the requestName is 1.3.6.1.1.21.1 and the requestValue is
+ absent.
+
+ A Start Transaction Response is an LDAPMessage of CHOICE extendedRes
+ sent in response to a Start Transaction Request. Its responseName is
+ absent. When the resultCode is success (0), responseValue is present
+ and contains a transaction identifier. Otherwise, the responseValue
+ is absent.
+
+
+
+
+
+Zeilenga Experimental [Page 2]
+
+RFC 5805 LDAP Transactions March 2010
+
+
+2.2. Transaction Specification Control
+
+ A Transaction Specification Control is an LDAPControl where the
+ controlType is 1.3.6.1.1.21.2, the criticality is TRUE, and the
+ controlValue is a transaction identifier. The control is appropriate
+ for update requests including Add, Delete, Modify, and ModifyDN
+ (Rename) requests [RFC4511], as well as the Password Modify requests
+ [RFC3062].
+
+ As discussed in Section 4, the Transaction Specification control can
+ be used in conjunction with request controls appropriate for the
+ update request.
+
+2.3. End Transactions Request and Response
+
+ An End Transaction Request is an LDAPMessage of CHOICE extendedReq
+ where the requestName is 1.3.6.1.1.21.3 and the requestValue is
+ present and contains a BER-encoded txnEndReq.
+
+ txnEndReq ::= SEQUENCE {
+ commit BOOLEAN DEFAULT TRUE,
+ identifier OCTET STRING }
+
+ A commit value of TRUE indicates a request to commit the transaction
+ identified by the identifier. A commit value of FALSE indicates a
+ request to abort the identified transaction.
+
+ An End Transaction Response is an LDAPMessage sent in response to a
+ End Transaction Request. Its response name is absent. The
+ responseValue when present contains a BER-encoded txnEndRes.
+
+ txnEndRes ::= SEQUENCE {
+ messageID MessageID OPTIONAL,
+ -- msgid associated with non-success resultCode
+ updatesControls SEQUENCE OF updateControls SEQUENCE {
+ messageID MessageID,
+ -- msgid associated with controls
+ controls Controls
+ } OPTIONAL
+ }
+ -- where MessageID and Controls are as specified in RFC 4511
+
+ The txnEndRes.messageID provides the message id of the update request
+ associated with a non-success response. txnEndRes.messageID is
+ absent when resultCode of the End Transaction Response is success
+ (0).
+
+
+
+
+
+Zeilenga Experimental [Page 3]
+
+RFC 5805 LDAP Transactions March 2010
+
+
+ The txnEndRes.updatesControls provides a facility for returning
+ response controls that normally (i.e., in the absence of
+ transactions) would be returned in an update response. The
+ updateControls.messageID provides the message id of the update
+ request associated with the response controls provided in
+ updateControls.controls.
+
+ The txnEndRes.updatesControls is absent when there are no update
+ response controls to return.
+
+ If both txnEndRes.messageID and txnEndRes.updatesControl are absent,
+ the responseValue of the End Transaction Response is absent.
+
+2.4. Aborted Transaction Notice
+
+ The Aborted Transaction Notice is an Unsolicited Notification message
+ where the responseName is 1.3.6.1.1.21.4 and responseValue is present
+ and contains a transaction identifier.
+
+3. An LDAP Transaction
+
+3.1. Extension Discovery
+
+ To allow clients to discover support for this extension, servers
+ implementing this specification SHOULD publish 1.3.6.1.1.21.1 and
+ 1.3.6.1.1.21.3 as values of the 'supportedExtension' attribute
+ [RFC4512] within the Root DSE, and publish the 1.3.6.1.1.21.2 as a
+ value of the 'supportedControl' attribute [RFC4512] of the Root DSE.
+
+ A server MAY choose to advertise this extension only when the client
+ is authorized to use it.
+
+3.2. Starting a Transaction
+
+ A client wishing to perform a sequence of directory updates as a
+ transaction issues a Start Transaction Request. A server that is
+ willing and able to support transactions responds to this request
+ with a Start Transaction Response providing a transaction identifier
+ and with a resultCode of success (0). Otherwise, the server responds
+ with a Start Transaction Response with a resultCode other than
+ success indicating the nature of the failure.
+
+ The transaction identifier provided upon successful start of a
+ transaction is used in subsequent protocol messages to identify this
+ transaction.
+
+
+
+
+
+
+Zeilenga Experimental [Page 4]
+
+RFC 5805 LDAP Transactions March 2010
+
+
+3.3. Specification of a Transaction
+
+ The client then can issue one or more update requests, each with a
+ Transaction Specification control containing the transaction
+ identifier indicating the updates are to be processed as part of the
+ transaction. Each of these update requests MUST have a different
+ MessageID value. If the server is unwilling or unable to attempt to
+ process the requested update operation as part of the transaction,
+ the server immediately returns the appropriate response to the
+ request with a resultCode indicating the nature of the failure.
+ Otherwise, the server immediately returns a resultCode of success (0)
+ and the defers further processing of the operation is then deferred
+ until settlement.
+
+ If the server becomes unwilling or unable to continue the
+ specification of a transaction, the server issues an Aborted
+ Transaction Notice with a non-success resultCode indicating the
+ nature of the failure. All operations that were to be processed as
+ part of the transaction are implicitly abandoned. Upon receipt of an
+ Aborted Transaction Notice, the client is to discontinue all use of
+ the transaction identifier as the transaction is null and void. Any
+ future use of identifier by the client will result in a response
+ containing a non-success resultCode.
+
+3.4. Transaction Settlement
+
+ A client requests settlement of transaction by issuing an End
+ Transaction Request for the transaction indicating whether it desires
+ the transaction to be committed or aborted.
+
+ Upon receipt of a request to abort the transaction, the server is to
+ abort the identified transaction (abandoning all operations that are
+ part of the transaction) and indicate that it has done so by
+ returning an End Transaction Response with a resultCode of success
+ (0).
+
+ Upon receipt of a request to commit the transaction, the server
+ processes all update operations of the transaction as one atomic,
+ durable, isolated, and consistent action with each requested update
+ being processed in turn. Either all of the requested updates are to
+ be successfully applied or none of the requested are to be applied.
+ The server returns an End Transaction Response with a resultCode of
+ success (0) and no responseValue to indicate all the requested
+ updates were applied. Otherwise, the server returns an End
+ Transaction Response with a non-success resultCode indicating the
+ nature of the failure. If the failure is associated with a
+
+
+
+
+
+Zeilenga Experimental [Page 5]
+
+RFC 5805 LDAP Transactions March 2010
+
+
+ particular update request, the txnEndRes.messageID in the
+ responseValue is the message id of this update request. If the
+ failure was not associated with any particular update request, no
+ txnEnd.messageID is provided.
+
+ There is no requirement that a server serialize transactions or
+ updates requested outside of a transaction. That is, a server MAY
+ process multiple commit requests (from one or more clients) acting
+ upon different sets of entries concurrently. A server MUST avoid
+ deadlock.
+
+3.5. Miscellaneous Issues
+
+ Transactions cannot be nested.
+
+ Each LDAP transaction should be initiated, specified, and settled
+ within a stable security context. Between the Start Request and the
+ End Response, the peers SHOULD avoid negotiating new security
+ associations and/or layers.
+
+ Upon receipt of a Bind or Unbind request, the server SHALL abort any
+ and all outstanding transactions without notice and nullify their
+ identifiers.
+
+4. Interaction with Other Extensions
+
+ The LDAP Transaction extension may be used with many but not all LDAP
+ control extensions designed to extend update (and possibly other)
+ operations. The subsections that follow discuss interaction with a
+ number of control extensions. Interaction with other control
+ extensions may be discussed in other documents, in particular in
+ control extension specifications.
+
+4.1. Assertion Control
+
+ The Assertion [RFC4528] control is appropriate for use with update
+ requests specified as part of a transaction. The evaluation of the
+ assertion is performed as part of the transaction.
+
+ The Assertion control is inappropriate for use with either the Start
+ or End Transaction Extended operations.
+
+4.2. ManageDsaIT Control
+
+ The ManageDsaIT [RFC3296] control is appropriate for use with update
+ requests specified as part of a transaction.
+
+
+
+
+
+Zeilenga Experimental [Page 6]
+
+RFC 5805 LDAP Transactions March 2010
+
+
+ The ManageDsaIT control is inappropriate for use with either the
+ Start or End Transaction Extended operations.
+
+4.4. Proxied Authorization Control
+
+ The Proxied Authorization [RFC4370] control is appropriate for use
+ with the Start Transaction Extended operation, but not the End
+ Transaction Extended operation or any update request specified as
+ part of a transaction.
+
+ To request that a transaction be performed under a different
+ authorization, the client provides a Proxied Authorization control
+ with the Transaction Start Request. If the client is not authorized
+ to assume the requested authorization identity, the server is to
+ return the authorizationDenied (123) resultCode in its response.
+ Otherwise, further processing of the request and transaction is
+ performed under the requested authorization identity.
+
+ Any proxied authorization request attached to an update request
+ specified as part of a transaction, or attached to a Transaction End
+ Request, is to be regarded as a protocol error.
+
+4.5. Read Entry Controls
+
+ The Pre- and Post-Read Entry [RFC4527] request control are
+ appropriate for use with update requests specified as part of a
+ transaction.
+
+ The response control produced in response to a Pre- or Post-Read
+ Entry request control is returned in the txnEndRes.updatesControls
+ field of responseValue of the End Transaction Response.
+
+ The Pre- and Post-Read Entry controls are inappropriate for use in
+ the LDAPMessage.controls field of the Transaction Start and End
+ Request and Response messages.
+
+5. Distributed Directory Considerations
+
+ The LDAP/X.500 models provide for distributed directory operations,
+ including server-side chaining and client-side chasing of referrals.
+
+ This document does not preclude servers from chaining operations that
+ are part of a transaction. However, if a server does attempt such
+ chaining, it MUST ensure that transaction semantics are provided.
+
+ The mechanism defined by this document does not support client-side
+ chasing. Transaction identifiers are specific to a particular LDAP
+ association (as established via the LDAP Bind operation).
+
+
+
+Zeilenga Experimental [Page 7]
+
+RFC 5805 LDAP Transactions March 2010
+
+
+ The LDAP/X.500 models provide for a single-master/multiple-shadow
+ replication architecture. There is no requirement that changes made
+ to the directory based upon processing a transaction be replicated as
+ one atomic action. Hence, clients SHOULD NOT assume tight data
+ consistency nor fast data convergence of shadow copies unless they
+ have prior knowledge that these properties are provided. Note that
+ DontUseCopy control [DONTUSECOPY] may be used in conjunction with the
+ LDAP search request to ask for the return of the authoritative copy
+ of the entry.
+
+6. Security Considerations
+
+ Transaction mechanisms may be the target of denial-of-service
+ attacks, especially where implementations lock shared resources for
+ the duration of a transaction.
+
+ General security considerations [RFC4510], especially those
+ associated with update operations [RFC4511], apply to this extension.
+
+7. IANA Considerations
+
+ The Internet Assigned Numbers Authority (IANA) has made the following
+ assignments.
+
+7.1. Object Identifier
+
+ IANA has assigned an LDAP Object Identifier (21) [RFC4520] to
+ identify the protocol elements specified in this document.
+
+ Subject: Request for LDAP Object Identifier Registration
+ Person & email address to contact for further information:
+ Kurt Zeilenga
+ Specification: RFC 5805
+ Author/Change Controller: Kurt Zeilenga
+ Comments: Identifies protocol elements for LDAP Transactions
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Zeilenga Experimental [Page 8]
+
+RFC 5805 LDAP Transactions March 2010
+
+
+7.2. LDAP Protocol Mechanism
+
+ IANA has registered the protocol mechanisms [RFC4520] specified in
+ this document.
+
+ Subject: Request for LDAP Protocol Mechanism Registration
+ Object Identifier: see table
+ Description: see table
+ Person & email address to contact for further information:
+ Kurt Zeilenga
+ Specification: RFC 5805
+ Author/Change Controller: Kurt Zeilenga
+ Comments:
+
+ Object Identifier Type Description
+ ------------------- ---- ----------------------------------
+ 1.3.6.1.1.21.1 E Start Transaction Extended Request
+ 1.3.6.1.1.21.2 C Transaction Specification Control
+ 1.3.6.1.1.21.3 E End Transaction Extended Request
+ 1.3.6.1.1.21.4 N Aborted Transaction Notice
+
+ Legend
+ ------------------------
+ C => supportedControl
+ E => supportedExtension
+ N => Unsolicited Notice
+
+8. Acknowledgments
+
+ The author gratefully acknowledges the contributions made by Internet
+ Engineering Task Force participants.
+
+9. References
+
+9.1. Normative References
+
+ [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
+ Requirement Levels", BCP 14, RFC 2119, March 1997.
+
+ [RFC3062] Zeilenga, K., "LDAP Password Modify Extended
+ Operation", RFC 3062, February 2001.
+
+ [RFC3296] Zeilenga, K., "Named Subordinate References in
+ Lightweight Directory Access Protocol (LDAP)
+ Directories", RFC 3296, July 2002.
+
+
+
+
+
+
+Zeilenga Experimental [Page 9]
+
+RFC 5805 LDAP Transactions March 2010
+
+
+ [RFC4370] Weltman, R., "Lightweight Directory Access Protocol
+ (LDAP) Proxied Authorization Control", RFC 4370,
+ February 2006.
+
+ [RFC4510] Zeilenga, K., Ed., "Lightweight Directory Access
+ Protocol (LDAP): Technical Specification Road Map", RFC
+ 4510, June 2006.
+
+ [RFC4511] Sermersheim, J., Ed., "Lightweight Directory Access
+ Protocol (LDAP): The Protocol", RFC 4511, June 2006.
+
+ [RFC4512] Zeilenga, K., Ed., "Lightweight Directory Access
+ Protocol (LDAP): Directory Information Models", RFC
+ 4512, June 2006.
+
+ [RFC4527] Zeilenga, K., "Lightweight Directory Access Protocol
+ (LDAP) Read Entry Controls", RFC 4527, June 2006.
+
+ [RFC4528] Zeilenga, K., "Lightweight Directory Access Protocol
+ (LDAP) Assertion Control", RFC 4528, June 2006.
+
+ [X.680] International Telecommunication Union -
+ Telecommunication Standardization Sector, "Abstract
+ Syntax Notation One (ASN.1) - Specification of Basic
+ Notation", X.680(2002) (also ISO/IEC 8824-1:2002).
+
+ [X.690] International Telecommunication Union -
+ Telecommunication Standardization Sector,
+ "Specification of ASN.1 encoding rules: Basic Encoding
+ Rules (BER), Canonical Encoding Rules (CER), and
+ Distinguished Encoding Rules (DER)", X.690(2002) (also
+ ISO/IEC 8825-1:2002).
+
+9.2. Informative References
+
+ [RFC4520] Zeilenga, K., "Internet Assigned Numbers Authority
+ (IANA) Considerations for the Lightweight Directory
+ Access Protocol (LDAP)", BCP 64, RFC 4520, June 2006.
+
+ [ACID] "Information technology -- Open Systems Interconnection
+ -- Distributed Transaction Processing -- Part 1: OSI TP
+ Model", Section 4, ISO/IEC 10026-1:1992.
+
+ [DONTUSECOPY] Zeilenga, K., "The LDAP Don't Use Copy Control", Work
+ in Progress, December 2009.
+
+
+
+
+
+
+Zeilenga Experimental [Page 10]
+
+RFC 5805 LDAP Transactions March 2010
+
+
+Author's Address
+
+ Kurt D. Zeilenga
+ Isode Limited
+
+ EMail: Kurt.Zeilenga@Isode.COM
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Zeilenga Experimental [Page 11]
+
diff --git a/external/bsd/openldap/dist/include/ac/alloca.h b/external/bsd/openldap/dist/include/ac/alloca.h
index a4ec28547066..c5ee2d4cdf4c 100644
--- a/external/bsd/openldap/dist/include/ac/alloca.h
+++ b/external/bsd/openldap/dist/include/ac/alloca.h
@@ -1,10 +1,10 @@
-/* $NetBSD: alloca.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: alloca.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */
/* Generic alloca.h */
-/* OpenLDAP: pkg/ldap/include/ac/alloca.h,v 1.18.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/alloca.h,v 1.18.2.5 2010/04/13 20:22:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/assert.h b/external/bsd/openldap/dist/include/ac/assert.h
index 00f3442522f6..5b4fa7f5e3d6 100644
--- a/external/bsd/openldap/dist/include/ac/assert.h
+++ b/external/bsd/openldap/dist/include/ac/assert.h
@@ -1,10 +1,10 @@
-/* $NetBSD: assert.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: assert.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */
/* Generic assert.h */
-/* OpenLDAP: pkg/ldap/include/ac/assert.h,v 1.21.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/assert.h,v 1.21.2.5 2010/04/13 20:22:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/bytes.h b/external/bsd/openldap/dist/include/ac/bytes.h
index 1ad700fbbdec..f52ef678f878 100644
--- a/external/bsd/openldap/dist/include/ac/bytes.h
+++ b/external/bsd/openldap/dist/include/ac/bytes.h
@@ -1,10 +1,10 @@
-/* $NetBSD: bytes.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: bytes.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */
/* Generic bytes.h */
-/* OpenLDAP: pkg/ldap/include/ac/bytes.h,v 1.20.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/bytes.h,v 1.20.2.5 2010/04/13 20:22:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/crypt.h b/external/bsd/openldap/dist/include/ac/crypt.h
index 07468a03f2c9..b734b7d22939 100644
--- a/external/bsd/openldap/dist/include/ac/crypt.h
+++ b/external/bsd/openldap/dist/include/ac/crypt.h
@@ -1,10 +1,10 @@
-/* $NetBSD: crypt.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: crypt.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */
/* Generic crypt.h */
-/* OpenLDAP: pkg/ldap/include/ac/crypt.h,v 1.10.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/crypt.h,v 1.10.2.5 2010/04/13 20:22:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/ctype.h b/external/bsd/openldap/dist/include/ac/ctype.h
index eeb19b6138b2..e2a87333110c 100644
--- a/external/bsd/openldap/dist/include/ac/ctype.h
+++ b/external/bsd/openldap/dist/include/ac/ctype.h
@@ -1,10 +1,10 @@
-/* $NetBSD: ctype.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ctype.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */
/* Generic ctype.h */
-/* OpenLDAP: pkg/ldap/include/ac/ctype.h,v 1.16.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/ctype.h,v 1.16.2.5 2010/04/13 20:22:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/dirent.h b/external/bsd/openldap/dist/include/ac/dirent.h
index b373d3c8660f..9c0ad87e8e6a 100644
--- a/external/bsd/openldap/dist/include/ac/dirent.h
+++ b/external/bsd/openldap/dist/include/ac/dirent.h
@@ -1,10 +1,10 @@
-/* $NetBSD: dirent.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: dirent.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */
/* Generic dirent.h */
-/* OpenLDAP: pkg/ldap/include/ac/dirent.h,v 1.14.2.6 2009/04/29 01:48:30 quanah Exp */
+/* OpenLDAP: pkg/ldap/include/ac/dirent.h,v 1.14.2.7 2010/04/13 20:22:51 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/errno.h b/external/bsd/openldap/dist/include/ac/errno.h
index eab5188de368..1d5be80c1806 100644
--- a/external/bsd/openldap/dist/include/ac/errno.h
+++ b/external/bsd/openldap/dist/include/ac/errno.h
@@ -1,10 +1,10 @@
-/* $NetBSD: errno.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: errno.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */
/* Generic errno.h */
-/* OpenLDAP: pkg/ldap/include/ac/errno.h,v 1.30.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/errno.h,v 1.30.2.5 2010/04/13 20:22:51 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/fdset.h b/external/bsd/openldap/dist/include/ac/fdset.h
index 039f2f001611..77464db4b0f0 100644
--- a/external/bsd/openldap/dist/include/ac/fdset.h
+++ b/external/bsd/openldap/dist/include/ac/fdset.h
@@ -1,10 +1,10 @@
-/* $NetBSD: fdset.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: fdset.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */
/* redefine FD_SET */
-/* OpenLDAP: pkg/ldap/include/ac/fdset.h,v 1.5.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/fdset.h,v 1.5.2.5 2010/04/13 20:22:51 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/localize.h b/external/bsd/openldap/dist/include/ac/localize.h
index f93b98b0fa30..951832dfcb4b 100644
--- a/external/bsd/openldap/dist/include/ac/localize.h
+++ b/external/bsd/openldap/dist/include/ac/localize.h
@@ -1,10 +1,10 @@
-/* $NetBSD: localize.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: localize.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */
/* localize.h (i18n/l10n) */
-/* OpenLDAP: pkg/ldap/include/ac/localize.h,v 1.7.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/localize.h,v 1.7.2.5 2010/04/13 20:22:51 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/param.h b/external/bsd/openldap/dist/include/ac/param.h
index ce0ac38032e8..2ec6405105b5 100644
--- a/external/bsd/openldap/dist/include/ac/param.h
+++ b/external/bsd/openldap/dist/include/ac/param.h
@@ -1,10 +1,10 @@
-/* $NetBSD: param.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: param.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */
/* Generic param.h */
-/* OpenLDAP: pkg/ldap/include/ac/param.h,v 1.13.2.5 2009/10/30 18:38:01 quanah Exp */
+/* OpenLDAP: pkg/ldap/include/ac/param.h,v 1.13.2.6 2010/04/13 20:22:51 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/regex.h b/external/bsd/openldap/dist/include/ac/regex.h
index 1ba5bd6cabbe..b24fb4f3d4c6 100644
--- a/external/bsd/openldap/dist/include/ac/regex.h
+++ b/external/bsd/openldap/dist/include/ac/regex.h
@@ -1,10 +1,10 @@
-/* $NetBSD: regex.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: regex.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */
/* Generic Regex */
-/* OpenLDAP: pkg/ldap/include/ac/regex.h,v 1.17.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/regex.h,v 1.17.2.5 2010/04/13 20:22:51 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/setproctitle.h b/external/bsd/openldap/dist/include/ac/setproctitle.h
index bf203a56ae28..bcf0d3237598 100644
--- a/external/bsd/openldap/dist/include/ac/setproctitle.h
+++ b/external/bsd/openldap/dist/include/ac/setproctitle.h
@@ -1,10 +1,10 @@
-/* $NetBSD: setproctitle.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: setproctitle.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */
/* Generic setproctitle.h */
-/* OpenLDAP: pkg/ldap/include/ac/setproctitle.h,v 1.21.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/setproctitle.h,v 1.21.2.5 2010/04/13 20:22:51 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/signal.h b/external/bsd/openldap/dist/include/ac/signal.h
index 8b3c829132c3..526e39a771bc 100644
--- a/external/bsd/openldap/dist/include/ac/signal.h
+++ b/external/bsd/openldap/dist/include/ac/signal.h
@@ -1,10 +1,10 @@
-/* $NetBSD: signal.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: signal.h,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
/* Generic signal.h */
-/* OpenLDAP: pkg/ldap/include/ac/signal.h,v 1.25.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/signal.h,v 1.25.2.5 2010/04/13 20:22:51 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/socket.h b/external/bsd/openldap/dist/include/ac/socket.h
index 4514abd0f610..7972252e2692 100644
--- a/external/bsd/openldap/dist/include/ac/socket.h
+++ b/external/bsd/openldap/dist/include/ac/socket.h
@@ -1,10 +1,10 @@
-/* $NetBSD: socket.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: socket.h,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
/* Generic socket.h */
-/* OpenLDAP: pkg/ldap/include/ac/socket.h,v 1.67.2.6 2009/10/31 00:00:31 quanah Exp */
+/* OpenLDAP: pkg/ldap/include/ac/socket.h,v 1.67.2.7 2010/04/13 20:22:51 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/stdarg.h b/external/bsd/openldap/dist/include/ac/stdarg.h
index 346814063334..727a430d7453 100644
--- a/external/bsd/openldap/dist/include/ac/stdarg.h
+++ b/external/bsd/openldap/dist/include/ac/stdarg.h
@@ -1,10 +1,10 @@
-/* $NetBSD: stdarg.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: stdarg.h,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
/* Generic stdarg.h */
-/* OpenLDAP: pkg/ldap/include/ac/stdarg.h,v 1.19.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/stdarg.h,v 1.19.2.5 2010/04/13 20:22:52 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/stdlib.h b/external/bsd/openldap/dist/include/ac/stdlib.h
index 9d57714030b0..f5a1c36938db 100644
--- a/external/bsd/openldap/dist/include/ac/stdlib.h
+++ b/external/bsd/openldap/dist/include/ac/stdlib.h
@@ -1,10 +1,10 @@
-/* $NetBSD: stdlib.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: stdlib.h,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
/* Generic stdlib.h */
-/* OpenLDAP: pkg/ldap/include/ac/stdlib.h,v 1.19.2.5 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/stdlib.h,v 1.19.2.6 2010/04/13 20:22:52 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/string.h b/external/bsd/openldap/dist/include/ac/string.h
index f5ebc54c068c..382262923294 100644
--- a/external/bsd/openldap/dist/include/ac/string.h
+++ b/external/bsd/openldap/dist/include/ac/string.h
@@ -1,10 +1,10 @@
-/* $NetBSD: string.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: string.h,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
/* Generic string.h */
-/* OpenLDAP: pkg/ldap/include/ac/string.h,v 1.51.2.6 2009/11/20 22:13:43 quanah Exp */
+/* OpenLDAP: pkg/ldap/include/ac/string.h,v 1.51.2.7 2010/04/13 20:22:52 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/sysexits.h b/external/bsd/openldap/dist/include/ac/sysexits.h
index a98cf59da48b..637d7f0ea5cb 100644
--- a/external/bsd/openldap/dist/include/ac/sysexits.h
+++ b/external/bsd/openldap/dist/include/ac/sysexits.h
@@ -1,10 +1,10 @@
-/* $NetBSD: sysexits.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sysexits.h,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
/* Generic sysexits */
-/* OpenLDAP: pkg/ldap/include/ac/sysexits.h,v 1.12.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/sysexits.h,v 1.12.2.5 2010/04/13 20:22:52 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/syslog.h b/external/bsd/openldap/dist/include/ac/syslog.h
index b3fb43d52de2..69bfa9317d5f 100644
--- a/external/bsd/openldap/dist/include/ac/syslog.h
+++ b/external/bsd/openldap/dist/include/ac/syslog.h
@@ -1,10 +1,10 @@
-/* $NetBSD: syslog.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: syslog.h,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
/* Generic syslog.h */
-/* OpenLDAP: pkg/ldap/include/ac/syslog.h,v 1.17.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/syslog.h,v 1.17.2.5 2010/04/13 20:22:52 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/termios.h b/external/bsd/openldap/dist/include/ac/termios.h
index 46032ebfe698..6b494e01af44 100644
--- a/external/bsd/openldap/dist/include/ac/termios.h
+++ b/external/bsd/openldap/dist/include/ac/termios.h
@@ -1,10 +1,10 @@
-/* $NetBSD: termios.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: termios.h,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
/* Generic termios.h */
-/* OpenLDAP: pkg/ldap/include/ac/termios.h,v 1.18.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/termios.h,v 1.18.2.5 2010/04/13 20:22:52 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/time.h b/external/bsd/openldap/dist/include/ac/time.h
index ca13a2666bd4..4422987c372f 100644
--- a/external/bsd/openldap/dist/include/ac/time.h
+++ b/external/bsd/openldap/dist/include/ac/time.h
@@ -1,10 +1,10 @@
-/* $NetBSD: time.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: time.h,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
/* Generic time.h */
-/* OpenLDAP: pkg/ldap/include/ac/time.h,v 1.18.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/time.h,v 1.18.2.5 2010/04/13 20:22:52 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/unistd.h b/external/bsd/openldap/dist/include/ac/unistd.h
index d3d0e780974e..8fde69eb55ca 100644
--- a/external/bsd/openldap/dist/include/ac/unistd.h
+++ b/external/bsd/openldap/dist/include/ac/unistd.h
@@ -1,10 +1,10 @@
-/* $NetBSD: unistd.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: unistd.h,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
/* Generic unistd.h */
-/* OpenLDAP: pkg/ldap/include/ac/unistd.h,v 1.37.2.5 2009/08/13 00:11:17 quanah Exp */
+/* OpenLDAP: pkg/ldap/include/ac/unistd.h,v 1.37.2.6 2010/04/13 20:22:52 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ac/wait.h b/external/bsd/openldap/dist/include/ac/wait.h
index fd240d1d4d75..93f03db6cb48 100644
--- a/external/bsd/openldap/dist/include/ac/wait.h
+++ b/external/bsd/openldap/dist/include/ac/wait.h
@@ -1,10 +1,10 @@
-/* $NetBSD: wait.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: wait.h,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
/* Generic wait.h */
-/* OpenLDAP: pkg/ldap/include/ac/wait.h,v 1.16.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ac/wait.h,v 1.16.2.5 2010/04/13 20:22:52 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/avl.h b/external/bsd/openldap/dist/include/avl.h
index 901144b3f6c6..b84c669cceb4 100644
--- a/external/bsd/openldap/dist/include/avl.h
+++ b/external/bsd/openldap/dist/include/avl.h
@@ -1,10 +1,10 @@
-/* $NetBSD: avl.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: avl.h,v 1.1.1.3 2010/12/12 15:21:22 adam Exp $ */
/* avl.h - avl tree definitions */
-/* OpenLDAP: pkg/ldap/include/avl.h,v 1.29.2.5 2009/01/22 00:00:51 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/avl.h,v 1.29.2.6 2010/04/13 20:22:47 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/getopt-compat.h b/external/bsd/openldap/dist/include/getopt-compat.h
index 0fa9081323e8..70ce9d8164ae 100644
--- a/external/bsd/openldap/dist/include/getopt-compat.h
+++ b/external/bsd/openldap/dist/include/getopt-compat.h
@@ -1,10 +1,10 @@
-/* $NetBSD: getopt-compat.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: getopt-compat.h,v 1.1.1.3 2010/12/12 15:21:22 adam Exp $ */
/* getopt-compat.h -- getopt(3) compatibility header */
-/* OpenLDAP: pkg/ldap/include/getopt-compat.h,v 1.19.2.4 2009/01/22 00:00:51 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/getopt-compat.h,v 1.19.2.5 2010/04/13 20:22:47 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/lber.h b/external/bsd/openldap/dist/include/lber.h
index 31bc648cc472..eac8e8cb5a61 100644
--- a/external/bsd/openldap/dist/include/lber.h
+++ b/external/bsd/openldap/dist/include/lber.h
@@ -1,9 +1,9 @@
-/* $NetBSD: lber.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: lber.h,v 1.1.1.3 2010/12/12 15:21:22 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/lber.h,v 1.99.2.11 2009/12/02 16:54:36 quanah Exp */
+/* OpenLDAP: pkg/ldap/include/lber.h,v 1.99.2.12 2010/04/13 20:22:47 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/lber_pvt.h b/external/bsd/openldap/dist/include/lber_pvt.h
index b6cb3bac7afa..e0174054dc20 100644
--- a/external/bsd/openldap/dist/include/lber_pvt.h
+++ b/external/bsd/openldap/dist/include/lber_pvt.h
@@ -1,9 +1,9 @@
-/* $NetBSD: lber_pvt.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: lber_pvt.h,v 1.1.1.3 2010/12/12 15:21:22 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/lber_pvt.h,v 1.35.2.7 2009/11/20 22:13:43 quanah Exp */
+/* OpenLDAP: pkg/ldap/include/lber_pvt.h,v 1.35.2.8 2010/04/13 20:22:47 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/lber_types.hin b/external/bsd/openldap/dist/include/lber_types.hin
index 083db1035c0d..f36303ceac79 100644
--- a/external/bsd/openldap/dist/include/lber_types.hin
+++ b/external/bsd/openldap/dist/include/lber_types.hin
@@ -1,7 +1,7 @@
-/* OpenLDAP: pkg/ldap/include/lber_types.hin,v 1.3.2.4 2009/01/22 00:00:51 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/lber_types.hin,v 1.3.2.5 2010/04/13 20:22:47 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ldap.h b/external/bsd/openldap/dist/include/ldap.h
index 72ab81bed685..0b7666324618 100644
--- a/external/bsd/openldap/dist/include/ldap.h
+++ b/external/bsd/openldap/dist/include/ldap.h
@@ -1,9 +1,9 @@
-/* $NetBSD: ldap.h,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap.h,v 1.1.1.4 2010/12/12 15:21:23 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/ldap.h,v 1.312.2.23 2009/08/25 22:52:17 quanah Exp */
+/* OpenLDAP: pkg/ldap/include/ldap.h,v 1.312.2.25 2010/06/10 18:48:36 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -189,6 +189,7 @@ LDAP_BEGIN_DECL
#define LDAP_OPT_X_SASL_MECHLIST 0x610a /* read-only */
#define LDAP_OPT_X_SASL_NOCANON 0x610b
#define LDAP_OPT_X_SASL_USERNAME 0x610c /* read-only */
+#define LDAP_OPT_X_SASL_GSS_CREDS 0x610d
/* OpenLDAP GSSAPI options */
#define LDAP_OPT_X_GSSAPI_DO_NOT_FREE_CONTEXT 0x6200
diff --git a/external/bsd/openldap/dist/include/ldap_cdefs.h b/external/bsd/openldap/dist/include/ldap_cdefs.h
index b23755d88e87..63ff78ece9a9 100644
--- a/external/bsd/openldap/dist/include/ldap_cdefs.h
+++ b/external/bsd/openldap/dist/include/ldap_cdefs.h
@@ -1,9 +1,9 @@
-/* $NetBSD: ldap_cdefs.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap_cdefs.h,v 1.1.1.3 2010/12/12 15:21:23 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/ldap_cdefs.h,v 1.29.2.5 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ldap_cdefs.h,v 1.29.2.6 2010/04/13 20:22:48 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ldap_config.hin b/external/bsd/openldap/dist/include/ldap_config.hin
index 545dd232f9c2..6a9eb1252c9d 100644
--- a/external/bsd/openldap/dist/include/ldap_config.hin
+++ b/external/bsd/openldap/dist/include/ldap_config.hin
@@ -1,7 +1,7 @@
-/* OpenLDAP: pkg/ldap/include/ldap_config.hin,v 1.3.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ldap_config.hin,v 1.3.2.5 2010/04/13 20:22:48 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ldap_defaults.h b/external/bsd/openldap/dist/include/ldap_defaults.h
index 82ff1bb6681e..09d365f46b41 100644
--- a/external/bsd/openldap/dist/include/ldap_defaults.h
+++ b/external/bsd/openldap/dist/include/ldap_defaults.h
@@ -1,9 +1,9 @@
-/* $NetBSD: ldap_defaults.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap_defaults.h,v 1.1.1.3 2010/12/12 15:21:23 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/ldap_defaults.h,v 1.33.2.5 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ldap_defaults.h,v 1.33.2.6 2010/04/13 20:22:48 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ldap_features.hin b/external/bsd/openldap/dist/include/ldap_features.hin
index 5b2f63d75e5d..dfb99777f3bc 100644
--- a/external/bsd/openldap/dist/include/ldap_features.hin
+++ b/external/bsd/openldap/dist/include/ldap_features.hin
@@ -1,7 +1,7 @@
-/* OpenLDAP: pkg/ldap/include/ldap_features.hin,v 1.3.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ldap_features.hin,v 1.3.2.5 2010/04/13 20:22:48 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ldap_int_thread.h b/external/bsd/openldap/dist/include/ldap_int_thread.h
index 9e6ab776b031..17cfb8cd9e02 100644
--- a/external/bsd/openldap/dist/include/ldap_int_thread.h
+++ b/external/bsd/openldap/dist/include/ldap_int_thread.h
@@ -1,10 +1,10 @@
-/* $NetBSD: ldap_int_thread.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap_int_thread.h,v 1.1.1.3 2010/12/12 15:21:23 adam Exp $ */
/* ldap_int_thread.h - ldap internal thread wrappers header file */
-/* OpenLDAP: pkg/ldap/include/ldap_int_thread.h,v 1.20.2.7 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ldap_int_thread.h,v 1.20.2.8 2010/04/13 20:22:48 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ldap_log.h b/external/bsd/openldap/dist/include/ldap_log.h
index 72f0f2c4e0e8..a583fc3a0a09 100644
--- a/external/bsd/openldap/dist/include/ldap_log.h
+++ b/external/bsd/openldap/dist/include/ldap_log.h
@@ -1,9 +1,9 @@
-/* $NetBSD: ldap_log.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap_log.h,v 1.1.1.3 2010/12/12 15:21:23 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/ldap_log.h,v 1.40.2.7 2009/10/30 17:52:53 quanah Exp */
+/* OpenLDAP: pkg/ldap/include/ldap_log.h,v 1.40.2.8 2010/04/13 20:22:48 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ldap_pvt.h b/external/bsd/openldap/dist/include/ldap_pvt.h
index 49c2d8553d0b..04b6550cc73d 100644
--- a/external/bsd/openldap/dist/include/ldap_pvt.h
+++ b/external/bsd/openldap/dist/include/ldap_pvt.h
@@ -1,9 +1,9 @@
-/* $NetBSD: ldap_pvt.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap_pvt.h,v 1.1.1.3 2010/12/12 15:21:23 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/ldap_pvt.h,v 1.91.2.11 2009/10/31 00:11:22 quanah Exp */
+/* OpenLDAP: pkg/ldap/include/ldap_pvt.h,v 1.91.2.13 2010/04/19 16:53:01 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -93,6 +93,47 @@ ldap_pvt_ctime LDAP_P((
const time_t *tp,
char *buf ));
+# if defined( HAVE_GMTIME_R )
+# define USE_GMTIME_R
+# define ldap_pvt_gmtime(timep, result) gmtime_r((timep), (result))
+# else
+LDAP_F( struct tm * )
+ldap_pvt_gmtime LDAP_P((
+ LDAP_CONST time_t *timep,
+ struct tm *result ));
+#endif
+
+# if defined( HAVE_LOCALTIME_R )
+# define USE_LOCALTIME_R
+# define ldap_pvt_localtime(timep, result) localtime_r((timep), (result))
+# else
+LDAP_F( struct tm * )
+ldap_pvt_localtime LDAP_P((
+ LDAP_CONST time_t *timep,
+ struct tm *result ));
+# endif
+
+#if defined( USE_GMTIME_R ) && defined( USE_LOCALTIME_R )
+# define ldap_pvt_gmtime_lock() (0)
+# define ldap_pvt_gmtime_unlock() (0)
+#else
+LDAP_F( int )
+ldap_pvt_gmtime_lock LDAP_P(( void ));
+
+LDAP_F( int )
+ldap_pvt_gmtime_unlock LDAP_P(( void ));
+#endif /* USE_GMTIME_R && USE_LOCALTIME_R */
+
+/* Get current time as a structured time */
+struct lutil_tm;
+LDAP_F( void )
+ldap_pvt_gettime LDAP_P(( struct lutil_tm * ));
+
+/* use this macro to allocate buffer for ldap_pvt_csnstr */
+#define LDAP_PVT_CSNSTR_BUFSIZE 64
+LDAP_F( size_t )
+ldap_pvt_csnstr( char *buf, size_t len, unsigned int replica, unsigned int mod );
+
LDAP_F( char *) ldap_pvt_get_fqdn LDAP_P(( char * ));
struct hostent; /* avoid pulling in */
diff --git a/external/bsd/openldap/dist/include/ldap_pvt_thread.h b/external/bsd/openldap/dist/include/ldap_pvt_thread.h
index c9ef54151bfa..74d9f9d9fb13 100644
--- a/external/bsd/openldap/dist/include/ldap_pvt_thread.h
+++ b/external/bsd/openldap/dist/include/ldap_pvt_thread.h
@@ -1,10 +1,10 @@
-/* $NetBSD: ldap_pvt_thread.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap_pvt_thread.h,v 1.1.1.3 2010/12/12 15:21:23 adam Exp $ */
/* ldap_pvt_thread.h - ldap threads header file */
-/* OpenLDAP: pkg/ldap/include/ldap_pvt_thread.h,v 1.51.2.13 2009/06/11 21:53:23 quanah Exp */
+/* OpenLDAP: pkg/ldap/include/ldap_pvt_thread.h,v 1.51.2.14 2010/04/13 20:22:48 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ldap_pvt_uc.h b/external/bsd/openldap/dist/include/ldap_pvt_uc.h
index 5d4ba448c58c..cee661c3e108 100644
--- a/external/bsd/openldap/dist/include/ldap_pvt_uc.h
+++ b/external/bsd/openldap/dist/include/ldap_pvt_uc.h
@@ -1,9 +1,9 @@
-/* $NetBSD: ldap_pvt_uc.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap_pvt_uc.h,v 1.1.1.3 2010/12/12 15:21:24 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/ldap_pvt_uc.h,v 1.31.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ldap_pvt_uc.h,v 1.31.2.5 2010/04/13 20:22:48 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ldap_queue.h b/external/bsd/openldap/dist/include/ldap_queue.h
index 9424c53626ef..bcd48a12d3f7 100644
--- a/external/bsd/openldap/dist/include/ldap_queue.h
+++ b/external/bsd/openldap/dist/include/ldap_queue.h
@@ -1,10 +1,10 @@
-/* $NetBSD: ldap_queue.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap_queue.h,v 1.1.1.3 2010/12/12 15:21:24 adam Exp $ */
/* ldap_queue.h -- queue macros */
-/* OpenLDAP: pkg/ldap/include/ldap_queue.h,v 1.13.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ldap_queue.h,v 1.13.2.5 2010/04/13 20:22:48 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ldap_rq.h b/external/bsd/openldap/dist/include/ldap_rq.h
index 923c224013db..98d03204dd97 100644
--- a/external/bsd/openldap/dist/include/ldap_rq.h
+++ b/external/bsd/openldap/dist/include/ldap_rq.h
@@ -1,9 +1,9 @@
-/* $NetBSD: ldap_rq.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap_rq.h,v 1.1.1.3 2010/12/12 15:21:24 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/ldap_rq.h,v 1.14.2.5 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ldap_rq.h,v 1.14.2.6 2010/04/13 20:22:49 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ldap_schema.h b/external/bsd/openldap/dist/include/ldap_schema.h
index cae9d3b3861b..df3f2d556dd2 100644
--- a/external/bsd/openldap/dist/include/ldap_schema.h
+++ b/external/bsd/openldap/dist/include/ldap_schema.h
@@ -1,9 +1,9 @@
-/* $NetBSD: ldap_schema.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap_schema.h,v 1.1.1.3 2010/12/12 15:21:24 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/ldap_schema.h,v 1.36.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ldap_schema.h,v 1.36.2.5 2010/04/13 20:22:49 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ldap_utf8.h b/external/bsd/openldap/dist/include/ldap_utf8.h
index f1550203c05a..5b868dd2ee42 100644
--- a/external/bsd/openldap/dist/include/ldap_utf8.h
+++ b/external/bsd/openldap/dist/include/ldap_utf8.h
@@ -1,9 +1,9 @@
-/* $NetBSD: ldap_utf8.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap_utf8.h,v 1.1.1.3 2010/12/12 15:21:24 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/ldap_utf8.h,v 1.13.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ldap_utf8.h,v 1.13.2.5 2010/04/13 20:22:49 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/ldif.h b/external/bsd/openldap/dist/include/ldif.h
index fa4d20a16601..5d6991d6c644 100644
--- a/external/bsd/openldap/dist/include/ldif.h
+++ b/external/bsd/openldap/dist/include/ldif.h
@@ -1,9 +1,9 @@
-/* $NetBSD: ldif.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldif.h,v 1.1.1.3 2010/12/12 15:21:24 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/ldif.h,v 1.31.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/ldif.h,v 1.31.2.5 2010/04/13 20:22:49 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/lutil.h b/external/bsd/openldap/dist/include/lutil.h
index de1df6233eb6..6757adb483b5 100644
--- a/external/bsd/openldap/dist/include/lutil.h
+++ b/external/bsd/openldap/dist/include/lutil.h
@@ -1,9 +1,9 @@
-/* $NetBSD: lutil.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: lutil.h,v 1.1.1.3 2010/12/12 15:21:24 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/lutil.h,v 1.63.2.8 2009/11/17 17:18:11 quanah Exp */
+/* OpenLDAP: pkg/ldap/include/lutil.h,v 1.63.2.10 2010/04/19 16:53:01 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -179,10 +179,6 @@ LDAP_LUTIL_F( int )
lutil_tm2time LDAP_P((
struct lutil_tm *, struct lutil_timet * ));
-/* Get current time as a structured time */
-LDAP_LUTIL_F( void )
-lutil_gettime LDAP_P(( struct lutil_tm * ));
-
#ifdef _WIN32
LDAP_LUTIL_F( void )
lutil_slashpath LDAP_P(( char* path ));
@@ -233,12 +229,6 @@ lutil_uuidstr_from_normalized(
char *buf,
size_t buflen );
-/* csn.c */
-/* use this macro to allocate buffer for lutil_csnstr */
-#define LDAP_LUTIL_CSNSTR_BUFSIZE 64
-LDAP_LUTIL_F( size_t )
-lutil_csnstr( char *buf, size_t len, unsigned int replica, unsigned int mod );
-
/*
* Sometimes not all declarations in a header file are needed.
* An indicator to this is whether or not the symbol's type has
diff --git a/external/bsd/openldap/dist/include/lutil_hash.h b/external/bsd/openldap/dist/include/lutil_hash.h
index 65953abc2af8..8184a617143c 100644
--- a/external/bsd/openldap/dist/include/lutil_hash.h
+++ b/external/bsd/openldap/dist/include/lutil_hash.h
@@ -1,9 +1,9 @@
-/* $NetBSD: lutil_hash.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: lutil_hash.h,v 1.1.1.3 2010/12/12 15:21:24 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/lutil_hash.h,v 1.8.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/lutil_hash.h,v 1.8.2.5 2010/04/13 20:22:49 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/lutil_ldap.h b/external/bsd/openldap/dist/include/lutil_ldap.h
index 98bcb4788a90..5a1a51fd1cc1 100644
--- a/external/bsd/openldap/dist/include/lutil_ldap.h
+++ b/external/bsd/openldap/dist/include/lutil_ldap.h
@@ -1,9 +1,9 @@
-/* $NetBSD: lutil_ldap.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: lutil_ldap.h,v 1.1.1.3 2010/12/12 15:21:24 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/lutil_ldap.h,v 1.11.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/lutil_ldap.h,v 1.11.2.5 2010/04/13 20:22:49 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/lutil_lockf.h b/external/bsd/openldap/dist/include/lutil_lockf.h
index b0f6a1bf52b5..a55416e0655f 100644
--- a/external/bsd/openldap/dist/include/lutil_lockf.h
+++ b/external/bsd/openldap/dist/include/lutil_lockf.h
@@ -1,9 +1,9 @@
-/* $NetBSD: lutil_lockf.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: lutil_lockf.h,v 1.1.1.3 2010/12/12 15:21:24 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/lutil_lockf.h,v 1.17.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/lutil_lockf.h,v 1.17.2.5 2010/04/13 20:22:49 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/lutil_md5.h b/external/bsd/openldap/dist/include/lutil_md5.h
index 066ae92c1f5a..3e442ccbe61d 100644
--- a/external/bsd/openldap/dist/include/lutil_md5.h
+++ b/external/bsd/openldap/dist/include/lutil_md5.h
@@ -1,9 +1,9 @@
-/* $NetBSD: lutil_md5.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: lutil_md5.h,v 1.1.1.3 2010/12/12 15:21:25 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/lutil_md5.h,v 1.24.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/lutil_md5.h,v 1.24.2.5 2010/04/13 20:22:49 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/lutil_sha1.h b/external/bsd/openldap/dist/include/lutil_sha1.h
index 03be4c8a4549..5e9d8c5ee769 100644
--- a/external/bsd/openldap/dist/include/lutil_sha1.h
+++ b/external/bsd/openldap/dist/include/lutil_sha1.h
@@ -1,9 +1,9 @@
-/* $NetBSD: lutil_sha1.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: lutil_sha1.h,v 1.1.1.3 2010/12/12 15:21:25 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/lutil_sha1.h,v 1.28.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/lutil_sha1.h,v 1.28.2.5 2010/04/13 20:22:49 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/include/rewrite.h b/external/bsd/openldap/dist/include/rewrite.h
index 043dd79dfb5d..6c679645762e 100644
--- a/external/bsd/openldap/dist/include/rewrite.h
+++ b/external/bsd/openldap/dist/include/rewrite.h
@@ -1,10 +1,10 @@
-/* $NetBSD: rewrite.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: rewrite.h,v 1.1.1.3 2010/12/12 15:21:25 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/rewrite.h,v 1.15.2.4 2009/01/22 00:00:52 kurt Exp
+/* OpenLDAP: pkg/ldap/include/rewrite.h,v 1.15.2.5 2010/04/13 20:22:50 kurt Exp
*/
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/include/slapi-plugin.h b/external/bsd/openldap/dist/include/slapi-plugin.h
index 0ec8b852f83f..e12fe518f845 100644
--- a/external/bsd/openldap/dist/include/slapi-plugin.h
+++ b/external/bsd/openldap/dist/include/slapi-plugin.h
@@ -1,9 +1,9 @@
-/* $NetBSD: slapi-plugin.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapi-plugin.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/slapi-plugin.h,v 1.52.2.6 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/slapi-plugin.h,v 1.52.2.7 2010/04/13 20:22:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 1997,2002,2003 IBM Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/include/sysexits-compat.h b/external/bsd/openldap/dist/include/sysexits-compat.h
index abd8918d5374..4474819c0840 100644
--- a/external/bsd/openldap/dist/include/sysexits-compat.h
+++ b/external/bsd/openldap/dist/include/sysexits-compat.h
@@ -1,9 +1,9 @@
-/* $NetBSD: sysexits-compat.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sysexits-compat.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */
-/* OpenLDAP: pkg/ldap/include/sysexits-compat.h,v 1.11.2.4 2009/01/22 00:00:52 kurt Exp */
+/* OpenLDAP: pkg/ldap/include/sysexits-compat.h,v 1.11.2.5 2010/04/13 20:22:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/Makefile.in b/external/bsd/openldap/dist/libraries/Makefile.in
index 54536ae8ed5f..5c08b0cfa5ba 100644
--- a/external/bsd/openldap/dist/libraries/Makefile.in
+++ b/external/bsd/openldap/dist/libraries/Makefile.in
@@ -1,8 +1,8 @@
# Libraries Makefile for OpenLDAP
-# OpenLDAP: pkg/ldap/libraries/Makefile.in,v 1.26.2.4 2009/01/22 00:00:53 kurt Exp
+# OpenLDAP: pkg/ldap/libraries/Makefile.in,v 1.26.2.5 2010/04/13 20:22:53 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/Makefile.in b/external/bsd/openldap/dist/libraries/liblber/Makefile.in
index 416a534c3c5a..afd948e0ce82 100644
--- a/external/bsd/openldap/dist/libraries/liblber/Makefile.in
+++ b/external/bsd/openldap/dist/libraries/liblber/Makefile.in
@@ -1,8 +1,8 @@
# LIBLBER
-# OpenLDAP: pkg/ldap/libraries/liblber/Makefile.in,v 1.37.2.5 2009/01/22 00:00:53 kurt Exp
+# OpenLDAP: pkg/ldap/libraries/liblber/Makefile.in,v 1.37.2.6 2010/04/13 20:22:53 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/assert.c b/external/bsd/openldap/dist/libraries/liblber/assert.c
index f5f94f2c4bfd..0298f2198be1 100644
--- a/external/bsd/openldap/dist/libraries/liblber/assert.c
+++ b/external/bsd/openldap/dist/libraries/liblber/assert.c
@@ -1,9 +1,9 @@
-/* $NetBSD: assert.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: assert.c,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblber/assert.c,v 1.13.2.4 2009/01/22 00:00:53 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/assert.c,v 1.13.2.5 2010/04/13 20:22:53 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/bprint.c b/external/bsd/openldap/dist/libraries/liblber/bprint.c
index a6d0656cb4cb..474aa910cab4 100644
--- a/external/bsd/openldap/dist/libraries/liblber/bprint.c
+++ b/external/bsd/openldap/dist/libraries/liblber/bprint.c
@@ -1,9 +1,9 @@
-/* $NetBSD: bprint.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: bprint.c,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblber/bprint.c,v 1.57.2.5 2009/08/02 21:06:33 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/bprint.c,v 1.57.2.6 2010/04/13 20:22:53 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/debug.c b/external/bsd/openldap/dist/libraries/liblber/debug.c
index d166c32d664a..aa9a75abeed2 100644
--- a/external/bsd/openldap/dist/libraries/liblber/debug.c
+++ b/external/bsd/openldap/dist/libraries/liblber/debug.c
@@ -1,9 +1,9 @@
-/* $NetBSD: debug.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: debug.c,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblber/debug.c,v 1.21.2.4 2009/01/22 00:00:53 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/debug.c,v 1.21.2.5 2010/04/13 20:22:53 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/decode.c b/external/bsd/openldap/dist/libraries/liblber/decode.c
index 2f6ca925f415..aca28b666136 100644
--- a/external/bsd/openldap/dist/libraries/liblber/decode.c
+++ b/external/bsd/openldap/dist/libraries/liblber/decode.c
@@ -1,10 +1,10 @@
-/* $NetBSD: decode.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: decode.c,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
/* decode.c - ber input decoding routines */
-/* OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.105.2.10 2009/11/04 16:08:50 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.105.2.11 2010/04/13 20:22:53 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/dtest.c b/external/bsd/openldap/dist/libraries/liblber/dtest.c
index d9134d459235..dd013b87932a 100644
--- a/external/bsd/openldap/dist/libraries/liblber/dtest.c
+++ b/external/bsd/openldap/dist/libraries/liblber/dtest.c
@@ -1,10 +1,10 @@
-/* $NetBSD: dtest.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: dtest.c,v 1.1.1.3 2010/12/12 15:21:27 adam Exp $ */
/* dtest.c - lber decoding test program */
-/* OpenLDAP: pkg/ldap/libraries/liblber/dtest.c,v 1.37.2.4 2009/01/22 00:00:53 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/dtest.c,v 1.37.2.5 2010/04/13 20:22:53 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/encode.c b/external/bsd/openldap/dist/libraries/liblber/encode.c
index 32d24e8803f0..79c50ab18d30 100644
--- a/external/bsd/openldap/dist/libraries/liblber/encode.c
+++ b/external/bsd/openldap/dist/libraries/liblber/encode.c
@@ -1,10 +1,10 @@
-/* $NetBSD: encode.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: encode.c,v 1.1.1.3 2010/12/12 15:21:28 adam Exp $ */
/* encode.c - ber output encoding routines */
-/* OpenLDAP: pkg/ldap/libraries/liblber/encode.c,v 1.64.2.8 2009/10/31 00:01:23 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/encode.c,v 1.64.2.9 2010/04/13 20:22:53 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/etest.c b/external/bsd/openldap/dist/libraries/liblber/etest.c
index 8168c1e7e79c..a5143e5d305b 100644
--- a/external/bsd/openldap/dist/libraries/liblber/etest.c
+++ b/external/bsd/openldap/dist/libraries/liblber/etest.c
@@ -1,10 +1,10 @@
-/* $NetBSD: etest.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: etest.c,v 1.1.1.3 2010/12/12 15:21:28 adam Exp $ */
/* etest.c - lber encoding test program */
-/* OpenLDAP: pkg/ldap/libraries/liblber/etest.c,v 1.35.2.5 2009/01/22 00:00:53 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/etest.c,v 1.35.2.6 2010/04/13 20:22:54 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/idtest.c b/external/bsd/openldap/dist/libraries/liblber/idtest.c
index ac35fbdd9bb7..993dc7643b94 100644
--- a/external/bsd/openldap/dist/libraries/liblber/idtest.c
+++ b/external/bsd/openldap/dist/libraries/liblber/idtest.c
@@ -1,10 +1,10 @@
-/* $NetBSD: idtest.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: idtest.c,v 1.1.1.3 2010/12/12 15:21:28 adam Exp $ */
/* idtest.c - ber decoding test program using isode libraries */
-/* OpenLDAP: pkg/ldap/libraries/liblber/idtest.c,v 1.18.2.4 2009/01/22 00:00:53 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/idtest.c,v 1.18.2.5 2010/04/13 20:22:54 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/io.c b/external/bsd/openldap/dist/libraries/liblber/io.c
index 018494c1e2bb..9b98da2a00c5 100644
--- a/external/bsd/openldap/dist/libraries/liblber/io.c
+++ b/external/bsd/openldap/dist/libraries/liblber/io.c
@@ -1,10 +1,10 @@
-/* $NetBSD: io.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: io.c,v 1.1.1.4 2010/12/12 15:21:28 adam Exp $ */
/* io.c - ber general i/o routines */
-/* OpenLDAP: pkg/ldap/libraries/liblber/io.c,v 1.111.2.11 2009/08/02 21:06:34 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/io.c,v 1.111.2.12 2010/04/13 20:22:54 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/lber-int.h b/external/bsd/openldap/dist/libraries/liblber/lber-int.h
index b93614659f99..2a7c6fe75781 100644
--- a/external/bsd/openldap/dist/libraries/liblber/lber-int.h
+++ b/external/bsd/openldap/dist/libraries/liblber/lber-int.h
@@ -1,9 +1,9 @@
-/* $NetBSD: lber-int.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: lber-int.h,v 1.1.1.3 2010/12/12 15:21:28 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblber/lber-int.h,v 1.68.2.6 2009/10/30 18:38:27 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/lber-int.h,v 1.68.2.7 2010/04/13 20:22:54 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/memory.c b/external/bsd/openldap/dist/libraries/liblber/memory.c
index 78b2734f68cc..f68900ab8aee 100644
--- a/external/bsd/openldap/dist/libraries/liblber/memory.c
+++ b/external/bsd/openldap/dist/libraries/liblber/memory.c
@@ -1,9 +1,9 @@
-/* $NetBSD: memory.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: memory.c,v 1.1.1.3 2010/12/12 15:21:28 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblber/memory.c,v 1.64.2.6 2009/05/01 19:28:57 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/memory.c,v 1.64.2.7 2010/04/13 20:22:54 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/nt_err.c b/external/bsd/openldap/dist/libraries/liblber/nt_err.c
index 01d97cbd9d22..c586f4a7467d 100644
--- a/external/bsd/openldap/dist/libraries/liblber/nt_err.c
+++ b/external/bsd/openldap/dist/libraries/liblber/nt_err.c
@@ -1,9 +1,9 @@
-/* $NetBSD: nt_err.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: nt_err.c,v 1.1.1.3 2010/12/12 15:21:28 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblber/nt_err.c,v 1.15.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/nt_err.c,v 1.15.2.5 2010/04/13 20:22:54 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/options.c b/external/bsd/openldap/dist/libraries/liblber/options.c
index 9c36c7a9c9fc..4c74af33700d 100644
--- a/external/bsd/openldap/dist/libraries/liblber/options.c
+++ b/external/bsd/openldap/dist/libraries/liblber/options.c
@@ -1,9 +1,9 @@
-/* $NetBSD: options.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: options.c,v 1.1.1.3 2010/12/12 15:21:28 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblber/options.c,v 1.43.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/options.c,v 1.43.2.5 2010/04/13 20:22:54 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/sockbuf.c b/external/bsd/openldap/dist/libraries/liblber/sockbuf.c
index 753d4edae288..1a2e0795d030 100644
--- a/external/bsd/openldap/dist/libraries/liblber/sockbuf.c
+++ b/external/bsd/openldap/dist/libraries/liblber/sockbuf.c
@@ -1,10 +1,10 @@
-/* $NetBSD: sockbuf.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sockbuf.c,v 1.1.1.3 2010/12/12 15:21:29 adam Exp $ */
/* sockbuf.c - i/o routines with support for adding i/o layers. */
-/* OpenLDAP: pkg/ldap/libraries/liblber/sockbuf.c,v 1.65.2.5 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/sockbuf.c,v 1.65.2.6 2010/04/13 20:22:54 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblber/stdio.c b/external/bsd/openldap/dist/libraries/liblber/stdio.c
index 08db920bbf1a..f05842eea412 100644
--- a/external/bsd/openldap/dist/libraries/liblber/stdio.c
+++ b/external/bsd/openldap/dist/libraries/liblber/stdio.c
@@ -1,9 +1,9 @@
-/* $NetBSD: stdio.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: stdio.c,v 1.1.1.3 2010/12/12 15:21:29 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblber/stdio.c,v 1.11.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblber/stdio.c,v 1.11.2.5 2010/04/13 20:22:54 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/Makefile.in b/external/bsd/openldap/dist/libraries/libldap/Makefile.in
index 62656ac825b4..af730927e78d 100644
--- a/external/bsd/openldap/dist/libraries/libldap/Makefile.in
+++ b/external/bsd/openldap/dist/libraries/libldap/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for LDAP -lldap
-# OpenLDAP: pkg/ldap/libraries/libldap/Makefile.in,v 1.79.2.9 2009/01/26 23:29:53 quanah Exp
+# OpenLDAP: pkg/ldap/libraries/libldap/Makefile.in,v 1.79.2.10 2010/04/13 20:22:55 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/abandon.c b/external/bsd/openldap/dist/libraries/libldap/abandon.c
index 0e68e8398a4c..d4e37edc9835 100644
--- a/external/bsd/openldap/dist/libraries/libldap/abandon.c
+++ b/external/bsd/openldap/dist/libraries/libldap/abandon.c
@@ -1,10 +1,10 @@
-/* $NetBSD: abandon.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: abandon.c,v 1.1.1.3 2010/12/12 15:21:29 adam Exp $ */
/* abandon.c */
-/* OpenLDAP: pkg/ldap/libraries/libldap/abandon.c,v 1.41.2.11 2009/02/17 21:02:51 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/abandon.c,v 1.41.2.12 2010/04/13 20:22:55 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/add.c b/external/bsd/openldap/dist/libraries/libldap/add.c
index 0fb9d8a27130..9f309ba34faa 100644
--- a/external/bsd/openldap/dist/libraries/libldap/add.c
+++ b/external/bsd/openldap/dist/libraries/libldap/add.c
@@ -1,10 +1,10 @@
-/* $NetBSD: add.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: add.c,v 1.1.1.3 2010/12/12 15:21:29 adam Exp $ */
/* add.c */
-/* OpenLDAP: pkg/ldap/libraries/libldap/add.c,v 1.27.2.5 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/add.c,v 1.27.2.6 2010/04/13 20:22:55 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/addentry.c b/external/bsd/openldap/dist/libraries/libldap/addentry.c
index aa5db3d2d4e6..daaa69b7770b 100644
--- a/external/bsd/openldap/dist/libraries/libldap/addentry.c
+++ b/external/bsd/openldap/dist/libraries/libldap/addentry.c
@@ -1,10 +1,10 @@
-/* $NetBSD: addentry.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: addentry.c,v 1.1.1.3 2010/12/12 15:21:29 adam Exp $ */
/* addentry.c */
-/* OpenLDAP: pkg/ldap/libraries/libldap/addentry.c,v 1.16.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/addentry.c,v 1.16.2.5 2010/04/13 20:22:55 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/apitest.c b/external/bsd/openldap/dist/libraries/libldap/apitest.c
index a34dd2b805ef..55cadbe6ec17 100644
--- a/external/bsd/openldap/dist/libraries/libldap/apitest.c
+++ b/external/bsd/openldap/dist/libraries/libldap/apitest.c
@@ -1,10 +1,10 @@
-/* $NetBSD: apitest.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: apitest.c,v 1.1.1.3 2010/12/12 15:21:29 adam Exp $ */
/* apitest.c -- OpenLDAP API Test Program */
-/* OpenLDAP: pkg/ldap/libraries/libldap/apitest.c,v 1.25.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/apitest.c,v 1.25.2.5 2010/04/13 20:22:55 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 1998-2003 Kurt D. Zeilenga.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/libraries/libldap/assertion.c b/external/bsd/openldap/dist/libraries/libldap/assertion.c
index f4da3b1cede7..a19da315b1f8 100644
--- a/external/bsd/openldap/dist/libraries/libldap/assertion.c
+++ b/external/bsd/openldap/dist/libraries/libldap/assertion.c
@@ -1,9 +1,9 @@
-/* $NetBSD: assertion.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: assertion.c,v 1.1.1.3 2010/12/12 15:21:29 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/assertion.c,v 1.1.2.2 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/assertion.c,v 1.1.2.3 2010/04/13 20:22:55 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/bind.c b/external/bsd/openldap/dist/libraries/libldap/bind.c
index f0cf59de11bb..33d25086669f 100644
--- a/external/bsd/openldap/dist/libraries/libldap/bind.c
+++ b/external/bsd/openldap/dist/libraries/libldap/bind.c
@@ -1,10 +1,10 @@
-/* $NetBSD: bind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: bind.c,v 1.1.1.3 2010/12/12 15:21:29 adam Exp $ */
/* bind.c */
-/* OpenLDAP: pkg/ldap/libraries/libldap/bind.c,v 1.24.2.5 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/bind.c,v 1.24.2.6 2010/04/13 20:22:55 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/cancel.c b/external/bsd/openldap/dist/libraries/libldap/cancel.c
index 78d75a29f4fd..501767323310 100644
--- a/external/bsd/openldap/dist/libraries/libldap/cancel.c
+++ b/external/bsd/openldap/dist/libraries/libldap/cancel.c
@@ -1,9 +1,9 @@
-/* $NetBSD: cancel.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: cancel.c,v 1.1.1.3 2010/12/12 15:21:29 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/cancel.c,v 1.10.2.5 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/cancel.c,v 1.10.2.6 2010/04/13 20:22:55 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/charray.c b/external/bsd/openldap/dist/libraries/libldap/charray.c
index be9ad5211845..97766d581e3d 100644
--- a/external/bsd/openldap/dist/libraries/libldap/charray.c
+++ b/external/bsd/openldap/dist/libraries/libldap/charray.c
@@ -1,10 +1,10 @@
-/* $NetBSD: charray.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: charray.c,v 1.1.1.3 2010/12/12 15:21:29 adam Exp $ */
/* charray.c - routines for dealing with char * arrays */
-/* OpenLDAP: pkg/ldap/libraries/libldap/charray.c,v 1.16.2.6 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/charray.c,v 1.16.2.7 2010/04/13 20:22:55 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/compare.c b/external/bsd/openldap/dist/libraries/libldap/compare.c
index 51a2180ae2a6..c0efff0124a3 100644
--- a/external/bsd/openldap/dist/libraries/libldap/compare.c
+++ b/external/bsd/openldap/dist/libraries/libldap/compare.c
@@ -1,9 +1,9 @@
-/* $NetBSD: compare.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: compare.c,v 1.1.1.3 2010/12/12 15:21:29 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/compare.c,v 1.29.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/compare.c,v 1.29.2.5 2010/04/13 20:22:56 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/controls.c b/external/bsd/openldap/dist/libraries/libldap/controls.c
index ef969af7e7d5..849302dff09b 100644
--- a/external/bsd/openldap/dist/libraries/libldap/controls.c
+++ b/external/bsd/openldap/dist/libraries/libldap/controls.c
@@ -1,9 +1,9 @@
-/* $NetBSD: controls.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: controls.c,v 1.1.1.3 2010/12/12 15:21:30 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/controls.c,v 1.48.2.6 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/controls.c,v 1.48.2.7 2010/04/13 20:22:56 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/cyrus.c b/external/bsd/openldap/dist/libraries/libldap/cyrus.c
index 364aa9ad9fad..ac14c10c63bc 100644
--- a/external/bsd/openldap/dist/libraries/libldap/cyrus.c
+++ b/external/bsd/openldap/dist/libraries/libldap/cyrus.c
@@ -1,9 +1,9 @@
-/* $NetBSD: cyrus.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: cyrus.c,v 1.1.1.3 2010/12/12 15:21:30 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/cyrus.c,v 1.133.2.15 2009/08/25 23:04:13 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/cyrus.c,v 1.133.2.18 2010/06/12 22:06:11 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -1044,6 +1044,25 @@ ldap_int_sasl_get_option( LDAP *ld, int option, void *arg )
/* this option is write only */
return -1;
+#ifdef SASL_GSS_CREDS
+ case LDAP_OPT_X_SASL_GSS_CREDS: {
+ sasl_conn_t *ctx;
+ int sc;
+
+ if ( ld->ld_defconn == NULL )
+ return -1;
+
+ ctx = ld->ld_defconn->lconn_sasl_authctx;
+ if ( ctx == NULL )
+ return -1;
+
+ sc = sasl_getprop( ctx, SASL_GSS_CREDS, arg );
+ if ( sc != SASL_OK )
+ return -1;
+ }
+ break;
+#endif
+
default:
return -1;
}
@@ -1126,6 +1145,25 @@ ldap_int_sasl_set_option( LDAP *ld, int option, void *arg )
return sc == LDAP_SUCCESS ? 0 : -1;
}
+#ifdef SASL_GSS_CREDS
+ case LDAP_OPT_X_SASL_GSS_CREDS: {
+ sasl_conn_t *ctx;
+ int sc;
+
+ if ( ld->ld_defconn == NULL )
+ return -1;
+
+ ctx = ld->ld_defconn->lconn_sasl_authctx;
+ if ( ctx == NULL )
+ return -1;
+
+ sc = sasl_setprop( ctx, SASL_GSS_CREDS, arg );
+ if ( sc != SASL_OK )
+ return -1;
+ }
+ break;
+#endif
+
default:
return -1;
}
diff --git a/external/bsd/openldap/dist/libraries/libldap/dds.c b/external/bsd/openldap/dist/libraries/libldap/dds.c
index fa490e8bcc9f..3270f8800c7d 100644
--- a/external/bsd/openldap/dist/libraries/libldap/dds.c
+++ b/external/bsd/openldap/dist/libraries/libldap/dds.c
@@ -1,9 +1,9 @@
-/* $NetBSD: dds.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: dds.c,v 1.1.1.3 2010/12/12 15:21:30 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/dds.c,v 1.2.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/dds.c,v 1.2.2.5 2010/04/13 20:22:56 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* Portions Copyright 2005-2006 SysNet s.n.c.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/libraries/libldap/delete.c b/external/bsd/openldap/dist/libraries/libldap/delete.c
index 340051d113c5..56ac4e933d27 100644
--- a/external/bsd/openldap/dist/libraries/libldap/delete.c
+++ b/external/bsd/openldap/dist/libraries/libldap/delete.c
@@ -1,9 +1,9 @@
-/* $NetBSD: delete.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: delete.c,v 1.1.1.3 2010/12/12 15:21:30 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/delete.c,v 1.26.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/delete.c,v 1.26.2.5 2010/04/13 20:22:56 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/deref.c b/external/bsd/openldap/dist/libraries/libldap/deref.c
index 8c98c9543953..c84c8ee54505 100644
--- a/external/bsd/openldap/dist/libraries/libldap/deref.c
+++ b/external/bsd/openldap/dist/libraries/libldap/deref.c
@@ -1,9 +1,9 @@
-/* $NetBSD: deref.c,v 1.1.1.1 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: deref.c,v 1.1.1.2 2010/12/12 15:21:30 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/deref.c,v 1.2.2.2 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/deref.c,v 1.2.2.3 2010/04/13 20:22:56 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 2008 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/libraries/libldap/dnssrv.c b/external/bsd/openldap/dist/libraries/libldap/dnssrv.c
index 817c347f46c7..754388a656ce 100644
--- a/external/bsd/openldap/dist/libraries/libldap/dnssrv.c
+++ b/external/bsd/openldap/dist/libraries/libldap/dnssrv.c
@@ -1,9 +1,9 @@
-/* $NetBSD: dnssrv.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: dnssrv.c,v 1.1.1.3 2010/12/12 15:21:30 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/dnssrv.c,v 1.39.2.5 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/dnssrv.c,v 1.39.2.6 2010/04/13 20:22:56 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/dntest.c b/external/bsd/openldap/dist/libraries/libldap/dntest.c
index 3ce157015fa9..69b8ecadd249 100644
--- a/external/bsd/openldap/dist/libraries/libldap/dntest.c
+++ b/external/bsd/openldap/dist/libraries/libldap/dntest.c
@@ -1,10 +1,10 @@
-/* $NetBSD: dntest.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: dntest.c,v 1.1.1.3 2010/12/12 15:21:30 adam Exp $ */
/* dntest.c -- OpenLDAP DN API Test Program */
-/* OpenLDAP: pkg/ldap/libraries/libldap/dntest.c,v 1.27.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/dntest.c,v 1.27.2.5 2010/04/13 20:22:56 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/error.c b/external/bsd/openldap/dist/libraries/libldap/error.c
index ef1646547cd3..9bf8f843cb36 100644
--- a/external/bsd/openldap/dist/libraries/libldap/error.c
+++ b/external/bsd/openldap/dist/libraries/libldap/error.c
@@ -1,9 +1,9 @@
-/* $NetBSD: error.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: error.c,v 1.1.1.3 2010/12/12 15:21:30 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/error.c,v 1.76.2.6 2009/08/12 23:54:21 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/error.c,v 1.76.2.8 2010/04/15 20:03:50 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -283,11 +283,11 @@ ldap_parse_result(
}
if( lm == NULL ) {
- ld->ld_errno = LDAP_NO_RESULTS_RETURNED;
+ errcode = ld->ld_errno = LDAP_NO_RESULTS_RETURNED;
#ifdef LDAP_R_COMPILE
ldap_pvt_thread_mutex_unlock( &ld->ld_res_mutex );
#endif
- return ld->ld_errno;
+ goto done;
}
if ( ld->ld_error ) {
@@ -393,12 +393,14 @@ ldap_parse_result(
}
}
- if ( freeit ) {
- ldap_msgfree( r );
- }
#ifdef LDAP_R_COMPILE
ldap_pvt_thread_mutex_unlock( &ld->ld_res_mutex );
#endif
- return( errcode );
+done:
+ if ( freeit ) {
+ ldap_msgfree( r );
+ }
+
+ return errcode;
}
diff --git a/external/bsd/openldap/dist/libraries/libldap/extended.c b/external/bsd/openldap/dist/libraries/libldap/extended.c
index f80ad46ef26f..351ecd90cf97 100644
--- a/external/bsd/openldap/dist/libraries/libldap/extended.c
+++ b/external/bsd/openldap/dist/libraries/libldap/extended.c
@@ -1,9 +1,9 @@
-/* $NetBSD: extended.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: extended.c,v 1.1.1.3 2010/12/12 15:21:31 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/extended.c,v 1.39.2.5 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/extended.c,v 1.39.2.6 2010/04/13 20:22:56 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/filter.c b/external/bsd/openldap/dist/libraries/libldap/filter.c
index 8803ea79a768..2351cc0ccecb 100644
--- a/external/bsd/openldap/dist/libraries/libldap/filter.c
+++ b/external/bsd/openldap/dist/libraries/libldap/filter.c
@@ -1,10 +1,10 @@
-/* $NetBSD: filter.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: filter.c,v 1.1.1.3 2010/12/12 15:21:31 adam Exp $ */
/* search.c */
-/* OpenLDAP: pkg/ldap/libraries/libldap/filter.c,v 1.29.2.7 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/filter.c,v 1.29.2.8 2010/04/13 20:22:57 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/free.c b/external/bsd/openldap/dist/libraries/libldap/free.c
index ed3c1aa0b9c2..1c4b8a7caa7d 100644
--- a/external/bsd/openldap/dist/libraries/libldap/free.c
+++ b/external/bsd/openldap/dist/libraries/libldap/free.c
@@ -1,10 +1,10 @@
-/* $NetBSD: free.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: free.c,v 1.1.1.3 2010/12/12 15:21:31 adam Exp $ */
/* free.c */
-/* OpenLDAP: pkg/ldap/libraries/libldap/free.c,v 1.22.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/free.c,v 1.22.2.5 2010/04/13 20:22:57 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/ftest.c b/external/bsd/openldap/dist/libraries/libldap/ftest.c
index d51b16632292..d4002a7e5ea8 100644
--- a/external/bsd/openldap/dist/libraries/libldap/ftest.c
+++ b/external/bsd/openldap/dist/libraries/libldap/ftest.c
@@ -1,10 +1,10 @@
-/* $NetBSD: ftest.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ftest.c,v 1.1.1.3 2010/12/12 15:21:31 adam Exp $ */
/* ftest.c -- OpenLDAP Filter API Test */
-/* OpenLDAP: pkg/ldap/libraries/libldap/ftest.c,v 1.15.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/ftest.c,v 1.15.2.5 2010/04/13 20:22:57 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/getattr.c b/external/bsd/openldap/dist/libraries/libldap/getattr.c
index 95e33230fe58..3e5ecacb5939 100644
--- a/external/bsd/openldap/dist/libraries/libldap/getattr.c
+++ b/external/bsd/openldap/dist/libraries/libldap/getattr.c
@@ -1,9 +1,9 @@
-/* $NetBSD: getattr.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: getattr.c,v 1.1.1.3 2010/12/12 15:21:31 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/getattr.c,v 1.35.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/getattr.c,v 1.35.2.5 2010/04/13 20:22:57 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/getdn.c b/external/bsd/openldap/dist/libraries/libldap/getdn.c
index 83e2d5fb412f..3239f69ac9ea 100644
--- a/external/bsd/openldap/dist/libraries/libldap/getdn.c
+++ b/external/bsd/openldap/dist/libraries/libldap/getdn.c
@@ -1,9 +1,9 @@
-/* $NetBSD: getdn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: getdn.c,v 1.1.1.3 2010/12/12 15:21:32 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/getdn.c,v 1.130.2.5 2009/11/18 01:03:02 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/getdn.c,v 1.130.2.6 2010/04/13 20:22:57 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/getentry.c b/external/bsd/openldap/dist/libraries/libldap/getentry.c
index 207d65159fa2..9877db631b01 100644
--- a/external/bsd/openldap/dist/libraries/libldap/getentry.c
+++ b/external/bsd/openldap/dist/libraries/libldap/getentry.c
@@ -1,9 +1,9 @@
-/* $NetBSD: getentry.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: getentry.c,v 1.1.1.3 2010/12/12 15:21:32 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/getentry.c,v 1.28.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/getentry.c,v 1.28.2.5 2010/04/13 20:22:57 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/getvalues.c b/external/bsd/openldap/dist/libraries/libldap/getvalues.c
index a55680424ca1..f4b97abe4777 100644
--- a/external/bsd/openldap/dist/libraries/libldap/getvalues.c
+++ b/external/bsd/openldap/dist/libraries/libldap/getvalues.c
@@ -1,9 +1,9 @@
-/* $NetBSD: getvalues.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: getvalues.c,v 1.1.1.3 2010/12/12 15:21:32 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/getvalues.c,v 1.26.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/getvalues.c,v 1.26.2.5 2010/04/13 20:22:57 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/gssapi.c b/external/bsd/openldap/dist/libraries/libldap/gssapi.c
index db8cdecc585a..3e66a0605bf7 100644
--- a/external/bsd/openldap/dist/libraries/libldap/gssapi.c
+++ b/external/bsd/openldap/dist/libraries/libldap/gssapi.c
@@ -1,9 +1,9 @@
-/* $NetBSD: gssapi.c,v 1.1.1.1 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: gssapi.c,v 1.1.1.2 2010/12/12 15:21:32 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/gssapi.c,v 1.1.2.4 2009/04/29 01:53:02 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/gssapi.c,v 1.1.2.6 2010/04/19 20:40:08 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Author: Stefan Metzmacher
@@ -544,12 +544,12 @@ guess_service_principal(
} else if (allow_remote && dnsHostName) {
principal_fmt = "ldap/%s";
- svc_principal_size = strlen(dnsHostName) + strlen(principal_fmt);
+ svc_principal_size = STRLENOF("ldap/") + strlen(dnsHostName) + 1;
str = dnsHostName;
} else {
principal_fmt = "ldap/%s";
- svc_principal_size = strlen(host) + strlen(principal_fmt);
+ svc_principal_size = STRLENOF("ldap/") + strlen(host) + 1;
str = host;
}
@@ -559,8 +559,8 @@ guess_service_principal(
return ld->ld_errno;
}
- ret = snprintf( svc_principal, svc_principal_size - 1, principal_fmt, str);
- if (ret < 0 || (size_t)ret + 1 >= svc_principal_size) {
+ ret = snprintf( svc_principal, svc_principal_size, principal_fmt, str );
+ if (ret < 0 || (size_t)ret >= svc_principal_size) {
ld->ld_errno = LDAP_LOCAL_ERROR;
return ld->ld_errno;
}
@@ -569,7 +569,7 @@ guess_service_principal(
host, svc_principal, 0 );
input_name.value = svc_principal;
- input_name.length = strlen( svc_principal );
+ input_name.length = (size_t)ret;
gss_rc = gss_import_name( &minor_status, &input_name, &nt_principal, principal );
ldap_memfree( svc_principal );
diff --git a/external/bsd/openldap/dist/libraries/libldap/init.c b/external/bsd/openldap/dist/libraries/libldap/init.c
index 877f520e18b8..44975893a705 100644
--- a/external/bsd/openldap/dist/libraries/libldap/init.c
+++ b/external/bsd/openldap/dist/libraries/libldap/init.c
@@ -1,9 +1,9 @@
-/* $NetBSD: init.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: init.c,v 1.1.1.3 2010/12/12 15:21:32 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/init.c,v 1.102.2.13 2009/11/17 17:29:13 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/init.c,v 1.102.2.14 2010/04/13 20:22:57 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/ldap-int.h b/external/bsd/openldap/dist/libraries/libldap/ldap-int.h
index 848adbccb496..bc9219e75176 100644
--- a/external/bsd/openldap/dist/libraries/libldap/ldap-int.h
+++ b/external/bsd/openldap/dist/libraries/libldap/ldap-int.h
@@ -1,10 +1,10 @@
-/* $NetBSD: ldap-int.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap-int.h,v 1.1.1.3 2010/12/12 15:21:32 adam Exp $ */
/* ldap-int.h - defines & prototypes internal to the LDAP library */
-/* OpenLDAP: pkg/ldap/libraries/libldap/ldap-int.h,v 1.168.2.16 2009/08/12 23:40:55 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/ldap-int.h,v 1.168.2.18 2010/04/19 16:53:01 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -27,6 +27,7 @@
#endif
#include "../liblber/lber-int.h"
+#include "lutil.h"
#ifdef LDAP_R_COMPILE
#include
diff --git a/external/bsd/openldap/dist/libraries/libldap/ldap-tls.h b/external/bsd/openldap/dist/libraries/libldap/ldap-tls.h
index d41e48d28840..cad4b3f1a5fa 100644
--- a/external/bsd/openldap/dist/libraries/libldap/ldap-tls.h
+++ b/external/bsd/openldap/dist/libraries/libldap/ldap-tls.h
@@ -1,10 +1,10 @@
-/* $NetBSD: ldap-tls.h,v 1.1.1.1 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap-tls.h,v 1.1.1.2 2010/12/12 15:21:32 adam Exp $ */
/* ldap-tls.h - TLS defines & prototypes internal to the LDAP library */
-/* OpenLDAP: pkg/ldap/libraries/libldap/ldap-tls.h,v 1.3.2.2 2009/10/30 17:48:16 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/ldap-tls.h,v 1.3.2.3 2010/04/13 20:22:58 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/ldap_sync.c b/external/bsd/openldap/dist/libraries/libldap/ldap_sync.c
index ed09b31ed5c4..85c7d836ff27 100644
--- a/external/bsd/openldap/dist/libraries/libldap/ldap_sync.c
+++ b/external/bsd/openldap/dist/libraries/libldap/ldap_sync.c
@@ -1,9 +1,9 @@
-/* $NetBSD: ldap_sync.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap_sync.c,v 1.1.1.3 2010/12/12 15:21:33 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/ldap_sync.c,v 1.2.2.5 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/ldap_sync.c,v 1.2.2.6 2010/04/13 20:22:58 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2006-2009 The OpenLDAP Foundation.
+ * Copyright 2006-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/messages.c b/external/bsd/openldap/dist/libraries/libldap/messages.c
index 97dfe404c574..f07c9ec2f978 100644
--- a/external/bsd/openldap/dist/libraries/libldap/messages.c
+++ b/external/bsd/openldap/dist/libraries/libldap/messages.c
@@ -1,10 +1,10 @@
-/* $NetBSD: messages.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: messages.c,v 1.1.1.3 2010/12/12 15:21:33 adam Exp $ */
/* messages.c */
-/* OpenLDAP: pkg/ldap/libraries/libldap/messages.c,v 1.17.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/messages.c,v 1.17.2.5 2010/04/13 20:22:58 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/modify.c b/external/bsd/openldap/dist/libraries/libldap/modify.c
index b21f4b811e33..95b5c915d19f 100644
--- a/external/bsd/openldap/dist/libraries/libldap/modify.c
+++ b/external/bsd/openldap/dist/libraries/libldap/modify.c
@@ -1,9 +1,9 @@
-/* $NetBSD: modify.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modify.c,v 1.1.1.3 2010/12/12 15:21:33 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/modify.c,v 1.25.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/modify.c,v 1.25.2.5 2010/04/13 20:22:58 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/modrdn.c b/external/bsd/openldap/dist/libraries/libldap/modrdn.c
index e16340c4f1bb..ef3e71709a1d 100644
--- a/external/bsd/openldap/dist/libraries/libldap/modrdn.c
+++ b/external/bsd/openldap/dist/libraries/libldap/modrdn.c
@@ -1,9 +1,9 @@
-/* $NetBSD: modrdn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modrdn.c,v 1.1.1.3 2010/12/12 15:21:33 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/modrdn.c,v 1.30.2.4 2009/01/22 00:00:54 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/modrdn.c,v 1.30.2.5 2010/04/13 20:22:58 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/open.c b/external/bsd/openldap/dist/libraries/libldap/open.c
index 43427041e49a..e0ab09a0cd72 100644
--- a/external/bsd/openldap/dist/libraries/libldap/open.c
+++ b/external/bsd/openldap/dist/libraries/libldap/open.c
@@ -1,9 +1,9 @@
-/* $NetBSD: open.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: open.c,v 1.1.1.3 2010/12/12 15:21:33 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/open.c,v 1.110.2.12 2009/11/18 22:19:02 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/open.c,v 1.110.2.13 2010/04/13 20:22:58 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/options.c b/external/bsd/openldap/dist/libraries/libldap/options.c
index d0b5f2ebc34d..c61e81e73d79 100644
--- a/external/bsd/openldap/dist/libraries/libldap/options.c
+++ b/external/bsd/openldap/dist/libraries/libldap/options.c
@@ -1,9 +1,9 @@
-/* $NetBSD: options.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: options.c,v 1.1.1.3 2010/12/12 15:21:33 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/options.c,v 1.75.2.11 2009/08/12 23:40:56 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/options.c,v 1.75.2.12 2010/04/13 20:22:58 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/pagectrl.c b/external/bsd/openldap/dist/libraries/libldap/pagectrl.c
index 76b734e341bb..8d9c864990f0 100644
--- a/external/bsd/openldap/dist/libraries/libldap/pagectrl.c
+++ b/external/bsd/openldap/dist/libraries/libldap/pagectrl.c
@@ -1,9 +1,9 @@
-/* $NetBSD: pagectrl.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: pagectrl.c,v 1.1.1.3 2010/12/12 15:21:34 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/pagectrl.c,v 1.5.2.6 2009/01/22 00:00:55 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/pagectrl.c,v 1.5.2.7 2010/04/13 20:22:59 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Copyright 2006 Hans Leidekker
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/libraries/libldap/passwd.c b/external/bsd/openldap/dist/libraries/libldap/passwd.c
index 1a70777872aa..33774e778fc9 100644
--- a/external/bsd/openldap/dist/libraries/libldap/passwd.c
+++ b/external/bsd/openldap/dist/libraries/libldap/passwd.c
@@ -1,9 +1,9 @@
-/* $NetBSD: passwd.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: passwd.c,v 1.1.1.3 2010/12/12 15:21:34 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/passwd.c,v 1.18.2.4 2009/01/22 00:00:55 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/passwd.c,v 1.18.2.5 2010/04/13 20:22:59 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/ppolicy.c b/external/bsd/openldap/dist/libraries/libldap/ppolicy.c
index 6012806c1aa2..337d66923391 100644
--- a/external/bsd/openldap/dist/libraries/libldap/ppolicy.c
+++ b/external/bsd/openldap/dist/libraries/libldap/ppolicy.c
@@ -1,9 +1,9 @@
-/* $NetBSD: ppolicy.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ppolicy.c,v 1.1.1.3 2010/12/12 15:21:34 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/ppolicy.c,v 1.11.2.5 2009/01/22 00:00:55 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/ppolicy.c,v 1.11.2.6 2010/04/13 20:22:59 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* Portions Copyright 2004 Hewlett-Packard Company.
* Portions Copyright 2004 Howard Chu, Symas Corp.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/libraries/libldap/print.c b/external/bsd/openldap/dist/libraries/libldap/print.c
index 23039fc7829d..2c121868750a 100644
--- a/external/bsd/openldap/dist/libraries/libldap/print.c
+++ b/external/bsd/openldap/dist/libraries/libldap/print.c
@@ -1,9 +1,9 @@
-/* $NetBSD: print.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: print.c,v 1.1.1.3 2010/12/12 15:21:34 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/print.c,v 1.16.2.4 2009/01/22 00:00:55 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/print.c,v 1.16.2.5 2010/04/13 20:22:59 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/references.c b/external/bsd/openldap/dist/libraries/libldap/references.c
index 88e278cda015..578717c945aa 100644
--- a/external/bsd/openldap/dist/libraries/libldap/references.c
+++ b/external/bsd/openldap/dist/libraries/libldap/references.c
@@ -1,10 +1,10 @@
-/* $NetBSD: references.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: references.c,v 1.1.1.3 2010/12/12 15:21:34 adam Exp $ */
/* references.c */
-/* OpenLDAP: pkg/ldap/libraries/libldap/references.c,v 1.24.2.4 2009/01/22 00:00:55 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/references.c,v 1.24.2.5 2010/04/13 20:22:59 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/request.c b/external/bsd/openldap/dist/libraries/libldap/request.c
index ca7f1fdd74b2..81d12c435da8 100644
--- a/external/bsd/openldap/dist/libraries/libldap/request.c
+++ b/external/bsd/openldap/dist/libraries/libldap/request.c
@@ -1,9 +1,9 @@
-/* $NetBSD: request.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: request.c,v 1.1.1.4 2010/12/12 15:21:35 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/request.c,v 1.125.2.15 2009/03/05 19:07:21 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/request.c,v 1.125.2.17 2010/06/10 17:39:48 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -126,10 +126,14 @@ ldap_send_initial_request(
if (ld->ld_options.ldo_cldapdn)
ldap_memfree(ld->ld_options.ldo_cldapdn);
ld->ld_options.ldo_cldapdn = ldap_strdup(dn);
+ ber_free( ber, 1 );
return 0;
}
if (msgtype != LDAP_REQ_ABANDON && msgtype != LDAP_REQ_SEARCH)
+ {
+ ber_free( ber, 1 );
return LDAP_PARAM_ERROR;
+ }
}
#endif
#ifdef LDAP_R_COMPILE
diff --git a/external/bsd/openldap/dist/libraries/libldap/result.c b/external/bsd/openldap/dist/libraries/libldap/result.c
index 9a024c82ba0d..31215b0ba154 100644
--- a/external/bsd/openldap/dist/libraries/libldap/result.c
+++ b/external/bsd/openldap/dist/libraries/libldap/result.c
@@ -1,10 +1,10 @@
-/* $NetBSD: result.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: result.c,v 1.1.1.4 2010/12/12 15:21:35 adam Exp $ */
/* result.c - wait for an ldap result */
-/* OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.124.2.20 2009/11/18 17:04:31 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.124.2.23 2010/06/10 17:41:05 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -749,8 +749,9 @@ nextresp2:
}
/* Do we need to check for referrals? */
- if ( LDAP_BOOL_GET(&ld->ld_options, LDAP_BOOL_REFERRALS) ||
- lr->lr_parent != NULL )
+ if ( tag != LDAP_RES_BIND &&
+ ( LDAP_BOOL_GET(&ld->ld_options, LDAP_BOOL_REFERRALS) ||
+ lr->lr_parent != NULL ))
{
char **refs = NULL;
ber_len_t len;
@@ -995,6 +996,7 @@ nextresp2:
/* need to return -1, because otherwise
* a valid result is expected */
+ ld->ld_errno = lderr;
return -1;
}
}
diff --git a/external/bsd/openldap/dist/libraries/libldap/sasl.c b/external/bsd/openldap/dist/libraries/libldap/sasl.c
index a653ce0854dd..9d96ffdb9800 100644
--- a/external/bsd/openldap/dist/libraries/libldap/sasl.c
+++ b/external/bsd/openldap/dist/libraries/libldap/sasl.c
@@ -1,9 +1,9 @@
-/* $NetBSD: sasl.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sasl.c,v 1.1.1.3 2010/12/12 15:21:35 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.64.2.7 2009/10/31 00:11:22 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/sasl.c,v 1.64.2.8 2010/04/13 20:22:59 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/sbind.c b/external/bsd/openldap/dist/libraries/libldap/sbind.c
index 80ef103cd4b1..7cc90d3ca686 100644
--- a/external/bsd/openldap/dist/libraries/libldap/sbind.c
+++ b/external/bsd/openldap/dist/libraries/libldap/sbind.c
@@ -1,9 +1,9 @@
-/* $NetBSD: sbind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sbind.c,v 1.1.1.3 2010/12/12 15:21:35 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/sbind.c,v 1.25.2.4 2009/01/22 00:00:55 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/sbind.c,v 1.25.2.5 2010/04/13 20:22:59 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/schema.c b/external/bsd/openldap/dist/libraries/libldap/schema.c
index 823da052f6e6..192c10b0818b 100644
--- a/external/bsd/openldap/dist/libraries/libldap/schema.c
+++ b/external/bsd/openldap/dist/libraries/libldap/schema.c
@@ -1,9 +1,9 @@
-/* $NetBSD: schema.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: schema.c,v 1.1.1.3 2010/12/12 15:21:36 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/schema.c,v 1.77.2.5 2009/01/22 00:00:55 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/schema.c,v 1.77.2.6 2010/04/13 20:23:00 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/search.c b/external/bsd/openldap/dist/libraries/libldap/search.c
index b5907fe67045..37e8f09cfda3 100644
--- a/external/bsd/openldap/dist/libraries/libldap/search.c
+++ b/external/bsd/openldap/dist/libraries/libldap/search.c
@@ -1,9 +1,9 @@
-/* $NetBSD: search.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: search.c,v 1.1.1.3 2010/12/12 15:21:36 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/search.c,v 1.76.2.9 2009/02/20 00:28:32 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/search.c,v 1.76.2.11 2010/04/14 18:08:23 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -171,6 +171,8 @@ ldap_pvt_search_s(
int rc;
int msgid;
+ *res = NULL;
+
rc = ldap_pvt_search( ld, base, scope, filter, attrs, attrsonly,
sctrls, cctrls, timeout, sizelimit, deref, &msgid );
@@ -395,6 +397,8 @@ ldap_search_st(
{
int msgid;
+ *res = NULL;
+
if ( (msgid = ldap_search( ld, base, scope, filter, attrs, attrsonly ))
== -1 )
return( ld->ld_errno );
@@ -423,6 +427,8 @@ ldap_search_s(
{
int msgid;
+ *res = NULL;
+
if ( (msgid = ldap_search( ld, base, scope, filter, attrs, attrsonly ))
== -1 )
return( ld->ld_errno );
diff --git a/external/bsd/openldap/dist/libraries/libldap/sort.c b/external/bsd/openldap/dist/libraries/libldap/sort.c
index 972148a96281..5c1fa51db7ee 100644
--- a/external/bsd/openldap/dist/libraries/libldap/sort.c
+++ b/external/bsd/openldap/dist/libraries/libldap/sort.c
@@ -1,10 +1,10 @@
-/* $NetBSD: sort.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sort.c,v 1.1.1.3 2010/12/12 15:21:36 adam Exp $ */
/* sort.c -- LDAP library entry and value sort routines */
-/* OpenLDAP: pkg/ldap/libraries/libldap/sort.c,v 1.27.2.5 2009/01/22 00:00:55 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/sort.c,v 1.27.2.6 2010/04/13 20:23:00 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/sortctrl.c b/external/bsd/openldap/dist/libraries/libldap/sortctrl.c
index ce706e50f4c0..7aeda8db1e97 100644
--- a/external/bsd/openldap/dist/libraries/libldap/sortctrl.c
+++ b/external/bsd/openldap/dist/libraries/libldap/sortctrl.c
@@ -1,9 +1,9 @@
-/* $NetBSD: sortctrl.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sortctrl.c,v 1.1.1.3 2010/12/12 15:21:37 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/sortctrl.c,v 1.19.2.6 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/sortctrl.c,v 1.19.2.7 2010/04/13 20:23:00 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/stctrl.c b/external/bsd/openldap/dist/libraries/libldap/stctrl.c
index ca7ed83a562a..e4f62bd27c02 100644
--- a/external/bsd/openldap/dist/libraries/libldap/stctrl.c
+++ b/external/bsd/openldap/dist/libraries/libldap/stctrl.c
@@ -1,9 +1,9 @@
-/* $NetBSD: stctrl.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: stctrl.c,v 1.1.1.3 2010/12/12 15:21:37 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/stctrl.c,v 1.3.2.4 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/stctrl.c,v 1.3.2.5 2010/04/13 20:23:00 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 2007 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/libraries/libldap/string.c b/external/bsd/openldap/dist/libraries/libldap/string.c
index ee5ab201ca67..f00a77f92949 100644
--- a/external/bsd/openldap/dist/libraries/libldap/string.c
+++ b/external/bsd/openldap/dist/libraries/libldap/string.c
@@ -1,9 +1,9 @@
-/* $NetBSD: string.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: string.c,v 1.1.1.3 2010/12/12 15:21:37 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/string.c,v 1.23.2.4 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/string.c,v 1.23.2.5 2010/04/13 20:23:00 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/t61.c b/external/bsd/openldap/dist/libraries/libldap/t61.c
index 6e1cdf0b610a..76d72ddd1b67 100644
--- a/external/bsd/openldap/dist/libraries/libldap/t61.c
+++ b/external/bsd/openldap/dist/libraries/libldap/t61.c
@@ -1,9 +1,9 @@
-/* $NetBSD: t61.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: t61.c,v 1.1.1.4 2010/12/12 15:21:37 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/t61.c,v 1.9.2.5 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/t61.c,v 1.9.2.6 2010/04/13 20:23:00 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2002-2009 The OpenLDAP Foundation.
+ * Copyright 2002-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/test.c b/external/bsd/openldap/dist/libraries/libldap/test.c
index 59efe78ca0d2..4e7d827afb18 100644
--- a/external/bsd/openldap/dist/libraries/libldap/test.c
+++ b/external/bsd/openldap/dist/libraries/libldap/test.c
@@ -1,9 +1,9 @@
-/* $NetBSD: test.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: test.c,v 1.1.1.3 2010/12/12 15:21:37 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/test.c,v 1.55.2.4 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/test.c,v 1.55.2.5 2010/04/13 20:23:00 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/tls2.c b/external/bsd/openldap/dist/libraries/libldap/tls2.c
index b951071283c9..f4f4776a8340 100644
--- a/external/bsd/openldap/dist/libraries/libldap/tls2.c
+++ b/external/bsd/openldap/dist/libraries/libldap/tls2.c
@@ -1,10 +1,10 @@
-/* $NetBSD: tls2.c,v 1.1.1.1 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: tls2.c,v 1.1.1.2 2010/12/12 15:21:38 adam Exp $ */
/* tls.c - Handle tls/ssl. */
-/* OpenLDAP: pkg/ldap/libraries/libldap/tls2.c,v 1.4.2.9 2009/10/30 17:48:16 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/tls2.c,v 1.4.2.10 2010/04/13 20:23:00 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/tls_g.c b/external/bsd/openldap/dist/libraries/libldap/tls_g.c
index 7a730c5fcd1c..3375ab04e5db 100644
--- a/external/bsd/openldap/dist/libraries/libldap/tls_g.c
+++ b/external/bsd/openldap/dist/libraries/libldap/tls_g.c
@@ -1,10 +1,10 @@
-/* $NetBSD: tls_g.c,v 1.1.1.1 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: tls_g.c,v 1.1.1.2 2010/12/12 15:21:39 adam Exp $ */
/* tls_g.c - Handle tls/ssl using GNUTLS. */
-/* OpenLDAP: pkg/ldap/libraries/libldap/tls_g.c,v 1.6.2.7 2009/10/30 17:48:17 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/tls_g.c,v 1.6.2.9 2010/04/14 22:10:21 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -547,7 +547,8 @@ tlsg_x509_cert_dn( struct berval *cert, struct berval *dn, int get_subject )
tag = ber_skip_tag( ber, &len ); /* Context + Constructed (version) */
if ( tag == 0xa0 ) /* Version is optional */
tag = ber_get_int( ber, &i ); /* Int: Version */
- tag = ber_get_int( ber, &i ); /* Int: Serial */
+ tag = ber_skip_tag( ber, &len ); /* Int: Serial (can be longer than ber_int_t) */
+ ber_skip_data( ber, len );
tag = ber_skip_tag( ber, &len ); /* Sequence: Signature */
ber_skip_data( ber, len );
if ( !get_subject ) {
diff --git a/external/bsd/openldap/dist/libraries/libldap/tls_m.c b/external/bsd/openldap/dist/libraries/libldap/tls_m.c
index f66377c0bc36..a2ff945bd301 100644
--- a/external/bsd/openldap/dist/libraries/libldap/tls_m.c
+++ b/external/bsd/openldap/dist/libraries/libldap/tls_m.c
@@ -1,10 +1,10 @@
-/* $NetBSD: tls_m.c,v 1.1.1.1 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: tls_m.c,v 1.1.1.2 2010/12/12 15:21:39 adam Exp $ */
/* tls_m.c - Handle tls/ssl using Mozilla NSS. */
-/* OpenLDAP: pkg/ldap/libraries/libldap/tls_m.c,v 1.3.2.8 2009/10/30 17:48:17 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/tls_m.c,v 1.3.2.11 2010/04/15 21:26:00 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -66,6 +66,16 @@
#include
#include
+/* NSS 3.12.5 and later have NSS_InitContext */
+#if NSS_VMAJOR <= 3 && NSS_VMINOR <= 12 && NSS_VPATCH < 5
+/* do nothing */
+#else
+#define HAVE_NSS_INITCONTEXT 1
+#endif
+
+/* InitContext does not currently work in server mode */
+/* #define INITCONTEXT_HACK 1 */
+
typedef struct tlsm_ctx {
PRFileDesc *tc_model;
int tc_refcnt;
@@ -79,6 +89,11 @@ typedef struct tlsm_ctx {
PRCallOnceType tc_callonce;
PRBool tc_using_pem;
char *tc_slotname; /* if using pem */
+#ifdef HAVE_NSS_INITCONTEXT
+ NSSInitContext *tc_initctx; /* the NSS context */
+#endif
+ PK11GenericObject **tc_pem_objs; /* array of objects to free */
+ int tc_n_pem_objs; /* number of objects */
#ifdef LDAP_R_COMPILE
ldap_pvt_thread_mutex_t tc_refmutex;
#endif
@@ -90,10 +105,10 @@ static PRDescIdentity tlsm_layer_id;
static const PRIOMethods tlsm_PR_methods;
-static int tlsm_did_init;
+#define PEM_LIBRARY "nsspem"
+#define PEM_MODULE "PEM"
-static const char* pem_library = "nsspem";
-static SECMODModule* pemMod = NULL;
+static SECMODModule *pem_module;
#define DEFAULT_TOKEN_NAME "default"
/* sprintf format used to create token name */
@@ -927,12 +942,29 @@ tlsm_init_tokens( tlsm_ctx *ctx )
slotList = PK11_GetAllTokens( CKM_INVALID_MECHANISM, PR_FALSE, PR_TRUE, NULL );
for ( listEntry = PK11_GetFirstSafe( slotList ); !rc && listEntry;
- listEntry = listEntry->next) {
+ listEntry = PK11_GetNextSafe( slotList, listEntry, PR_FALSE ) ) {
PK11SlotInfo *slot = listEntry->slot;
rc = tlsm_authenticate_to_slot( ctx, slot );
- PK11_FreeSlot(slot);
}
+ PK11_FreeSlotList( slotList );
+
+ return rc;
+}
+
+static SECStatus
+tlsm_nss_shutdown_cb( void *appData, void *nssData )
+{
+ SECStatus rc = SECSuccess;
+
+ SSL_ShutdownServerSessionIDCache();
+ SSL_ClearSessionCache();
+
+ if ( pem_module ) {
+ SECMOD_UnloadUserModule( pem_module );
+ SECMOD_DestroyModule( pem_module );
+ pem_module = NULL;
+ }
return rc;
}
@@ -943,19 +975,24 @@ tlsm_init_pem_module( void )
char *fullname = NULL;
char *configstring = NULL;
- /* get the system dependent library name */
- fullname = PR_GetLibraryName( NULL, pem_library );
- /* Load our PKCS#11 module */
- configstring = PR_smprintf( "library=%s name=PEM parameters=\"\"", fullname );
- PR_smprintf_free( fullname );
+ if ( pem_module ) {
+ return rc;
+ }
- pemMod = SECMOD_LoadUserModule( configstring, NULL, PR_FALSE );
+ /* not loaded - load it */
+ /* get the system dependent library name */
+ fullname = PR_GetLibraryName( NULL, PEM_LIBRARY );
+ /* Load our PKCS#11 module */
+ configstring = PR_smprintf( "library=%s name=" PEM_MODULE " parameters=\"\"", fullname );
+ PL_strfree( fullname );
+
+ pem_module = SECMOD_LoadUserModule( configstring, NULL, PR_FALSE );
PR_smprintf_free( configstring );
- if ( !pemMod || !pemMod->loaded ) {
- if ( pemMod ) {
- SECMOD_DestroyModule( pemMod );
- pemMod = NULL;
+ if ( !pem_module || !pem_module->loaded ) {
+ if ( pem_module ) {
+ SECMOD_DestroyModule( pem_module );
+ pem_module = NULL;
}
rc = -1;
}
@@ -963,6 +1000,29 @@ tlsm_init_pem_module( void )
return rc;
}
+static void
+tlsm_add_pem_obj( tlsm_ctx *ctx, PK11GenericObject *obj )
+{
+ int idx = ctx->tc_n_pem_objs;
+ ctx->tc_n_pem_objs++;
+ ctx->tc_pem_objs = (PK11GenericObject **)
+ PORT_Realloc( ctx->tc_pem_objs, ctx->tc_n_pem_objs * sizeof( PK11GenericObject * ) );
+ ctx->tc_pem_objs[idx] = obj;
+}
+
+static void
+tlsm_free_pem_objs( tlsm_ctx *ctx )
+{
+ /* free in reverse order of allocation */
+ while ( ctx->tc_n_pem_objs-- ) {
+ PK11_DestroyGenericObject( ctx->tc_pem_objs[ctx->tc_n_pem_objs] );
+ ctx->tc_pem_objs[ctx->tc_n_pem_objs] = NULL;
+ }
+ PORT_Free(ctx->tc_pem_objs);
+ ctx->tc_pem_objs = NULL;
+ ctx->tc_n_pem_objs = 0;
+}
+
static int
tlsm_add_cert_from_file( tlsm_ctx *ctx, const char *filename, PRBool isca )
{
@@ -1034,6 +1094,8 @@ tlsm_add_cert_from_file( tlsm_ctx *ctx, const char *filename, PRBool isca )
return -1;
}
+ tlsm_add_pem_obj( ctx, rv );
+
return 0;
}
@@ -1081,13 +1143,16 @@ tlsm_add_key_from_file( tlsm_ctx *ctx, const char *filename )
} else {
/* When adding an encrypted key the PKCS#11 will be set as removed */
/* This will force the token to be seen as re-inserted */
- SECMOD_WaitForAnyTokenEvent( pemMod, 0, 0 );
+ SECMOD_WaitForAnyTokenEvent( pem_module, 0, 0 );
PK11_IsPresent( slot );
retcode = 0;
}
PK11_FreeSlot( slot );
+ if ( !retcode ) {
+ tlsm_add_pem_obj( ctx, rv );
+ }
return retcode;
}
@@ -1180,11 +1245,20 @@ tlsm_deferred_init( void *arg )
int ii;
int nn;
PRErrorCode errcode = 1;
+#ifdef HAVE_NSS_INITCONTEXT
+ NSSInitParameters initParams;
+ NSSInitContext *initctx = NULL;
+#endif
+ SECStatus rc;
- /* NSS support for multi-init is coming */
-#ifndef NSS_MULTI_INIT
+#ifdef HAVE_NSS_INITCONTEXT
+ memset( &initParams, 0, sizeof( initParams ) );
+ initParams.length = sizeof( initParams );
+#endif /* HAVE_NSS_INITCONTEXT */
+
+#ifndef HAVE_NSS_INITCONTEXT
if ( !NSS_IsInitialized() ) {
-#endif /* NSS_MULTI_INIT */
+#endif /* HAVE_NSS_INITCONTEXT */
/*
MOZNSS_DIR will override everything else - you can
always set MOZNSS_DIR to force the use of this
@@ -1199,12 +1273,30 @@ tlsm_deferred_init( void *arg )
securitydirs[nn++] = PR_GetEnv( "MOZNSS_DIR" );
securitydirs[nn++] = lt->lt_cacertdir;
securitydirs[nn++] = PR_GetEnv( "DEFAULT_MOZNSS_DIR" );
- for (ii = 0; ii < nn; ++ii) {
+ for ( ii = 0; ii < nn; ++ii ) {
const char *securitydir = securitydirs[ii];
if ( NULL == securitydir ) {
continue;
}
- if ( NSS_Initialize( securitydir, "", "", SECMOD_DB, NSS_INIT_READONLY ) ) {
+#ifdef HAVE_NSS_INITCONTEXT
+#ifdef INITCONTEXT_HACK
+ if ( !NSS_IsInitialized() && ctx->tc_is_server ) {
+ rc = NSS_Initialize( securitydir, "", "", SECMOD_DB, NSS_INIT_READONLY );
+ } else {
+ initctx = NSS_InitContext( securitydir, "", "", SECMOD_DB,
+ &initParams, NSS_INIT_READONLY );
+ rc = (initctx == NULL) ? SECFailure : SECSuccess;
+ }
+#else
+ initctx = NSS_InitContext( securitydir, "", "", SECMOD_DB,
+ &initParams, NSS_INIT_READONLY );
+ rc = (initctx == NULL) ? SECFailure : SECSuccess;
+#endif
+#else
+ rc = NSS_Initialize( securitydir, "", "", SECMOD_DB, NSS_INIT_READONLY );
+#endif
+
+ if ( rc != SECSuccess ) {
errcode = PORT_GetError();
Debug( LDAP_DEBUG_TRACE,
"TLS: could not initialize moznss using security dir %s - error %d:%s.\n",
@@ -1219,7 +1311,25 @@ tlsm_deferred_init( void *arg )
}
if ( errcode ) { /* no moznss db found, or not using moznss db */
- if ( NSS_NoDB_Init( NULL ) ) {
+#ifdef HAVE_NSS_INITCONTEXT
+ int flags = NSS_INIT_READONLY|NSS_INIT_NOCERTDB|NSS_INIT_NOMODDB;
+#ifdef INITCONTEXT_HACK
+ if ( !NSS_IsInitialized() && ctx->tc_is_server ) {
+ rc = NSS_NoDB_Init( NULL );
+ } else {
+ initctx = NSS_InitContext( "", "", "", SECMOD_DB,
+ &initParams, flags );
+ rc = (initctx == NULL) ? SECFailure : SECSuccess;
+ }
+#else
+ initctx = NSS_InitContext( "", "", "", SECMOD_DB,
+ &initParams, flags );
+ rc = (initctx == NULL) ? SECFailure : SECSuccess;
+#endif
+#else
+ rc = NSS_NoDB_Init( NULL );
+#endif
+ if ( rc != SECSuccess ) {
errcode = PORT_GetError();
Debug( LDAP_DEBUG_ANY,
"TLS: could not initialize moznss - error %d:%s.\n",
@@ -1227,6 +1337,10 @@ tlsm_deferred_init( void *arg )
return -1;
}
+#ifdef HAVE_NSS_INITCONTEXT
+ ctx->tc_initctx = initctx;
+#endif
+
/* initialize the PEM module */
if ( tlsm_init_pem_module() ) {
errcode = PORT_GetError();
@@ -1243,6 +1357,12 @@ tlsm_deferred_init( void *arg )
ctx->tc_using_pem = PR_TRUE;
}
+#ifdef HAVE_NSS_INITCONTEXT
+ if ( !ctx->tc_initctx ) {
+ ctx->tc_initctx = initctx;
+ }
+#endif
+
NSS_SetDomesticPolicy();
PK11_SetPasswordFunc( tlsm_pin_prompt );
@@ -1251,10 +1371,14 @@ tlsm_deferred_init( void *arg )
return -1;
}
- tlsm_did_init = 1; /* we did the init - we should also clean up */
-#ifndef NSS_MULTI_INIT
+ /* register cleanup function */
+ /* delete the old one, if any */
+ NSS_UnregisterShutdown( tlsm_nss_shutdown_cb, NULL );
+ NSS_RegisterShutdown( tlsm_nss_shutdown_cb, NULL );
+
+#ifndef HAVE_NSS_INITCONTEXT
}
-#endif /* NSS_MULTI_INIT */
+#endif /* HAVE_NSS_INITCONTEXT */
return 0;
}
@@ -1422,22 +1546,19 @@ tlsm_get_client_auth_data( void *arg, PRFileDesc *fd,
* the database
*/
static int
-tlsm_clientauth_init( tlsm_ctx *ctx, const char *certname )
+tlsm_clientauth_init( tlsm_ctx *ctx )
{
SECStatus status = SECFailure;
int rc;
- PL_strfree( ctx->tc_certname );
- rc = tlsm_find_and_verify_cert_key( ctx, ctx->tc_model, certname, 0, NULL, NULL );
+ rc = tlsm_find_and_verify_cert_key( ctx, ctx->tc_model, ctx->tc_certname, 0, NULL, NULL );
if ( rc ) {
Debug( LDAP_DEBUG_ANY,
"TLS: error: unable to set up client certificate authentication for "
- "certificate named %s\n", certname, 0, 0 );
+ "certificate named %s\n", ctx->tc_certname, 0, 0 );
return -1;
}
- ctx->tc_certname = PL_strdup( certname );
-
status = SSL_GetClientAuthDataHook( ctx->tc_model,
tlsm_get_client_auth_data,
(void *)ctx );
@@ -1451,21 +1572,6 @@ tlsm_clientauth_init( tlsm_ctx *ctx, const char *certname )
static void
tlsm_destroy( void )
{
- if (pemMod) {
- SECMOD_DestroyModule(pemMod);
- pemMod = NULL;
- }
-
- /* Only if we did the actual initialization */
- if ( tlsm_did_init ) {
- tlsm_did_init = 0;
-
- SSL_ShutdownServerSessionIDCache();
- SSL_ClearSessionCache();
- NSS_Shutdown();
- }
-
- PR_Cleanup();
}
static tls_ctx *
@@ -1489,6 +1595,11 @@ tlsm_ctx_new ( struct ldapoptions *lo )
ctx->tc_verify_cert = PR_FALSE;
ctx->tc_using_pem = PR_FALSE;
ctx->tc_slotname = NULL;
+#ifdef HAVE_NSS_INITCONTEXT
+ ctx->tc_initctx = NULL;
+#endif /* HAVE_NSS_INITCONTEXT */
+ ctx->tc_pem_objs = NULL;
+ ctx->tc_n_pem_objs = 0;
}
return (tls_ctx *)ctx;
}
@@ -1530,7 +1641,13 @@ tlsm_ctx_free ( tls_ctx *ctx )
c->tc_certname = NULL;
PL_strfree( c->tc_pin_file );
c->tc_pin_file = NULL;
- PL_strfree( c->tc_slotname );
+ PL_strfree( c->tc_slotname );
+ tlsm_free_pem_objs( c );
+#ifdef HAVE_NSS_INITCONTEXT
+ if (c->tc_initctx)
+ NSS_ShutdownContext( c->tc_initctx );
+ c->tc_initctx = NULL;
+#endif /* HAVE_NSS_INITCONTEXT */
#ifdef LDAP_R_COMPILE
ldap_pvt_thread_mutex_destroy( &c->tc_refmutex );
#endif
@@ -1568,7 +1685,7 @@ tlsm_deferred_ctx_init( void *arg )
return -1;
}
- ctx->tc_certdb = CERT_GetDefaultCertDB(); /* replace with multi-init db call */
+ ctx->tc_certdb = CERT_GetDefaultCertDB(); /* If there is ever a per-context db, change this */
fd = PR_CreateIOLayerStub( tlsm_layer_id, &tlsm_PR_methods );
if ( fd ) {
@@ -1733,7 +1850,7 @@ tlsm_deferred_ctx_init( void *arg )
ctx->tc_certname, 0, 0 );
return -1;
}
- if ( tlsm_clientauth_init( ctx, ctx->tc_certname ) ) {
+ if ( tlsm_clientauth_init( ctx ) ) {
Debug( LDAP_DEBUG_ANY,
"TLS: error: unable to set up client certificate authentication using %s\n",
ctx->tc_certname, 0, 0 );
diff --git a/external/bsd/openldap/dist/libraries/libldap/turn.c b/external/bsd/openldap/dist/libraries/libldap/turn.c
index 031af6a56f77..83e48ba101f9 100644
--- a/external/bsd/openldap/dist/libraries/libldap/turn.c
+++ b/external/bsd/openldap/dist/libraries/libldap/turn.c
@@ -1,9 +1,9 @@
-/* $NetBSD: turn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: turn.c,v 1.1.1.3 2010/12/12 15:21:40 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/turn.c,v 1.3.2.4 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/turn.c,v 1.3.2.5 2010/04/13 20:23:01 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/txn.c b/external/bsd/openldap/dist/libraries/libldap/txn.c
index 594e8c966279..4586d632fdf7 100644
--- a/external/bsd/openldap/dist/libraries/libldap/txn.c
+++ b/external/bsd/openldap/dist/libraries/libldap/txn.c
@@ -1,9 +1,9 @@
-/* $NetBSD: txn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: txn.c,v 1.1.1.3 2010/12/12 15:21:40 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/txn.c,v 1.8.2.4 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/txn.c,v 1.8.2.5 2010/04/13 20:23:01 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2006-2009 The OpenLDAP Foundation.
+ * Copyright 2006-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/unbind.c b/external/bsd/openldap/dist/libraries/libldap/unbind.c
index b77c325700bd..4d475f28c78b 100644
--- a/external/bsd/openldap/dist/libraries/libldap/unbind.c
+++ b/external/bsd/openldap/dist/libraries/libldap/unbind.c
@@ -1,9 +1,9 @@
-/* $NetBSD: unbind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: unbind.c,v 1.1.1.3 2010/12/12 15:21:40 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/unbind.c,v 1.56.2.6 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/unbind.c,v 1.56.2.8 2010/06/10 17:39:48 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -156,6 +156,11 @@ ldap_ld_free(
LDAP_FREE( ld->ld_options.ldo_peer );
ld->ld_options.ldo_peer = NULL;
}
+
+ if ( ld->ld_options.ldo_cldapdn != NULL ) {
+ LDAP_FREE( ld->ld_options.ldo_cldapdn );
+ ld->ld_options.ldo_cldapdn = NULL;
+ }
#endif
#ifdef HAVE_CYRUS_SASL
diff --git a/external/bsd/openldap/dist/libraries/libldap/url.c b/external/bsd/openldap/dist/libraries/libldap/url.c
index 27e1a0ebd072..50e7cc15664a 100644
--- a/external/bsd/openldap/dist/libraries/libldap/url.c
+++ b/external/bsd/openldap/dist/libraries/libldap/url.c
@@ -1,10 +1,10 @@
-/* $NetBSD: url.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: url.c,v 1.1.1.3 2010/12/12 15:21:41 adam Exp $ */
/* LIBLDAP url.c -- LDAP URL (RFC 4516) related routines */
-/* OpenLDAP: pkg/ldap/libraries/libldap/url.c,v 1.94.2.10 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/url.c,v 1.94.2.11 2010/04/13 20:23:01 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/urltest.c b/external/bsd/openldap/dist/libraries/libldap/urltest.c
index e72f8133a69c..eb84b2b0daa2 100644
--- a/external/bsd/openldap/dist/libraries/libldap/urltest.c
+++ b/external/bsd/openldap/dist/libraries/libldap/urltest.c
@@ -1,10 +1,10 @@
-/* $NetBSD: urltest.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: urltest.c,v 1.1.1.3 2010/12/12 15:21:41 adam Exp $ */
/* urltest.c -- OpenLDAP URL API Test Program */
-/* OpenLDAP: pkg/ldap/libraries/libldap/urltest.c,v 1.1.2.5 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/urltest.c,v 1.1.2.6 2010/04/13 20:23:01 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/utf-8-conv.c b/external/bsd/openldap/dist/libraries/libldap/utf-8-conv.c
index 2a0c91729114..e65d73e4acce 100644
--- a/external/bsd/openldap/dist/libraries/libldap/utf-8-conv.c
+++ b/external/bsd/openldap/dist/libraries/libldap/utf-8-conv.c
@@ -1,9 +1,9 @@
-/* $NetBSD: utf-8-conv.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: utf-8-conv.c,v 1.1.1.3 2010/12/12 15:21:41 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/utf-8-conv.c,v 1.16.2.5 2009/08/25 22:58:08 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/utf-8-conv.c,v 1.16.2.6 2010/04/13 20:23:01 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/utf-8.c b/external/bsd/openldap/dist/libraries/libldap/utf-8.c
index 6b4db7ab6cec..a4e6bc25271b 100644
--- a/external/bsd/openldap/dist/libraries/libldap/utf-8.c
+++ b/external/bsd/openldap/dist/libraries/libldap/utf-8.c
@@ -1,10 +1,10 @@
-/* $NetBSD: utf-8.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: utf-8.c,v 1.1.1.3 2010/12/12 15:21:41 adam Exp $ */
/* utf-8.c -- Basic UTF-8 routines */
-/* OpenLDAP: pkg/ldap/libraries/libldap/utf-8.c,v 1.36.2.4 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/utf-8.c,v 1.36.2.5 2010/04/13 20:23:01 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/util-int.c b/external/bsd/openldap/dist/libraries/libldap/util-int.c
index 6d009d6e6125..50cda9d99a12 100644
--- a/external/bsd/openldap/dist/libraries/libldap/util-int.c
+++ b/external/bsd/openldap/dist/libraries/libldap/util-int.c
@@ -1,9 +1,9 @@
-/* $NetBSD: util-int.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: util-int.c,v 1.1.1.3 2010/12/12 15:21:41 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/util-int.c,v 1.57.2.5 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/util-int.c,v 1.57.2.7 2010/04/19 16:53:01 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 1998 A. Hartgers.
* All rights reserved.
*
@@ -68,6 +68,20 @@ extern int h_errno;
static ldap_pvt_thread_mutex_t ldap_int_ctime_mutex;
# endif
+/* USE_GMTIME_R and USE_LOCALTIME_R defined in ldap_pvt.h */
+
+#ifdef LDAP_DEVEL
+ /* to be released with 2.5 */
+#if !defined( USE_GMTIME_R ) || !defined( USE_LOCALTIME_R )
+ /* we use the same mutex for gmtime(3) and localtime(3)
+ * because implementations may use the same buffer
+ * for both functions */
+ static ldap_pvt_thread_mutex_t ldap_int_gmtime_mutex;
+#endif
+#else /* ! LDAP_DEVEL */
+ ldap_pvt_thread_mutex_t ldap_int_gmtime_mutex;
+#endif /* ! LDAP_DEVEL */
+
# if defined(HAVE_GETHOSTBYNAME_R) && \
(GETHOSTBYNAME_R_NARGS < 5) || (6 < GETHOSTBYNAME_R_NARGS)
/* Don't know how to handle this version, pretend it's not there */
@@ -109,6 +123,212 @@ char *ldap_pvt_ctime( const time_t *tp, char *buf )
#endif
}
+#if !defined( USE_GMTIME_R ) || !defined( USE_LOCALTIME_R )
+int
+ldap_pvt_gmtime_lock( void )
+{
+# ifndef LDAP_R_COMPILE
+ return 0;
+# else /* LDAP_R_COMPILE */
+ return ldap_pvt_thread_mutex_lock( &ldap_int_gmtime_mutex );
+# endif /* LDAP_R_COMPILE */
+}
+
+int
+ldap_pvt_gmtime_unlock( void )
+{
+# ifndef LDAP_R_COMPILE
+ return 0;
+# else /* LDAP_R_COMPILE */
+ return ldap_pvt_thread_mutex_unlock( &ldap_int_gmtime_mutex );
+# endif /* LDAP_R_COMPILE */
+}
+#endif /* !USE_GMTIME_R || !USE_LOCALTIME_R */
+
+#ifndef USE_GMTIME_R
+struct tm *
+ldap_pvt_gmtime( const time_t *timep, struct tm *result )
+{
+ struct tm *tm_ptr;
+
+# ifdef LDAP_R_COMPILE
+ ldap_pvt_thread_mutex_lock( &ldap_int_gmtime_mutex );
+# endif /* LDAP_R_COMPILE */
+
+ tm_ptr = gmtime( timep );
+ if ( tm_ptr == NULL ) {
+ result = NULL;
+
+ } else {
+ *result = *tm_ptr;
+ }
+
+# ifdef LDAP_R_COMPILE
+ ldap_pvt_thread_mutex_unlock( &ldap_int_gmtime_mutex );
+# endif /* LDAP_R_COMPILE */
+
+ return result;
+}
+#endif /* !USE_GMTIME_R */
+
+#ifndef USE_LOCALTIME_R
+struct tm *
+ldap_pvt_localtime( const time_t *timep, struct tm *result )
+{
+ struct tm *tm_ptr;
+
+# ifdef LDAP_R_COMPILE
+ ldap_pvt_thread_mutex_lock( &ldap_int_gmtime_mutex );
+# endif /* LDAP_R_COMPILE */
+
+ tm_ptr = localtime( timep );
+ if ( tm_ptr == NULL ) {
+ result = NULL;
+
+ } else {
+ *result = *tm_ptr;
+ }
+
+# ifdef LDAP_R_COMPILE
+ ldap_pvt_thread_mutex_unlock( &ldap_int_gmtime_mutex );
+# endif /* LDAP_R_COMPILE */
+
+ return result;
+}
+#endif /* !USE_LOCALTIME_R */
+
+/* return a broken out time, with microseconds
+ * Must be mutex-protected.
+ */
+#ifdef _WIN32
+/* Windows SYSTEMTIME only has 10 millisecond resolution, so we
+ * also need to use a high resolution timer to get microseconds.
+ * This is pretty clunky.
+ */
+void
+ldap_pvt_gettime( struct lutil_tm *tm )
+{
+ static LARGE_INTEGER cFreq;
+ static LARGE_INTEGER prevCount;
+ static int subs;
+ static int offset;
+ LARGE_INTEGER count;
+ SYSTEMTIME st;
+
+ GetSystemTime( &st );
+ QueryPerformanceCounter( &count );
+
+ /* It shouldn't ever go backwards, but multiple CPUs might
+ * be able to hit in the same tick.
+ */
+ if ( count.QuadPart <= prevCount.QuadPart ) {
+ subs++;
+ } else {
+ subs = 0;
+ prevCount = count;
+ }
+
+ /* We assume Windows has at least a vague idea of
+ * when a second begins. So we align our microsecond count
+ * with the Windows millisecond count using this offset.
+ * We retain the submillisecond portion of our own count.
+ *
+ * Note - this also assumes that the relationship between
+ * the PerformanceCouunter and SystemTime stays constant;
+ * that assumption breaks if the SystemTime is adjusted by
+ * an external action.
+ */
+ if ( !cFreq.QuadPart ) {
+ long long t;
+ int usec;
+ QueryPerformanceFrequency( &cFreq );
+
+ /* just get sub-second portion of counter */
+ t = count.QuadPart % cFreq.QuadPart;
+
+ /* convert to microseconds */
+ t *= 1000000;
+ usec = t / cFreq.QuadPart;
+
+ offset = usec - st.wMilliseconds * 1000;
+ }
+
+ tm->tm_usub = subs;
+
+ /* convert to microseconds */
+ count.QuadPart %= cFreq.QuadPart;
+ count.QuadPart *= 1000000;
+ count.QuadPart /= cFreq.QuadPart;
+ count.QuadPart -= offset;
+
+ tm->tm_usec = count.QuadPart % 1000000;
+ if ( tm->tm_usec < 0 )
+ tm->tm_usec += 1000000;
+
+ /* any difference larger than microseconds is
+ * already reflected in st
+ */
+
+ tm->tm_sec = st.wSecond;
+ tm->tm_min = st.wMinute;
+ tm->tm_hour = st.wHour;
+ tm->tm_mday = st.wDay;
+ tm->tm_mon = st.wMonth - 1;
+ tm->tm_year = st.wYear - 1900;
+}
+#else
+void
+ldap_pvt_gettime( struct lutil_tm *ltm )
+{
+ struct timeval tv;
+ static struct timeval prevTv;
+ static int subs;
+
+ struct tm tm;
+ time_t t;
+
+ gettimeofday( &tv, NULL );
+ t = tv.tv_sec;
+
+ if ( tv.tv_sec < prevTv.tv_sec
+ || ( tv.tv_sec == prevTv.tv_sec && tv.tv_usec == prevTv.tv_usec )) {
+ subs++;
+ } else {
+ subs = 0;
+ prevTv = tv;
+ }
+
+ ltm->tm_usub = subs;
+
+ ldap_pvt_gmtime( &t, &tm );
+
+ ltm->tm_sec = tm.tm_sec;
+ ltm->tm_min = tm.tm_min;
+ ltm->tm_hour = tm.tm_hour;
+ ltm->tm_mday = tm.tm_mday;
+ ltm->tm_mon = tm.tm_mon;
+ ltm->tm_year = tm.tm_year;
+ ltm->tm_usec = tv.tv_usec;
+}
+#endif
+
+size_t
+ldap_pvt_csnstr(char *buf, size_t len, unsigned int replica, unsigned int mod)
+{
+ struct lutil_tm tm;
+ int n;
+
+ ldap_pvt_gettime( &tm );
+
+ n = snprintf( buf, len,
+ "%4d%02d%02d%02d%02d%02d.%06dZ#%06x#%03x#%06x",
+ tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour,
+ tm.tm_min, tm.tm_sec, tm.tm_usec, tm.tm_usub, replica, mod );
+
+ if( n < 0 ) return 0;
+ return ( (size_t) n < len ) ? n : 0;
+}
+
#define BUFSTART (1024-32)
#define BUFMAX (32*1024-32)
@@ -407,6 +627,9 @@ void ldap_int_utils_init( void )
#ifdef LDAP_R_COMPILE
#if !defined( USE_CTIME_R ) && !defined( HAVE_REENTRANT_FUNCTIONS )
ldap_pvt_thread_mutex_init( &ldap_int_ctime_mutex );
+#endif
+#if !defined( USE_GMTIME_R ) && !defined( USE_LOCALTIME_R )
+ ldap_pvt_thread_mutex_init( &ldap_int_gmtime_mutex );
#endif
ldap_pvt_thread_mutex_init( &ldap_int_resolv_mutex );
diff --git a/external/bsd/openldap/dist/libraries/libldap/vlvctrl.c b/external/bsd/openldap/dist/libraries/libldap/vlvctrl.c
index c4872ad6c194..bd7a52382ca6 100644
--- a/external/bsd/openldap/dist/libraries/libldap/vlvctrl.c
+++ b/external/bsd/openldap/dist/libraries/libldap/vlvctrl.c
@@ -1,9 +1,9 @@
-/* $NetBSD: vlvctrl.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: vlvctrl.c,v 1.1.1.3 2010/12/12 15:21:41 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/vlvctrl.c,v 1.21.2.5 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/vlvctrl.c,v 1.21.2.6 2010/04/13 20:23:02 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap/whoami.c b/external/bsd/openldap/dist/libraries/libldap/whoami.c
index 9e476d24871d..bdfc34efae92 100644
--- a/external/bsd/openldap/dist/libraries/libldap/whoami.c
+++ b/external/bsd/openldap/dist/libraries/libldap/whoami.c
@@ -1,9 +1,9 @@
-/* $NetBSD: whoami.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: whoami.c,v 1.1.1.3 2010/12/12 15:21:41 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap/whoami.c,v 1.10.2.4 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap/whoami.c,v 1.10.2.5 2010/04/13 20:23:02 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/Makefile.in b/external/bsd/openldap/dist/libraries/libldap_r/Makefile.in
index 5b025d2e9c9c..6b8d7bc42628 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/Makefile.in
+++ b/external/bsd/openldap/dist/libraries/libldap_r/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for LDAP -lldap
-# OpenLDAP: pkg/ldap/libraries/libldap_r/Makefile.in,v 1.79.2.10 2009/01/27 00:03:04 quanah Exp
+# OpenLDAP: pkg/ldap/libraries/libldap_r/Makefile.in,v 1.79.2.11 2010/04/13 20:23:02 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/ldap_thr_debug.h b/external/bsd/openldap/dist/libraries/libldap_r/ldap_thr_debug.h
index 4c46900256fe..ce171a6d18d5 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/ldap_thr_debug.h
+++ b/external/bsd/openldap/dist/libraries/libldap_r/ldap_thr_debug.h
@@ -1,10 +1,10 @@
-/* $NetBSD: ldap_thr_debug.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldap_thr_debug.h,v 1.1.1.3 2010/12/12 15:21:42 adam Exp $ */
/* ldap_thr_debug.h - preprocessor magic for LDAP_THREAD_DEBUG */
-/* OpenLDAP: pkg/ldap/libraries/libldap_r/ldap_thr_debug.h,v 1.3.2.6 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap_r/ldap_thr_debug.h,v 1.3.2.7 2010/04/13 20:23:02 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/rdwr.c b/external/bsd/openldap/dist/libraries/libldap_r/rdwr.c
index b992529c5957..374204857b03 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/rdwr.c
+++ b/external/bsd/openldap/dist/libraries/libldap_r/rdwr.c
@@ -1,9 +1,9 @@
-/* $NetBSD: rdwr.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: rdwr.c,v 1.1.1.3 2010/12/12 15:21:42 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap_r/rdwr.c,v 1.28.2.4 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap_r/rdwr.c,v 1.28.2.5 2010/04/13 20:23:02 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/rmutex.c b/external/bsd/openldap/dist/libraries/libldap_r/rmutex.c
index ebd14feb8ecc..236719a5def8 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/rmutex.c
+++ b/external/bsd/openldap/dist/libraries/libldap_r/rmutex.c
@@ -1,9 +1,9 @@
-/* $NetBSD: rmutex.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: rmutex.c,v 1.1.1.3 2010/12/12 15:21:42 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap_r/rmutex.c,v 1.2.2.5 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap_r/rmutex.c,v 1.2.2.6 2010/04/13 20:23:02 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2006-2009 The OpenLDAP Foundation.
+ * Copyright 2006-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/rq.c b/external/bsd/openldap/dist/libraries/libldap_r/rq.c
index 0a5204b46759..2a2c340a2137 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/rq.c
+++ b/external/bsd/openldap/dist/libraries/libldap_r/rq.c
@@ -1,9 +1,9 @@
-/* $NetBSD: rq.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: rq.c,v 1.1.1.3 2010/12/12 15:21:42 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap_r/rq.c,v 1.23.2.5 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap_r/rq.c,v 1.23.2.6 2010/04/13 20:23:02 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 2003 IBM Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/thr_cthreads.c b/external/bsd/openldap/dist/libraries/libldap_r/thr_cthreads.c
index d45312811b61..5cb2268be459 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/thr_cthreads.c
+++ b/external/bsd/openldap/dist/libraries/libldap_r/thr_cthreads.c
@@ -1,10 +1,10 @@
-/* $NetBSD: thr_cthreads.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: thr_cthreads.c,v 1.1.1.3 2010/12/12 15:21:42 adam Exp $ */
/* thr_cthreads.c - wrapper for mach cthreads */
-/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_cthreads.c,v 1.20.2.5 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_cthreads.c,v 1.20.2.6 2010/04/13 20:23:02 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/thr_debug.c b/external/bsd/openldap/dist/libraries/libldap_r/thr_debug.c
index 0048e3573da4..a046ff476ef6 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/thr_debug.c
+++ b/external/bsd/openldap/dist/libraries/libldap_r/thr_debug.c
@@ -1,10 +1,10 @@
-/* $NetBSD: thr_debug.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: thr_debug.c,v 1.1.1.3 2010/12/12 15:21:43 adam Exp $ */
/* thr_debug.c - wrapper around the chosen thread wrapper, for debugging. */
-/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_debug.c,v 1.5.2.8 2009/08/02 22:07:31 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_debug.c,v 1.5.2.9 2010/04/13 20:23:02 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/thr_lwp.c b/external/bsd/openldap/dist/libraries/libldap_r/thr_lwp.c
index 3c02693e705b..9bb8f6346dfb 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/thr_lwp.c
+++ b/external/bsd/openldap/dist/libraries/libldap_r/thr_lwp.c
@@ -1,10 +1,10 @@
-/* $NetBSD: thr_lwp.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: thr_lwp.c,v 1.1.1.3 2010/12/12 15:21:43 adam Exp $ */
/* thr_lwp.c - wrappers around SunOS LWP threads */
-/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_lwp.c,v 1.20.2.4 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_lwp.c,v 1.20.2.5 2010/04/13 20:23:02 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/thr_nt.c b/external/bsd/openldap/dist/libraries/libldap_r/thr_nt.c
index 5ed03fb14f49..e780ebd44797 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/thr_nt.c
+++ b/external/bsd/openldap/dist/libraries/libldap_r/thr_nt.c
@@ -1,10 +1,10 @@
-/* $NetBSD: thr_nt.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: thr_nt.c,v 1.1.1.3 2010/12/12 15:21:43 adam Exp $ */
/* thr_nt.c - wrapper around NT threads */
-/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_nt.c,v 1.32.2.6 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_nt.c,v 1.32.2.7 2010/04/13 20:23:03 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/thr_posix.c b/external/bsd/openldap/dist/libraries/libldap_r/thr_posix.c
index 47bc75595b73..77596304254e 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/thr_posix.c
+++ b/external/bsd/openldap/dist/libraries/libldap_r/thr_posix.c
@@ -1,10 +1,10 @@
-/* $NetBSD: thr_posix.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: thr_posix.c,v 1.1.1.3 2010/12/12 15:21:43 adam Exp $ */
/* thr_posix.c - wrapper around posix and posixish thread implementations. */
-/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_posix.c,v 1.46.2.6 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_posix.c,v 1.46.2.7 2010/04/13 20:23:03 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/thr_pth.c b/external/bsd/openldap/dist/libraries/libldap_r/thr_pth.c
index f2a5af1b4582..fc77a9bd0ae4 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/thr_pth.c
+++ b/external/bsd/openldap/dist/libraries/libldap_r/thr_pth.c
@@ -1,10 +1,10 @@
-/* $NetBSD: thr_pth.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: thr_pth.c,v 1.1.1.3 2010/12/12 15:21:43 adam Exp $ */
/* thr_pth.c - wrappers around GNU Pth */
-/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_pth.c,v 1.16.2.5 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_pth.c,v 1.16.2.6 2010/04/13 20:23:03 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/thr_stub.c b/external/bsd/openldap/dist/libraries/libldap_r/thr_stub.c
index 1c06b1a037d9..e373172fcfab 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/thr_stub.c
+++ b/external/bsd/openldap/dist/libraries/libldap_r/thr_stub.c
@@ -1,10 +1,10 @@
-/* $NetBSD: thr_stub.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: thr_stub.c,v 1.1.1.4 2010/12/12 15:21:43 adam Exp $ */
/* thr_stub.c - stubs for the threads */
-/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_stub.c,v 1.27.2.10 2009/06/27 18:47:17 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_stub.c,v 1.27.2.11 2010/04/13 20:23:03 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/thr_thr.c b/external/bsd/openldap/dist/libraries/libldap_r/thr_thr.c
index 42faf760ae72..ab0c19fdb035 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/thr_thr.c
+++ b/external/bsd/openldap/dist/libraries/libldap_r/thr_thr.c
@@ -1,10 +1,10 @@
-/* $NetBSD: thr_thr.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: thr_thr.c,v 1.1.1.3 2010/12/12 15:21:43 adam Exp $ */
/* thr_thr.c - wrappers around solaris threads */
-/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_thr.c,v 1.18.2.5 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap_r/thr_thr.c,v 1.18.2.6 2010/04/13 20:23:03 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/threads.c b/external/bsd/openldap/dist/libraries/libldap_r/threads.c
index e7bf677ecba2..8dc3b00f8211 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/threads.c
+++ b/external/bsd/openldap/dist/libraries/libldap_r/threads.c
@@ -1,9 +1,9 @@
-/* $NetBSD: threads.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: threads.c,v 1.1.1.3 2010/12/12 15:21:43 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap_r/threads.c,v 1.18.2.5 2009/01/22 00:00:56 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap_r/threads.c,v 1.18.2.6 2010/04/13 20:23:03 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/libldap_r/tpool.c b/external/bsd/openldap/dist/libraries/libldap_r/tpool.c
index 119795e5772a..a0a95c970c4f 100644
--- a/external/bsd/openldap/dist/libraries/libldap_r/tpool.c
+++ b/external/bsd/openldap/dist/libraries/libldap_r/tpool.c
@@ -1,9 +1,9 @@
-/* $NetBSD: tpool.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: tpool.c,v 1.1.1.3 2010/12/12 15:21:43 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/libldap_r/tpool.c,v 1.52.2.18 2009/06/27 17:53:02 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/libldap_r/tpool.c,v 1.52.2.19 2010/04/13 20:23:03 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblunicode/Makefile.in b/external/bsd/openldap/dist/libraries/liblunicode/Makefile.in
index acd9e4394ba4..418160c763aa 100644
--- a/external/bsd/openldap/dist/libraries/liblunicode/Makefile.in
+++ b/external/bsd/openldap/dist/libraries/liblunicode/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for LDAP -llunicode
-# OpenLDAP: pkg/ldap/libraries/liblunicode/Makefile.in,v 1.31.2.6 2009/01/22 00:00:57 kurt Exp
+# OpenLDAP: pkg/ldap/libraries/liblunicode/Makefile.in,v 1.31.2.7 2010/04/13 20:23:03 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucdata.c b/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucdata.c
index 9e612ee0528c..0422fa4f5a71 100644
--- a/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucdata.c
+++ b/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucdata.c
@@ -1,9 +1,9 @@
-/* $NetBSD: ucdata.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ucdata.c,v 1.1.1.3 2010/12/12 15:21:56 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblunicode/ucdata/ucdata.c,v 1.32.2.4 2009/01/22 00:00:57 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblunicode/ucdata/ucdata.c,v 1.32.2.5 2010/04/13 20:23:04 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucdata.h b/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucdata.h
index 3c41c1ef7f70..a3aab636b775 100644
--- a/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucdata.h
+++ b/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucdata.h
@@ -1,9 +1,9 @@
-/* $NetBSD: ucdata.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ucdata.h,v 1.1.1.3 2010/12/12 15:21:57 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblunicode/ucdata/ucdata.h,v 1.19.2.4 2009/01/22 00:00:57 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblunicode/ucdata/ucdata.h,v 1.19.2.5 2010/04/13 20:23:04 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucgendat.c b/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucgendat.c
index 3bfd1f65335c..f042100e698a 100644
--- a/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucgendat.c
+++ b/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucgendat.c
@@ -1,9 +1,9 @@
-/* $NetBSD: ucgendat.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ucgendat.c,v 1.1.1.3 2010/12/12 15:21:57 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblunicode/ucdata/ucgendat.c,v 1.39.2.4 2009/01/22 00:00:57 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblunicode/ucdata/ucgendat.c,v 1.39.2.5 2010/04/13 20:23:04 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucpgba.c b/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucpgba.c
index 71b064109a10..3080b7bf7e16 100644
--- a/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucpgba.c
+++ b/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucpgba.c
@@ -1,9 +1,9 @@
-/* $NetBSD: ucpgba.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ucpgba.c,v 1.1.1.3 2010/12/12 15:21:58 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblunicode/ucdata/ucpgba.c,v 1.7.2.4 2009/01/22 00:00:57 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblunicode/ucdata/ucpgba.c,v 1.7.2.5 2010/04/13 20:23:04 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucpgba.h b/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucpgba.h
index 82bd405ac320..c4b083e64a27 100644
--- a/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucpgba.h
+++ b/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ucpgba.h
@@ -1,9 +1,9 @@
-/* $NetBSD: ucpgba.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ucpgba.h,v 1.1.1.3 2010/12/12 15:21:58 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblunicode/ucdata/ucpgba.h,v 1.8.2.4 2009/01/22 00:00:57 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblunicode/ucdata/ucpgba.h,v 1.8.2.5 2010/04/13 20:23:04 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblunicode/ucstr.c b/external/bsd/openldap/dist/libraries/liblunicode/ucstr.c
index 5f6ac0fc9c2c..b669d1b07f19 100644
--- a/external/bsd/openldap/dist/libraries/liblunicode/ucstr.c
+++ b/external/bsd/openldap/dist/libraries/liblunicode/ucstr.c
@@ -1,9 +1,9 @@
-/* $NetBSD: ucstr.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ucstr.c,v 1.1.1.3 2010/12/12 15:21:44 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblunicode/ucstr.c,v 1.37.2.5 2009/01/22 00:00:57 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblunicode/ucstr.c,v 1.37.2.6 2010/04/13 20:23:03 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblunicode/ure/ure.c b/external/bsd/openldap/dist/libraries/liblunicode/ure/ure.c
index 2384b5481f40..7fd0d9156383 100644
--- a/external/bsd/openldap/dist/libraries/liblunicode/ure/ure.c
+++ b/external/bsd/openldap/dist/libraries/liblunicode/ure/ure.c
@@ -1,9 +1,9 @@
-/* $NetBSD: ure.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ure.c,v 1.1.1.3 2010/12/12 15:22:07 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblunicode/ure/ure.c,v 1.17.2.4 2009/01/22 00:00:57 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblunicode/ure/ure.c,v 1.17.2.5 2010/04/13 20:23:04 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblunicode/ure/ure.h b/external/bsd/openldap/dist/libraries/liblunicode/ure/ure.h
index 9ba1e713e319..73c663e0af94 100644
--- a/external/bsd/openldap/dist/libraries/liblunicode/ure/ure.h
+++ b/external/bsd/openldap/dist/libraries/liblunicode/ure/ure.h
@@ -1,9 +1,9 @@
-/* $NetBSD: ure.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ure.h,v 1.1.1.3 2010/12/12 15:22:07 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblunicode/ure/ure.h,v 1.13.2.4 2009/01/22 00:00:57 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblunicode/ure/ure.h,v 1.13.2.5 2010/04/13 20:23:04 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblunicode/ure/urestubs.c b/external/bsd/openldap/dist/libraries/liblunicode/ure/urestubs.c
index 42d512318fb5..a19ce5c81e00 100644
--- a/external/bsd/openldap/dist/libraries/liblunicode/ure/urestubs.c
+++ b/external/bsd/openldap/dist/libraries/liblunicode/ure/urestubs.c
@@ -1,9 +1,9 @@
-/* $NetBSD: urestubs.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: urestubs.c,v 1.1.1.3 2010/12/12 15:22:07 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblunicode/ure/urestubs.c,v 1.14.2.4 2009/01/22 00:00:57 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblunicode/ure/urestubs.c,v 1.14.2.5 2010/04/13 20:23:04 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblunicode/utbm/utbm.c b/external/bsd/openldap/dist/libraries/liblunicode/utbm/utbm.c
index 5012c04dcd5b..691cfe038bb7 100644
--- a/external/bsd/openldap/dist/libraries/liblunicode/utbm/utbm.c
+++ b/external/bsd/openldap/dist/libraries/liblunicode/utbm/utbm.c
@@ -1,9 +1,9 @@
-/* $NetBSD: utbm.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: utbm.c,v 1.1.1.3 2010/12/12 15:22:07 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblunicode/utbm/utbm.c,v 1.7.2.4 2009/01/22 00:00:57 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblunicode/utbm/utbm.c,v 1.7.2.5 2010/04/13 20:23:04 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblunicode/utbm/utbm.h b/external/bsd/openldap/dist/libraries/liblunicode/utbm/utbm.h
index ff5cd0dce160..f4873b09dfce 100644
--- a/external/bsd/openldap/dist/libraries/liblunicode/utbm/utbm.h
+++ b/external/bsd/openldap/dist/libraries/liblunicode/utbm/utbm.h
@@ -1,9 +1,9 @@
-/* $NetBSD: utbm.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: utbm.h,v 1.1.1.3 2010/12/12 15:22:07 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblunicode/utbm/utbm.h,v 1.8.2.4 2009/01/22 00:00:57 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblunicode/utbm/utbm.h,v 1.8.2.5 2010/04/13 20:23:04 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblunicode/utbm/utbmstub.c b/external/bsd/openldap/dist/libraries/liblunicode/utbm/utbmstub.c
index 70dee04aff14..882d18cb0dd5 100644
--- a/external/bsd/openldap/dist/libraries/liblunicode/utbm/utbmstub.c
+++ b/external/bsd/openldap/dist/libraries/liblunicode/utbm/utbmstub.c
@@ -1,9 +1,9 @@
-/* $NetBSD: utbmstub.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: utbmstub.c,v 1.1.1.3 2010/12/12 15:22:07 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblunicode/utbm/utbmstub.c,v 1.6.2.4 2009/01/22 00:00:57 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblunicode/utbm/utbmstub.c,v 1.6.2.5 2010/04/13 20:23:04 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/Makefile.in b/external/bsd/openldap/dist/libraries/liblutil/Makefile.in
index 39b1a9af3772..d81d1f3d1d40 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/Makefile.in
+++ b/external/bsd/openldap/dist/libraries/liblutil/Makefile.in
@@ -1,8 +1,8 @@
# Makefile for -llutil
-# OpenLDAP: pkg/ldap/libraries/liblutil/Makefile.in,v 1.38.2.5 2009/02/05 20:10:59 quanah Exp
+# OpenLDAP: pkg/ldap/libraries/liblutil/Makefile.in,v 1.38.2.7 2010/04/19 16:53:01 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -27,14 +27,14 @@ UNIX_OBJS = detach.o
XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA)
-SRCS = base64.c csn.c entropy.c sasl.c signal.c hash.c passfile.c \
+SRCS = base64.c entropy.c sasl.c signal.c hash.c passfile.c \
md5.c passwd.c sha1.c getpass.c lockf.c utils.c uuid.c sockpair.c \
avl.c tavl.c ldif.c fetch.c \
testavl.c \
meter.c \
@LIBSRCS@ $(@PLAT@_SRCS)
-OBJS = base64.o csn.o entropy.o sasl.o signal.o hash.o passfile.o \
+OBJS = base64.o entropy.o sasl.o signal.o hash.o passfile.o \
md5.o passwd.o sha1.o getpass.o lockf.o utils.o uuid.o sockpair.o \
avl.o tavl.o ldif.o fetch.o \
meter.o \
diff --git a/external/bsd/openldap/dist/libraries/liblutil/avl.c b/external/bsd/openldap/dist/libraries/liblutil/avl.c
index 101f115762f6..6662a98373cd 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/avl.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/avl.c
@@ -1,10 +1,10 @@
-/* $NetBSD: avl.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: avl.c,v 1.1.1.3 2010/12/12 15:22:07 adam Exp $ */
/* avl.c - routines to implement an avl tree */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/avl.c,v 1.9.2.5 2009/01/30 20:12:54 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/avl.c,v 1.9.2.6 2010/04/13 20:23:05 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/base64.c b/external/bsd/openldap/dist/libraries/liblutil/base64.c
index 2b0b6516941b..536d49f26945 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/base64.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/base64.c
@@ -1,10 +1,10 @@
-/* $NetBSD: base64.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: base64.c,v 1.1.1.3 2010/12/12 15:22:08 adam Exp $ */
/* base64.c -- routines to encode/decode base64 data */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/base64.c,v 1.15.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/base64.c,v 1.15.2.5 2010/04/13 20:23:05 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 1998-2003 Kurt D. Zeilenga.
* Portions Copyright 1995 IBM Corporation.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/libraries/liblutil/detach.c b/external/bsd/openldap/dist/libraries/liblutil/detach.c
index 658ac395fcb0..e3919ff9a86f 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/detach.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/detach.c
@@ -1,10 +1,10 @@
-/* $NetBSD: detach.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: detach.c,v 1.1.1.3 2010/12/12 15:22:08 adam Exp $ */
/* detach.c -- routines to daemonize a process */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/detach.c,v 1.18.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/detach.c,v 1.18.2.5 2010/04/13 20:23:05 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/entropy.c b/external/bsd/openldap/dist/libraries/liblutil/entropy.c
index 06020474ac7f..0edddd20ae92 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/entropy.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/entropy.c
@@ -1,10 +1,10 @@
-/* $NetBSD: entropy.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: entropy.c,v 1.1.1.3 2010/12/12 15:22:08 adam Exp $ */
/* entropy.c -- routines for providing pseudo-random data */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/entropy.c,v 1.29.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/entropy.c,v 1.29.2.5 2010/04/13 20:23:05 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Kurt D. Zeilenga.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/libraries/liblutil/fetch.c b/external/bsd/openldap/dist/libraries/liblutil/fetch.c
index c93079c23a4c..963bd0f9d6b2 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/fetch.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/fetch.c
@@ -1,10 +1,10 @@
-/* $NetBSD: fetch.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: fetch.c,v 1.1.1.3 2010/12/12 15:22:08 adam Exp $ */
/* fetch.c - routines for fetching data at URLs */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/fetch.c,v 1.10.2.6 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/fetch.c,v 1.10.2.7 2010/04/13 20:23:05 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Kurt D. Zeilenga.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/libraries/liblutil/getopt.c b/external/bsd/openldap/dist/libraries/liblutil/getopt.c
index e05a1852b872..e22fb3d689a0 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/getopt.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/getopt.c
@@ -1,10 +1,10 @@
-/* $NetBSD: getopt.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: getopt.c,v 1.1.1.3 2010/12/12 15:22:08 adam Exp $ */
/* getopt.c -- replacement getopt(3) routines */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/getopt.c,v 1.16.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/getopt.c,v 1.16.2.5 2010/04/13 20:23:05 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 1998-2003 Kurt D. Zeilenga.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/libraries/liblutil/getpass.c b/external/bsd/openldap/dist/libraries/liblutil/getpass.c
index f0686b1281ac..bfa0fe917643 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/getpass.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/getpass.c
@@ -1,10 +1,10 @@
-/* $NetBSD: getpass.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: getpass.c,v 1.1.1.3 2010/12/12 15:22:08 adam Exp $ */
/* getpass.c -- get password from user */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/getpass.c,v 1.17.2.6 2009/08/25 23:09:33 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/getpass.c,v 1.17.2.7 2010/04/13 20:23:05 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 1998-2003 Kurt D. Zeilenga.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/libraries/liblutil/getpeereid.c b/external/bsd/openldap/dist/libraries/liblutil/getpeereid.c
index b24aa701b154..31d399d007d9 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/getpeereid.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/getpeereid.c
@@ -1,10 +1,10 @@
-/* $NetBSD: getpeereid.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: getpeereid.c,v 1.1.1.4 2010/12/12 15:22:08 adam Exp $ */
/* getpeereid.c */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/getpeereid.c,v 1.24.2.6 2009/04/29 01:49:55 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/getpeereid.c,v 1.24.2.7 2010/04/13 20:23:05 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/hash.c b/external/bsd/openldap/dist/libraries/liblutil/hash.c
index 40bbe07038c2..e25daa408087 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/hash.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/hash.c
@@ -1,9 +1,9 @@
-/* $NetBSD: hash.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: hash.c,v 1.1.1.3 2010/12/12 15:22:08 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/hash.c,v 1.8.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/hash.c,v 1.8.2.5 2010/04/13 20:23:06 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* Portions Copyright 2000-2003 Kurt D. Zeilenga.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/libraries/liblutil/ldif.c b/external/bsd/openldap/dist/libraries/liblutil/ldif.c
index 641f42b0383e..5d1345b3e874 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/ldif.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/ldif.c
@@ -1,10 +1,10 @@
-/* $NetBSD: ldif.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldif.c,v 1.1.1.3 2010/12/12 15:22:08 adam Exp $ */
/* ldif.c - routines for dealing with LDIF files */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/ldif.c,v 1.15.2.8 2009/07/08 00:28:21 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/ldif.c,v 1.15.2.9 2010/04/13 20:23:06 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/lockf.c b/external/bsd/openldap/dist/libraries/liblutil/lockf.c
index 3296991d8e0e..909ea1b15f40 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/lockf.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/lockf.c
@@ -1,9 +1,9 @@
-/* $NetBSD: lockf.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: lockf.c,v 1.1.1.3 2010/12/12 15:22:08 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/lockf.c,v 1.15.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/lockf.c,v 1.15.2.5 2010/04/13 20:23:06 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/md5.c b/external/bsd/openldap/dist/libraries/liblutil/md5.c
index dd92419201c3..792cd3f95ea3 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/md5.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/md5.c
@@ -1,10 +1,10 @@
-/* $NetBSD: md5.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: md5.c,v 1.1.1.3 2010/12/12 15:22:09 adam Exp $ */
/* md5.c -- MD5 message-digest algorithm */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/md5.c,v 1.19.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/md5.c,v 1.19.2.5 2010/04/13 20:23:06 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/memcmp.c b/external/bsd/openldap/dist/libraries/liblutil/memcmp.c
index c5de52b77ce3..f94d34fe6792 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/memcmp.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/memcmp.c
@@ -1,9 +1,9 @@
-/* $NetBSD: memcmp.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: memcmp.c,v 1.1.1.3 2010/12/12 15:22:09 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/memcmp.c,v 1.9.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/memcmp.c,v 1.9.2.5 2010/04/13 20:23:06 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/ntservice.c b/external/bsd/openldap/dist/libraries/liblutil/ntservice.c
index 16d7d9b02df9..787f2d1e6d9e 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/ntservice.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/ntservice.c
@@ -1,9 +1,9 @@
-/* $NetBSD: ntservice.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ntservice.c,v 1.1.1.3 2010/12/12 15:22:09 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/ntservice.c,v 1.31.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/ntservice.c,v 1.31.2.5 2010/04/13 20:23:06 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/passfile.c b/external/bsd/openldap/dist/libraries/liblutil/passfile.c
index 72872acdd914..5980346f4c71 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/passfile.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/passfile.c
@@ -1,9 +1,9 @@
-/* $NetBSD: passfile.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: passfile.c,v 1.1.1.3 2010/12/12 15:22:09 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/passfile.c,v 1.8.2.5 2009/03/09 23:16:48 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/passfile.c,v 1.8.2.6 2010/04/13 20:23:06 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/ptest.c b/external/bsd/openldap/dist/libraries/liblutil/ptest.c
index 2d790ac22c26..12f432429b29 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/ptest.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/ptest.c
@@ -1,9 +1,9 @@
-/* $NetBSD: ptest.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ptest.c,v 1.1.1.3 2010/12/12 15:22:11 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/ptest.c,v 1.12.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/ptest.c,v 1.12.2.5 2010/04/13 20:23:06 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/sasl.c b/external/bsd/openldap/dist/libraries/liblutil/sasl.c
index ff6960050e4d..53c47e7d3f64 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/sasl.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/sasl.c
@@ -1,9 +1,9 @@
-/* $NetBSD: sasl.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sasl.c,v 1.1.1.3 2010/12/12 15:22:11 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/sasl.c,v 1.22.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/sasl.c,v 1.22.2.5 2010/04/13 20:23:06 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/setproctitle.c b/external/bsd/openldap/dist/libraries/liblutil/setproctitle.c
index 4889b5498cd9..5bbdc34f5f82 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/setproctitle.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/setproctitle.c
@@ -1,9 +1,9 @@
-/* $NetBSD: setproctitle.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: setproctitle.c,v 1.1.1.3 2010/12/12 15:22:11 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/setproctitle.c,v 1.15.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/setproctitle.c,v 1.15.2.5 2010/04/13 20:23:07 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/sha1.c b/external/bsd/openldap/dist/libraries/liblutil/sha1.c
index d4d177067e2a..55eb976626b0 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/sha1.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/sha1.c
@@ -1,9 +1,9 @@
-/* $NetBSD: sha1.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sha1.c,v 1.1.1.3 2010/12/12 15:22:11 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/sha1.c,v 1.26.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/sha1.c,v 1.26.2.5 2010/04/13 20:23:07 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/signal.c b/external/bsd/openldap/dist/libraries/liblutil/signal.c
index 13113ec1eb36..178029a47725 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/signal.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/signal.c
@@ -1,9 +1,9 @@
-/* $NetBSD: signal.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: signal.c,v 1.1.1.3 2010/12/12 15:22:11 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/signal.c,v 1.10.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/signal.c,v 1.10.2.5 2010/04/13 20:23:07 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/sockpair.c b/external/bsd/openldap/dist/libraries/liblutil/sockpair.c
index 47991dabddc1..4591abb14bed 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/sockpair.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/sockpair.c
@@ -1,9 +1,9 @@
-/* $NetBSD: sockpair.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sockpair.c,v 1.1.1.3 2010/12/12 15:22:11 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/sockpair.c,v 1.17.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/sockpair.c,v 1.17.2.5 2010/04/13 20:23:07 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/tavl.c b/external/bsd/openldap/dist/libraries/liblutil/tavl.c
index 0a19811dd6ff..a4ce86c48a6b 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/tavl.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/tavl.c
@@ -1,10 +1,10 @@
-/* $NetBSD: tavl.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: tavl.c,v 1.1.1.3 2010/12/12 15:22:11 adam Exp $ */
/* avl.c - routines to implement an avl tree */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/tavl.c,v 1.12.2.7 2009/10/30 18:55:04 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/tavl.c,v 1.12.2.8 2010/04/13 20:23:07 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* Portions Copyright (c) 2005 by Howard Chu, Symas Corp.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/libraries/liblutil/testavl.c b/external/bsd/openldap/dist/libraries/liblutil/testavl.c
index 633dbc8595ef..cde4f78cbd2b 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/testavl.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/testavl.c
@@ -1,10 +1,10 @@
-/* $NetBSD: testavl.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: testavl.c,v 1.1.1.3 2010/12/12 15:22:11 adam Exp $ */
/* testavl.c - Test Tim Howes AVL code */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/testavl.c,v 1.4.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/testavl.c,v 1.4.2.5 2010/04/13 20:23:07 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/testtavl.c b/external/bsd/openldap/dist/libraries/liblutil/testtavl.c
index a1b5897d2b6a..3aec0a0d8904 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/testtavl.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/testtavl.c
@@ -1,10 +1,10 @@
-/* $NetBSD: testtavl.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: testtavl.c,v 1.1.1.3 2010/12/12 15:22:11 adam Exp $ */
/* testavl.c - Test Tim Howes AVL code */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/testtavl.c,v 1.2.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/testtavl.c,v 1.2.2.5 2010/04/13 20:23:07 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/liblutil/utils.c b/external/bsd/openldap/dist/libraries/liblutil/utils.c
index bb525dcf63ff..b10bf213a814 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/utils.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/utils.c
@@ -1,9 +1,9 @@
-/* $NetBSD: utils.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: utils.c,v 1.1.1.3 2010/12/12 15:22:11 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/utils.c,v 1.33.2.26 2009/12/02 18:34:37 hyc Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/utils.c,v 1.33.2.29 2010/06/10 17:23:20 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -149,7 +149,7 @@ size_t lutil_localtime( char *s, size_t smax, const struct tm *tm, long delta )
snprintf( p, smax - 15, "%02ld%02ld", delta / 3600,
( delta % 3600 ) / 60 );
- return ret + 5;
+ return ret + 4;
}
int lutil_tm2time( struct lutil_tm *tm, struct lutil_timet *tt )
@@ -284,128 +284,6 @@ int lutil_parsetime( char *atm, struct lutil_tm *tm )
return -1;
}
-/* return a broken out time, with microseconds
- * Must be mutex-protected.
- */
-#ifdef _WIN32
-/* Windows SYSTEMTIME only has 10 millisecond resolution, so we
- * also need to use a high resolution timer to get microseconds.
- * This is pretty clunky.
- */
-void
-lutil_gettime( struct lutil_tm *tm )
-{
- static LARGE_INTEGER cFreq;
- static LARGE_INTEGER prevCount;
- static int subs;
- static int offset;
- LARGE_INTEGER count;
- SYSTEMTIME st;
-
- GetSystemTime( &st );
- QueryPerformanceCounter( &count );
-
- /* It shouldn't ever go backwards, but multiple CPUs might
- * be able to hit in the same tick.
- */
- if ( count.QuadPart <= prevCount.QuadPart ) {
- subs++;
- } else {
- subs = 0;
- prevCount = count;
- }
-
- /* We assume Windows has at least a vague idea of
- * when a second begins. So we align our microsecond count
- * with the Windows millisecond count using this offset.
- * We retain the submillisecond portion of our own count.
- *
- * Note - this also assumes that the relationship between
- * the PerformanceCouunter and SystemTime stays constant;
- * that assumption breaks if the SystemTime is adjusted by
- * an external action.
- */
- if ( !cFreq.QuadPart ) {
- long long t;
- int usec;
- QueryPerformanceFrequency( &cFreq );
-
- /* just get sub-second portion of counter */
- t = count.QuadPart % cFreq.QuadPart;
-
- /* convert to microseconds */
- t *= 1000000;
- usec = t / cFreq.QuadPart;
-
- offset = usec - st.wMilliseconds * 1000;
- }
-
- tm->tm_usub = subs;
-
- /* convert to microseconds */
- count.QuadPart %= cFreq.QuadPart;
- count.QuadPart *= 1000000;
- count.QuadPart /= cFreq.QuadPart;
- count.QuadPart -= offset;
-
- tm->tm_usec = count.QuadPart % 1000000;
- if ( tm->tm_usec < 0 )
- tm->tm_usec += 1000000;
-
- /* any difference larger than microseconds is
- * already reflected in st
- */
-
- tm->tm_sec = st.wSecond;
- tm->tm_min = st.wMinute;
- tm->tm_hour = st.wHour;
- tm->tm_mday = st.wDay;
- tm->tm_mon = st.wMonth - 1;
- tm->tm_year = st.wYear - 1900;
-}
-#else
-void
-lutil_gettime( struct lutil_tm *ltm )
-{
- struct timeval tv;
- static struct timeval prevTv;
- static int subs;
-
-#ifdef HAVE_GMTIME_R
- struct tm tm_buf;
-#endif
- struct tm *tm;
- time_t t;
-
- gettimeofday( &tv, NULL );
- t = tv.tv_sec;
-
- if ( tv.tv_sec < prevTv.tv_sec
- || ( tv.tv_sec == prevTv.tv_sec && tv.tv_usec <= prevTv.tv_usec )) {
- subs++;
- } else {
- subs = 0;
- prevTv = tv;
- }
-
- ltm->tm_usub = subs;
-
-#ifdef HAVE_GMTIME_R
- tm = gmtime_r( &t, &tm_buf );
-#else
- tm = gmtime( &t );
-#endif
-
- ltm->tm_sec = tm->tm_sec;
- ltm->tm_min = tm->tm_min;
- ltm->tm_hour = tm->tm_hour;
- ltm->tm_mday = tm->tm_mday;
- ltm->tm_mon = tm->tm_mon;
- ltm->tm_year = tm->tm_year;
- ltm->tm_usec = tv.tv_usec;
-}
-#endif
-
/* strcopy is like strcpy except it returns a pointer to the trailing NUL of
* the result string. This allows fast construction of catenated strings
* without the overhead of strlen/strcat.
diff --git a/external/bsd/openldap/dist/libraries/liblutil/uuid.c b/external/bsd/openldap/dist/libraries/liblutil/uuid.c
index 1359ff90c1d0..400c63130167 100644
--- a/external/bsd/openldap/dist/libraries/liblutil/uuid.c
+++ b/external/bsd/openldap/dist/libraries/liblutil/uuid.c
@@ -1,10 +1,10 @@
-/* $NetBSD: uuid.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: uuid.c,v 1.1.1.3 2010/12/12 15:22:12 adam Exp $ */
/* uuid.c -- Universally Unique Identifier routines */
-/* OpenLDAP: pkg/ldap/libraries/liblutil/uuid.c,v 1.28.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/liblutil/uuid.c,v 1.28.2.5 2010/04/13 20:23:07 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* Portions Copyright 2000-2003 Kurt D. Zeilenga.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/libraries/librewrite/Makefile.in b/external/bsd/openldap/dist/libraries/librewrite/Makefile.in
index 9f3e871c1ea4..0a26a240ea07 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/Makefile.in
+++ b/external/bsd/openldap/dist/libraries/librewrite/Makefile.in
@@ -1,8 +1,8 @@
# LIBREWRITE
-# OpenLDAP: pkg/ldap/libraries/librewrite/Makefile.in,v 1.14.2.4 2009/01/22 00:00:58 kurt Exp
+# OpenLDAP: pkg/ldap/libraries/librewrite/Makefile.in,v 1.14.2.5 2010/04/13 20:23:08 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/config.c b/external/bsd/openldap/dist/libraries/librewrite/config.c
index 80aa89d43a3e..e32a70d2ee2b 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/config.c
+++ b/external/bsd/openldap/dist/libraries/librewrite/config.c
@@ -1,9 +1,9 @@
-/* $NetBSD: config.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: config.c,v 1.1.1.3 2010/12/12 15:22:12 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/config.c,v 1.14.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/config.c,v 1.14.2.5 2010/04/13 20:23:08 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/context.c b/external/bsd/openldap/dist/libraries/librewrite/context.c
index bf40f8f628ee..1bd89c509c2c 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/context.c
+++ b/external/bsd/openldap/dist/libraries/librewrite/context.c
@@ -1,9 +1,9 @@
-/* $NetBSD: context.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: context.c,v 1.1.1.3 2010/12/12 15:22:12 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/context.c,v 1.15.2.4 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/context.c,v 1.15.2.5 2010/04/13 20:23:08 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/info.c b/external/bsd/openldap/dist/libraries/librewrite/info.c
index 5b10d497cf8e..b519e83e0ed9 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/info.c
+++ b/external/bsd/openldap/dist/libraries/librewrite/info.c
@@ -1,9 +1,9 @@
-/* $NetBSD: info.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: info.c,v 1.1.1.3 2010/12/12 15:22:12 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/info.c,v 1.15.2.5 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/info.c,v 1.15.2.6 2010/04/13 20:23:08 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/ldapmap.c b/external/bsd/openldap/dist/libraries/librewrite/ldapmap.c
index 362dac64583d..e7e593e00e6a 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/ldapmap.c
+++ b/external/bsd/openldap/dist/libraries/librewrite/ldapmap.c
@@ -1,9 +1,9 @@
-/* $NetBSD: ldapmap.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldapmap.c,v 1.1.1.3 2010/12/12 15:22:12 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/ldapmap.c,v 1.12.2.5 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/ldapmap.c,v 1.12.2.6 2010/04/13 20:23:08 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/map.c b/external/bsd/openldap/dist/libraries/librewrite/map.c
index 8f3854a39e20..09ecf1ded132 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/map.c
+++ b/external/bsd/openldap/dist/libraries/librewrite/map.c
@@ -1,9 +1,9 @@
-/* $NetBSD: map.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: map.c,v 1.1.1.3 2010/12/12 15:22:12 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/map.c,v 1.21.2.6 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/map.c,v 1.21.2.7 2010/04/13 20:23:08 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/params.c b/external/bsd/openldap/dist/libraries/librewrite/params.c
index 35eb8e6e3a2a..6989f85e0b64 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/params.c
+++ b/external/bsd/openldap/dist/libraries/librewrite/params.c
@@ -1,9 +1,9 @@
-/* $NetBSD: params.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: params.c,v 1.1.1.3 2010/12/12 15:22:12 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/params.c,v 1.9.2.5 2009/01/22 00:00:58 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/params.c,v 1.9.2.6 2010/04/13 20:23:08 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/parse.c b/external/bsd/openldap/dist/libraries/librewrite/parse.c
index 35cad32c9aca..593e2c7805bd 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/parse.c
+++ b/external/bsd/openldap/dist/libraries/librewrite/parse.c
@@ -1,9 +1,9 @@
-/* $NetBSD: parse.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: parse.c,v 1.1.1.3 2010/12/12 15:22:12 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/parse.c,v 1.9.2.4 2009/01/22 00:00:59 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/parse.c,v 1.9.2.5 2010/04/13 20:23:08 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/rewrite-int.h b/external/bsd/openldap/dist/libraries/librewrite/rewrite-int.h
index 63b3e66b3831..094b82738380 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/rewrite-int.h
+++ b/external/bsd/openldap/dist/libraries/librewrite/rewrite-int.h
@@ -1,9 +1,9 @@
-/* $NetBSD: rewrite-int.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: rewrite-int.h,v 1.1.1.3 2010/12/12 15:22:13 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/rewrite-int.h,v 1.20.2.5 2009/03/09 23:16:48 quanah Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/rewrite-int.h,v 1.20.2.6 2010/04/13 20:23:08 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/rewrite-map.h b/external/bsd/openldap/dist/libraries/librewrite/rewrite-map.h
index e4cb4e7bb71c..fbaf0a0de111 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/rewrite-map.h
+++ b/external/bsd/openldap/dist/libraries/librewrite/rewrite-map.h
@@ -1,9 +1,9 @@
-/* $NetBSD: rewrite-map.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: rewrite-map.h,v 1.1.1.3 2010/12/12 15:22:13 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/rewrite-map.h,v 1.7.2.4 2009/01/22 00:00:59 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/rewrite-map.h,v 1.7.2.5 2010/04/13 20:23:08 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/rewrite.c b/external/bsd/openldap/dist/libraries/librewrite/rewrite.c
index b6bb6f36f7fb..9f169e8c535a 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/rewrite.c
+++ b/external/bsd/openldap/dist/libraries/librewrite/rewrite.c
@@ -1,9 +1,9 @@
-/* $NetBSD: rewrite.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: rewrite.c,v 1.1.1.3 2010/12/12 15:22:13 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/rewrite.c,v 1.16.2.4 2009/01/22 00:00:59 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/rewrite.c,v 1.16.2.5 2010/04/13 20:23:09 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/rule.c b/external/bsd/openldap/dist/libraries/librewrite/rule.c
index 7cfb50ac73b9..128ab4a8f1a8 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/rule.c
+++ b/external/bsd/openldap/dist/libraries/librewrite/rule.c
@@ -1,9 +1,9 @@
-/* $NetBSD: rule.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: rule.c,v 1.1.1.3 2010/12/12 15:22:13 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/rule.c,v 1.23.2.5 2009/01/22 00:00:59 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/rule.c,v 1.23.2.6 2010/04/13 20:23:09 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/session.c b/external/bsd/openldap/dist/libraries/librewrite/session.c
index daa11a4ad2c2..59f70621397b 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/session.c
+++ b/external/bsd/openldap/dist/libraries/librewrite/session.c
@@ -1,9 +1,9 @@
-/* $NetBSD: session.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: session.c,v 1.1.1.3 2010/12/12 15:22:13 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/session.c,v 1.19.2.5 2009/01/22 00:00:59 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/session.c,v 1.19.2.6 2010/04/13 20:23:09 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/subst.c b/external/bsd/openldap/dist/libraries/librewrite/subst.c
index ed524aab8909..57f77f1492cf 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/subst.c
+++ b/external/bsd/openldap/dist/libraries/librewrite/subst.c
@@ -1,9 +1,9 @@
-/* $NetBSD: subst.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: subst.c,v 1.1.1.3 2010/12/12 15:22:13 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/subst.c,v 1.22.2.5 2009/01/22 00:00:59 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/subst.c,v 1.22.2.6 2010/04/13 20:23:09 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/var.c b/external/bsd/openldap/dist/libraries/librewrite/var.c
index c78d3ac09f78..090c2fa7c3e5 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/var.c
+++ b/external/bsd/openldap/dist/libraries/librewrite/var.c
@@ -1,9 +1,9 @@
-/* $NetBSD: var.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: var.c,v 1.1.1.3 2010/12/12 15:22:13 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/var.c,v 1.13.2.5 2009/01/22 00:00:59 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/var.c,v 1.13.2.6 2010/04/13 20:23:09 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/libraries/librewrite/xmap.c b/external/bsd/openldap/dist/libraries/librewrite/xmap.c
index 5dbbc5db6c32..8eff4e232d70 100644
--- a/external/bsd/openldap/dist/libraries/librewrite/xmap.c
+++ b/external/bsd/openldap/dist/libraries/librewrite/xmap.c
@@ -1,9 +1,9 @@
-/* $NetBSD: xmap.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: xmap.c,v 1.1.1.3 2010/12/12 15:22:13 adam Exp $ */
-/* OpenLDAP: pkg/ldap/libraries/librewrite/xmap.c,v 1.12.2.5 2009/01/22 00:00:59 kurt Exp */
+/* OpenLDAP: pkg/ldap/libraries/librewrite/xmap.c,v 1.12.2.6 2010/04/13 20:23:09 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/Makefile.in b/external/bsd/openldap/dist/servers/Makefile.in
index d9640b07e699..43e18c5d2021 100644
--- a/external/bsd/openldap/dist/servers/Makefile.in
+++ b/external/bsd/openldap/dist/servers/Makefile.in
@@ -1,8 +1,8 @@
# servers Makefile.in for OpenLDAP
-# OpenLDAP: pkg/ldap/servers/Makefile.in,v 1.12.2.4 2009/01/22 00:00:59 kurt Exp
+# OpenLDAP: pkg/ldap/servers/Makefile.in,v 1.12.2.5 2010/04/13 20:23:09 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/Makefile.in b/external/bsd/openldap/dist/servers/slapd/Makefile.in
index e6035c6c7293..ae905c8f6e1f 100644
--- a/external/bsd/openldap/dist/servers/slapd/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/Makefile.in
@@ -1,8 +1,8 @@
## Makefile.in for slapd
-# OpenLDAP: pkg/ldap/servers/slapd/Makefile.in,v 1.186.2.8 2009/06/02 22:36:17 quanah Exp
+# OpenLDAP: pkg/ldap/servers/slapd/Makefile.in,v 1.186.2.9 2010/04/13 20:23:09 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/abandon.c b/external/bsd/openldap/dist/servers/slapd/abandon.c
index f82ad6e34239..89287753790b 100644
--- a/external/bsd/openldap/dist/servers/slapd/abandon.c
+++ b/external/bsd/openldap/dist/servers/slapd/abandon.c
@@ -1,10 +1,10 @@
-/* $NetBSD: abandon.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: abandon.c,v 1.1.1.3 2010/12/12 15:22:13 adam Exp $ */
/* abandon.c - decode and handle an ldap abandon operation */
-/* OpenLDAP: pkg/ldap/servers/slapd/abandon.c,v 1.52.2.7 2009/06/04 23:19:18 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/abandon.c,v 1.52.2.8 2010/04/13 20:23:09 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/aci.c b/external/bsd/openldap/dist/servers/slapd/aci.c
index c2cd6b737b85..b4186a3990e3 100644
--- a/external/bsd/openldap/dist/servers/slapd/aci.c
+++ b/external/bsd/openldap/dist/servers/slapd/aci.c
@@ -1,10 +1,10 @@
-/* $NetBSD: aci.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: aci.c,v 1.1.1.3 2010/12/12 15:22:14 adam Exp $ */
/* aci.c - routines to parse and check acl's */
-/* OpenLDAP: pkg/ldap/servers/slapd/aci.c,v 1.14.2.11 2009/01/22 00:00:59 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/aci.c,v 1.14.2.12 2010/04/13 20:23:09 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/acl.c b/external/bsd/openldap/dist/servers/slapd/acl.c
index 2bcb770494b2..eb7d0b5934bb 100644
--- a/external/bsd/openldap/dist/servers/slapd/acl.c
+++ b/external/bsd/openldap/dist/servers/slapd/acl.c
@@ -1,10 +1,10 @@
-/* $NetBSD: acl.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: acl.c,v 1.1.1.4 2010/12/12 15:22:14 adam Exp $ */
/* acl.c - routines to parse and check acl's */
-/* OpenLDAP: pkg/ldap/servers/slapd/acl.c,v 1.303.2.23 2009/09/29 21:55:18 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/acl.c,v 1.303.2.25 2010/04/15 20:01:38 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -2134,7 +2134,16 @@ acl_set_cb_gather( Operation *op, SlapReply *rs )
}
} else {
- assert( rs->sr_type == REP_RESULT );
+ switch ( rs->sr_type ) {
+ case REP_SEARCHREF:
+ case REP_INTERMEDIATE:
+ /* ignore */
+ break;
+
+ default:
+ assert( rs->sr_type == REP_RESULT );
+ break;
+ }
}
return 0;
diff --git a/external/bsd/openldap/dist/servers/slapd/aclparse.c b/external/bsd/openldap/dist/servers/slapd/aclparse.c
index d466309c8dcf..a42f89ed28ce 100644
--- a/external/bsd/openldap/dist/servers/slapd/aclparse.c
+++ b/external/bsd/openldap/dist/servers/slapd/aclparse.c
@@ -1,10 +1,10 @@
-/* $NetBSD: aclparse.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: aclparse.c,v 1.1.1.3 2010/12/12 15:22:15 adam Exp $ */
/* aclparse.c - routines to parse and check acl's */
-/* OpenLDAP: pkg/ldap/servers/slapd/aclparse.c,v 1.198.2.11 2009/07/27 20:19:18 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/aclparse.c,v 1.198.2.13 2010/04/15 22:26:06 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -346,6 +346,7 @@ parse_acl(
goto fail;
}
a = (AccessControl *) ch_calloc( 1, sizeof(AccessControl) );
+ a->acl_attrval_style = ACL_STYLE_NONE;
for ( ++i; i < argc; i++ ) {
if ( strcasecmp( argv[i], "by" ) == 0 ) {
i--;
diff --git a/external/bsd/openldap/dist/servers/slapd/ad.c b/external/bsd/openldap/dist/servers/slapd/ad.c
index 5f670a556bcb..8f0a226d0d13 100644
--- a/external/bsd/openldap/dist/servers/slapd/ad.c
+++ b/external/bsd/openldap/dist/servers/slapd/ad.c
@@ -1,10 +1,10 @@
-/* $NetBSD: ad.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ad.c,v 1.1.1.3 2010/12/12 15:22:16 adam Exp $ */
/* ad.c - routines for dealing with attribute descriptions */
-/* OpenLDAP: pkg/ldap/servers/slapd/ad.c,v 1.95.2.9 2009/07/27 20:19:18 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/ad.c,v 1.95.2.10 2010/04/13 20:23:10 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/add.c b/external/bsd/openldap/dist/servers/slapd/add.c
index fb792dfd7522..0ad0066c8406 100644
--- a/external/bsd/openldap/dist/servers/slapd/add.c
+++ b/external/bsd/openldap/dist/servers/slapd/add.c
@@ -1,9 +1,9 @@
-/* $NetBSD: add.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: add.c,v 1.1.1.3 2010/12/12 15:22:16 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/add.c,v 1.244.2.8 2009/01/22 00:00:59 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/add.c,v 1.244.2.10 2010/04/19 16:53:01 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -594,7 +594,7 @@ int slap_add_opattrs(
struct berval name, timestamp, csn = BER_BVNULL;
struct berval nname, tmp;
char timebuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
- char csnbuf[ LDAP_LUTIL_CSNSTR_BUFSIZE ];
+ char csnbuf[ LDAP_PVT_CSNSTR_BUFSIZE ];
Attribute *a;
if ( SLAP_LASTMOD( op->o_bd ) ) {
diff --git a/external/bsd/openldap/dist/servers/slapd/alock.c b/external/bsd/openldap/dist/servers/slapd/alock.c
index d79c267fd95a..4d2d11a8b34c 100644
--- a/external/bsd/openldap/dist/servers/slapd/alock.c
+++ b/external/bsd/openldap/dist/servers/slapd/alock.c
@@ -1,10 +1,10 @@
-/* $NetBSD: alock.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: alock.c,v 1.1.1.3 2010/12/12 15:22:17 adam Exp $ */
/* alock.c - access lock library */
-/* OpenLDAP: pkg/ldap/servers/slapd/alock.c,v 1.5.2.12 2009/11/18 20:49:24 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/alock.c,v 1.5.2.13 2010/04/13 20:23:10 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* Portions Copyright 2004-2005 Symas Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/alock.h b/external/bsd/openldap/dist/servers/slapd/alock.h
index be0f61484d75..54f5c645dbd9 100644
--- a/external/bsd/openldap/dist/servers/slapd/alock.h
+++ b/external/bsd/openldap/dist/servers/slapd/alock.h
@@ -1,10 +1,10 @@
-/* $NetBSD: alock.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: alock.h,v 1.1.1.3 2010/12/12 15:22:17 adam Exp $ */
/* alock.h - access lock header */
-/* OpenLDAP: pkg/ldap/servers/slapd/alock.h,v 1.3.2.5 2009/01/22 00:00:59 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/alock.h,v 1.3.2.6 2010/04/13 20:23:10 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* Portions Copyright 2004-2005 Symas Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/at.c b/external/bsd/openldap/dist/servers/slapd/at.c
index 470ed8c02cf6..9e14bba9c1c3 100644
--- a/external/bsd/openldap/dist/servers/slapd/at.c
+++ b/external/bsd/openldap/dist/servers/slapd/at.c
@@ -1,10 +1,10 @@
-/* $NetBSD: at.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: at.c,v 1.1.1.4 2010/12/12 15:22:17 adam Exp $ */
/* at.c - routines for dealing with attribute types */
-/* OpenLDAP: pkg/ldap/servers/slapd/at.c,v 1.84.2.10 2009/03/17 17:11:57 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/at.c,v 1.84.2.11 2010/04/13 20:23:10 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/attr.c b/external/bsd/openldap/dist/servers/slapd/attr.c
index 7d3c5ce373e4..570304d4339e 100644
--- a/external/bsd/openldap/dist/servers/slapd/attr.c
+++ b/external/bsd/openldap/dist/servers/slapd/attr.c
@@ -1,10 +1,10 @@
-/* $NetBSD: attr.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: attr.c,v 1.1.1.4 2010/12/12 15:22:18 adam Exp $ */
/* attr.c - routines for dealing with attributes */
-/* OpenLDAP: pkg/ldap/servers/slapd/attr.c,v 1.112.2.11 2009/01/22 00:01:00 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/attr.c,v 1.112.2.12 2010/04/13 20:23:10 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/ava.c b/external/bsd/openldap/dist/servers/slapd/ava.c
index eed274c78304..cdd77252daa3 100644
--- a/external/bsd/openldap/dist/servers/slapd/ava.c
+++ b/external/bsd/openldap/dist/servers/slapd/ava.c
@@ -1,10 +1,10 @@
-/* $NetBSD: ava.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ava.c,v 1.1.1.3 2010/12/12 15:22:18 adam Exp $ */
/* ava.c - routines for dealing with attribute value assertions */
-/* OpenLDAP: pkg/ldap/servers/slapd/ava.c,v 1.45.2.5 2009/01/22 00:01:00 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/ava.c,v 1.45.2.6 2010/04/13 20:23:11 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-bdb/Makefile.in
index 3a7d332f8312..4425bdd18020 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for back-bdb
-# OpenLDAP: pkg/ldap/servers/slapd/back-bdb/Makefile.in,v 1.34.2.6 2009/01/22 00:01:04 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-bdb/Makefile.in,v 1.34.2.7 2010/04/13 20:23:23 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/add.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/add.c
index 979a362e7fa4..e04c821db19c 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/add.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/add.c
@@ -1,10 +1,10 @@
-/* $NetBSD: add.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: add.c,v 1.1.1.3 2010/12/12 15:22:53 adam Exp $ */
/* add.c - ldap BerkeleyDB back-end add routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/add.c,v 1.152.2.17 2009/03/05 18:40:00 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/add.c,v 1.152.2.18 2010/04/13 20:23:23 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/attr.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/attr.c
index 23506a46ea56..93439f0c2f41 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/attr.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/attr.c
@@ -1,10 +1,10 @@
-/* $NetBSD: attr.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: attr.c,v 1.1.1.4 2010/12/12 15:22:53 adam Exp $ */
/* attr.c - backend routines for dealing with attributes */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/attr.c,v 1.36.2.9 2009/07/06 19:13:32 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/attr.c,v 1.36.2.10 2010/04/13 20:23:23 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/back-bdb.h b/external/bsd/openldap/dist/servers/slapd/back-bdb/back-bdb.h
index dacd295576f0..f1618a902846 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/back-bdb.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/back-bdb.h
@@ -1,10 +1,10 @@
-/* $NetBSD: back-bdb.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: back-bdb.h,v 1.1.1.3 2010/12/12 15:22:53 adam Exp $ */
/* back-bdb.h - bdb back-end header file */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/back-bdb.h,v 1.141.2.23 2009/08/25 22:58:09 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/back-bdb.h,v 1.141.2.24 2010/04/13 20:23:23 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/bind.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/bind.c
index 93a08bdf4fd5..2907f60ed7d2 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/bind.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/bind.c
@@ -1,10 +1,10 @@
-/* $NetBSD: bind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: bind.c,v 1.1.1.3 2010/12/12 15:22:53 adam Exp $ */
/* bind.c - bdb backend bind routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/bind.c,v 1.45.2.6 2009/01/22 00:01:04 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/bind.c,v 1.45.2.7 2010/04/13 20:23:23 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/cache.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/cache.c
index ab68760a362b..3d3d321d07cb 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/cache.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/cache.c
@@ -1,10 +1,10 @@
-/* $NetBSD: cache.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: cache.c,v 1.1.1.3 2010/12/12 15:22:53 adam Exp $ */
/* cache.c - routines to maintain an in-core cache of entries */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/cache.c,v 1.120.2.35 2009/11/04 15:47:44 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/cache.c,v 1.120.2.37 2010/04/15 20:06:59 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -186,6 +186,7 @@ bdb_cache_entry_db_relock(
if ( !lock ) return 0;
+ DBTzero( &lockobj );
lockobj.data = &ei->bei_id;
lockobj.size = sizeof(ei->bei_id) + 1;
@@ -227,6 +228,7 @@ bdb_cache_entry_db_lock( struct bdb_info *bdb, DB_TXN *txn, EntryInfo *ei,
else
db_rw = DB_LOCK_READ;
+ DBTzero( &lockobj );
lockobj.data = &ei->bei_id;
lockobj.size = sizeof(ei->bei_id) + 1;
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/compare.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/compare.c
index af9028aac398..bb0a51971fc3 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/compare.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/compare.c
@@ -1,10 +1,10 @@
-/* $NetBSD: compare.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: compare.c,v 1.1.1.3 2010/12/12 15:22:54 adam Exp $ */
/* compare.c - bdb backend compare routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/compare.c,v 1.51.2.7 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/compare.c,v 1.51.2.8 2010/04/13 20:23:23 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/config.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/config.c
index 2b9f2a3dc23a..71437371cfb8 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/config.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/config.c
@@ -1,10 +1,10 @@
-/* $NetBSD: config.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: config.c,v 1.1.1.3 2010/12/12 15:22:54 adam Exp $ */
/* config.c - bdb backend configuration file routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/config.c,v 1.91.2.18 2009/08/25 22:58:09 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/config.c,v 1.91.2.19 2010/04/13 20:23:23 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/dbcache.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/dbcache.c
index 013f86ad1aae..a989f690284c 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/dbcache.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/dbcache.c
@@ -1,10 +1,10 @@
-/* $NetBSD: dbcache.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: dbcache.c,v 1.1.1.3 2010/12/12 15:22:54 adam Exp $ */
/* dbcache.c - manage cache of open databases */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/dbcache.c,v 1.43.2.8 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/dbcache.c,v 1.43.2.9 2010/04/13 20:23:24 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/delete.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/delete.c
index 5af0307e18f9..ac9b9feaa393 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/delete.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/delete.c
@@ -1,10 +1,10 @@
-/* $NetBSD: delete.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: delete.c,v 1.1.1.3 2010/12/12 15:22:54 adam Exp $ */
/* delete.c - bdb backend delete routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/delete.c,v 1.155.2.11 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/delete.c,v 1.155.2.13 2010/04/19 16:53:03 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -103,7 +103,7 @@ txnReturn:
/* allocate CSN */
if ( BER_BVISNULL( &op->o_csn ) ) {
struct berval csn;
- char csnbuf[LDAP_LUTIL_CSNSTR_BUFSIZE];
+ char csnbuf[LDAP_PVT_CSNSTR_BUFSIZE];
csn.bv_val = csnbuf;
csn.bv_len = sizeof(csnbuf);
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/dn2entry.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/dn2entry.c
index 56fc9c90d669..91972fe5baf1 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/dn2entry.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/dn2entry.c
@@ -1,10 +1,10 @@
-/* $NetBSD: dn2entry.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: dn2entry.c,v 1.1.1.3 2010/12/12 15:22:54 adam Exp $ */
/* dn2entry.c - routines to deal with the dn2id / id2entry glue */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/dn2entry.c,v 1.28.2.9 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/dn2entry.c,v 1.28.2.10 2010/04/13 20:23:24 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/dn2id.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/dn2id.c
index 0e523dd2115a..596a9281bef2 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/dn2id.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/dn2id.c
@@ -1,10 +1,10 @@
-/* $NetBSD: dn2id.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: dn2id.c,v 1.1.1.4 2010/12/12 15:22:54 adam Exp $ */
/* dn2id.c - routines to deal with the dn2id index */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/dn2id.c,v 1.137.2.19 2009/06/19 21:55:57 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/dn2id.c,v 1.137.2.23 2010/06/23 15:57:26 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -678,7 +678,7 @@ hdb_dn2id_delete(
d->nrdnlen[0] = (BEI(e)->bei_nrdn.bv_len >> 8) | 0x80;
dlen[0] = d->nrdnlen[0];
dlen[1] = d->nrdnlen[1];
- strcpy( d->nrdn, BEI(e)->bei_nrdn.bv_val );
+ memcpy( d->nrdn, BEI(e)->bei_nrdn.bv_val, BEI(e)->bei_nrdn.bv_len+1 );
data.data = d;
rc = db->cursor( db, txn, &cursor, bdb->bi_db_opflags );
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/error.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/error.c
index d4b905a21aa4..8487ec4826a7 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/error.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/error.c
@@ -1,10 +1,10 @@
-/* $NetBSD: error.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: error.c,v 1.1.1.3 2010/12/12 15:22:54 adam Exp $ */
/* error.c - BDB errcall routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/error.c,v 1.18.2.4 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/error.c,v 1.18.2.5 2010/04/13 20:23:24 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/extended.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/extended.c
index 21cbdb0d76d2..3c7d0bf543d4 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/extended.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/extended.c
@@ -1,10 +1,10 @@
-/* $NetBSD: extended.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: extended.c,v 1.1.1.3 2010/12/12 15:22:55 adam Exp $ */
/* extended.c - bdb backend extended routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/extended.c,v 1.18.2.4 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/extended.c,v 1.18.2.5 2010/04/13 20:23:24 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/filterindex.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/filterindex.c
index 2e009cd82c3b..521f469a9d6a 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/filterindex.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/filterindex.c
@@ -1,10 +1,10 @@
-/* $NetBSD: filterindex.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: filterindex.c,v 1.1.1.3 2010/12/12 15:22:55 adam Exp $ */
/* filterindex.c - generate the list of candidate entries from a filter */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/filterindex.c,v 1.64.2.10 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/filterindex.c,v 1.64.2.11 2010/04/13 20:23:24 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/id2entry.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/id2entry.c
index 74c45441d48f..a04f3b6ec122 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/id2entry.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/id2entry.c
@@ -1,10 +1,10 @@
-/* $NetBSD: id2entry.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: id2entry.c,v 1.1.1.3 2010/12/12 15:22:55 adam Exp $ */
/* id2entry.c - routines to deal with the id2entry database */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/id2entry.c,v 1.72.2.13 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/id2entry.c,v 1.72.2.14 2010/04/13 20:23:24 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/idl.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/idl.c
index 1b3e1fa28250..72cd23f0cad1 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/idl.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/idl.c
@@ -1,10 +1,10 @@
-/* $NetBSD: idl.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: idl.c,v 1.1.1.3 2010/12/12 15:22:56 adam Exp $ */
/* idl.c - ldap id list handling routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/idl.c,v 1.124.2.11 2009/12/02 19:22:09 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/idl.c,v 1.124.2.12 2010/04/13 20:23:24 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/idl.h b/external/bsd/openldap/dist/servers/slapd/back-bdb/idl.h
index 1b3aa7e4df6e..19d99db7b753 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/idl.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/idl.h
@@ -1,10 +1,10 @@
-/* $NetBSD: idl.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: idl.h,v 1.1.1.3 2010/12/12 15:22:56 adam Exp $ */
/* idl.h - ldap bdb back-end ID list header file */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/idl.h,v 1.19.2.4 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/idl.h,v 1.19.2.5 2010/04/13 20:23:25 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/index.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/index.c
index 6c36c99dda07..fb2694d4d31e 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/index.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/index.c
@@ -1,10 +1,10 @@
-/* $NetBSD: index.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: index.c,v 1.1.1.3 2010/12/12 15:22:56 adam Exp $ */
/* index.c - routines for dealing with attribute indexes */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/index.c,v 1.61.2.8 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/index.c,v 1.61.2.9 2010/04/13 20:23:25 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/init.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/init.c
index d78ab5e05fb1..1351a4c38631 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/init.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/init.c
@@ -1,10 +1,10 @@
-/* $NetBSD: init.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: init.c,v 1.1.1.3 2010/12/12 15:22:57 adam Exp $ */
/* init.c - initialize bdb backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/init.c,v 1.247.2.23 2009/07/27 17:38:41 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/init.c,v 1.247.2.25 2010/04/14 22:59:10 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -832,7 +832,8 @@ bdb_back_initialize(
*/
bi->bi_tool_entry_open = bdb_tool_entry_open;
bi->bi_tool_entry_close = bdb_tool_entry_close;
- bi->bi_tool_entry_first = bdb_tool_entry_next;
+ bi->bi_tool_entry_first = backend_tool_entry_first;
+ bi->bi_tool_entry_first_x = bdb_tool_entry_first_x;
bi->bi_tool_entry_next = bdb_tool_entry_next;
bi->bi_tool_entry_get = bdb_tool_entry_get;
bi->bi_tool_entry_put = bdb_tool_entry_put;
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/key.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/key.c
index e5afb39690cb..bde4714cbefd 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/key.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/key.c
@@ -1,10 +1,10 @@
-/* $NetBSD: key.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: key.c,v 1.1.1.3 2010/12/12 15:22:57 adam Exp $ */
/* index.c - routines for dealing with attribute indexes */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/key.c,v 1.20.2.5 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/key.c,v 1.20.2.6 2010/04/13 20:23:25 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/modify.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/modify.c
index fa51f7ceb999..faa863caa56a 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/modify.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/modify.c
@@ -1,10 +1,10 @@
-/* $NetBSD: modify.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modify.c,v 1.1.1.3 2010/12/12 15:22:58 adam Exp $ */
/* modify.c - bdb backend modify routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/modify.c,v 1.156.2.17 2009/03/09 19:35:16 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/modify.c,v 1.156.2.19 2010/04/14 23:09:01 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -424,7 +424,13 @@ txnReturn:
ctrls[num_ctrls] = NULL;
- slap_mods_opattrs( op, &op->orm_modlist, 1 );
+ /* Don't touch the opattrs, if this is a contextCSN update
+ * initiated from updatedn */
+ if ( !be_isupdate(op) || !op->orm_modlist || op->orm_modlist->sml_next ||
+ op->orm_modlist->sml_desc != slap_schema.si_ad_contextCSN ) {
+
+ slap_mods_opattrs( op, &op->orm_modlist, 1 );
+ }
if( 0 ) {
retry: /* transaction retry */
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/modrdn.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/modrdn.c
index 8f49f85f5377..d28e82e5a973 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/modrdn.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/modrdn.c
@@ -1,10 +1,10 @@
-/* $NetBSD: modrdn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modrdn.c,v 1.1.1.3 2010/12/12 15:22:58 adam Exp $ */
/* modrdn.c - bdb backend modrdn routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/modrdn.c,v 1.185.2.14 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/modrdn.c,v 1.185.2.15 2010/04/13 20:23:25 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/monitor.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/monitor.c
index 0c2bbb307f77..3539a280bc79 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/monitor.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/monitor.c
@@ -1,10 +1,10 @@
-/* $NetBSD: monitor.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: monitor.c,v 1.1.1.4 2010/12/12 15:22:58 adam Exp $ */
/* monitor.c - monitor bdb backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/monitor.c,v 1.19.2.14 2009/10/30 18:07:18 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/monitor.c,v 1.19.2.15 2010/04/13 20:23:25 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/nextid.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/nextid.c
index d353340f9771..c722ac566eb5 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/nextid.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/nextid.c
@@ -1,10 +1,10 @@
-/* $NetBSD: nextid.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: nextid.c,v 1.1.1.3 2010/12/12 15:22:58 adam Exp $ */
/* init.c - initialize bdb backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/nextid.c,v 1.26.2.5 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/nextid.c,v 1.26.2.6 2010/04/13 20:23:25 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/operational.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/operational.c
index e6b97fe6b544..c52e03b04791 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/operational.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/operational.c
@@ -1,10 +1,10 @@
-/* $NetBSD: operational.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: operational.c,v 1.1.1.3 2010/12/12 15:22:59 adam Exp $ */
/* operational.c - bdb backend operational attributes function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/operational.c,v 1.29.2.5 2009/03/05 22:24:29 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/operational.c,v 1.29.2.7 2010/06/10 17:25:02 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -41,6 +41,7 @@ bdb_hasSubordinates(
OpExtra *oex;
DB_TXN *rtxn;
int rc;
+ int release = 0;
assert( e != NULL );
@@ -50,7 +51,18 @@ bdb_hasSubordinates(
* let's disable the hasSubordinate feature for back-relay.
*/
if ( BEI( e ) == NULL ) {
- return LDAP_OTHER;
+ Entry *ee = NULL;
+ rc = be_entry_get_rw( op, &e->e_nname, NULL, NULL, 0, &ee );
+ if ( rc != LDAP_SUCCESS || ee == NULL ) {
+ rc = LDAP_OTHER;
+ goto done;
+ }
+ e = ee;
+ release = 1;
+ if ( BEI( ee ) == NULL ) {
+ rc = LDAP_OTHER;
+ goto done;
+ }
}
/* Check for a txn in a parent op, otherwise use reader txn */
@@ -63,7 +75,10 @@ bdb_hasSubordinates(
rtxn = opinfo->boi_txn;
} else {
rc = bdb_reader_get(op, bdb->bi_dbenv, &rtxn);
- if ( rc ) return LDAP_OTHER;
+ if ( rc ) {
+ rc = LDAP_OTHER;
+ goto done;
+ }
}
retry:
@@ -94,6 +109,8 @@ retry:
rc = LDAP_OTHER;
}
+done:;
+ if ( release && e != NULL ) be_entry_release_r( op, e );
return rc;
}
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/proto-bdb.h b/external/bsd/openldap/dist/servers/slapd/back-bdb/proto-bdb.h
index 5da10fc16486..43835ce02e8c 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/proto-bdb.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/proto-bdb.h
@@ -1,9 +1,9 @@
-/* $NetBSD: proto-bdb.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: proto-bdb.h,v 1.1.1.3 2010/12/12 15:22:59 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/proto-bdb.h,v 1.137.2.15 2009/05/07 20:20:33 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/proto-bdb.h,v 1.137.2.17 2010/04/14 22:59:10 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -629,6 +629,7 @@ bdb_trans_backoff( int num_retries );
#define bdb_hasSubordinates BDB_SYMBOL(hasSubordinates)
#define bdb_tool_entry_open BDB_SYMBOL(tool_entry_open)
#define bdb_tool_entry_close BDB_SYMBOL(tool_entry_close)
+#define bdb_tool_entry_first_x BDB_SYMBOL(tool_entry_first_x)
#define bdb_tool_entry_next BDB_SYMBOL(tool_entry_next)
#define bdb_tool_entry_get BDB_SYMBOL(tool_entry_get)
#define bdb_tool_entry_put BDB_SYMBOL(tool_entry_put)
@@ -659,6 +660,7 @@ extern BI_has_subordinates bdb_hasSubordinates;
/* tools.c */
extern BI_tool_entry_open bdb_tool_entry_open;
extern BI_tool_entry_close bdb_tool_entry_close;
+extern BI_tool_entry_first_x bdb_tool_entry_first_x;
extern BI_tool_entry_next bdb_tool_entry_next;
extern BI_tool_entry_get bdb_tool_entry_get;
extern BI_tool_entry_put bdb_tool_entry_put;
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/referral.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/referral.c
index 315b14e05b33..658a51e5d06a 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/referral.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/referral.c
@@ -1,10 +1,10 @@
-/* $NetBSD: referral.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: referral.c,v 1.1.1.3 2010/12/12 15:22:59 adam Exp $ */
/* referral.c - BDB backend referral handler */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/referral.c,v 1.42.2.8 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/referral.c,v 1.42.2.9 2010/04/13 20:23:26 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/search.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/search.c
index e278e14fadc7..5d37a92c220c 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/search.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/search.c
@@ -1,10 +1,10 @@
-/* $NetBSD: search.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: search.c,v 1.1.1.3 2010/12/12 15:23:00 adam Exp $ */
/* search.c - search operation */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/search.c,v 1.246.2.26 2009/08/25 22:58:09 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/search.c,v 1.246.2.28 2010/04/15 20:15:19 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -1264,6 +1264,9 @@ parse_paged_cookie( Operation *op, SlapReply *rs )
goto done;
}
+ } else {
+ /* we're going to use ps_cookie */
+ op->o_conn->c_pagedresults_state.ps_cookie = 0;
}
done:;
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/tools.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/tools.c
index 652fccf78052..4aae58eac18f 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/tools.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/tools.c
@@ -1,10 +1,10 @@
-/* $NetBSD: tools.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: tools.c,v 1.1.1.3 2010/12/12 15:23:01 adam Exp $ */
/* tools.c - tools for slap tools */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/tools.c,v 1.105.2.16 2009/01/26 20:34:03 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/tools.c,v 1.105.2.19 2010/04/14 23:54:26 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,6 +44,11 @@ static unsigned nholes;
static int index_nattrs;
+static struct berval *tool_base;
+static int tool_scope;
+static Filter *tool_filter;
+static Entry *tool_next_entry;
+
#ifdef BDB_TOOL_IDL_CACHING
#define bdb_tool_idl_cmp BDB_SYMBOL(tool_idl_cmp)
#define bdb_tool_idl_flush_one BDB_SYMBOL(tool_idl_flush_one)
@@ -93,6 +98,9 @@ static void * bdb_tool_trickle_task( void *ctx, void *ptr );
static void * bdb_tool_index_task( void *ctx, void *ptr );
+static int
+bdb_tool_entry_get_int( BackendDB *be, ID id, Entry **ep );
+
int bdb_tool_entry_open(
BackendDB *be, int mode )
{
@@ -189,6 +197,20 @@ int bdb_tool_entry_close(
return 0;
}
+ID
+bdb_tool_entry_first_x(
+ BackendDB *be,
+ struct berval *base,
+ int scope,
+ Filter *f )
+{
+ tool_base = base;
+ tool_scope = scope;
+ tool_filter = f;
+
+ return bdb_tool_entry_next( be );
+}
+
ID bdb_tool_entry_next(
BackendDB *be )
{
@@ -200,6 +222,7 @@ ID bdb_tool_entry_next(
assert( slapMode & SLAP_TOOL_MODE );
assert( bdb != NULL );
+next:;
/* Get the header */
data.ulen = data.dlen = sizeof( ehbuf );
data.data = ehbuf;
@@ -226,6 +249,47 @@ ID bdb_tool_entry_next(
BDB_DISK2ID( key.data, &id );
previd = id;
+
+ if ( tool_filter || tool_base ) {
+ static Operation op = {0};
+ static Opheader ohdr = {0};
+
+ op.o_hdr = &ohdr;
+ op.o_bd = be;
+ op.o_tmpmemctx = NULL;
+ op.o_tmpmfuncs = &ch_mfuncs;
+
+ if ( tool_next_entry ) {
+ bdb_entry_release( &op, tool_next_entry, 0 );
+ tool_next_entry = NULL;
+ }
+
+ rc = bdb_tool_entry_get_int( be, id, &tool_next_entry );
+ if ( rc == LDAP_NO_SUCH_OBJECT ) {
+ goto next;
+ }
+
+ assert( tool_next_entry != NULL );
+
+#ifdef BDB_HIER
+ /* TODO: needed until BDB_HIER is handled accordingly
+ * in bdb_tool_entry_get_int() */
+ if ( tool_base && !dnIsSuffixScope( &tool_next_entry->e_nname, tool_base, tool_scope ) )
+ {
+ bdb_entry_release( &op, tool_next_entry, 0 );
+ tool_next_entry = NULL;
+ goto next;
+ }
+#endif
+
+ if ( tool_filter && test_filter( NULL, tool_next_entry, tool_filter ) != LDAP_COMPARE_TRUE )
+ {
+ bdb_entry_release( &op, tool_next_entry, 0 );
+ tool_next_entry = NULL;
+ goto next;
+ }
+ }
+
return id;
}
@@ -255,7 +319,8 @@ ID bdb_tool_dn2id_get(
return ei->bei_id;
}
-Entry* bdb_tool_entry_get( BackendDB *be, ID id )
+static int
+bdb_tool_entry_get_int( BackendDB *be, ID id, Entry **ep )
{
Entry *e = NULL;
char *dptr;
@@ -264,6 +329,12 @@ Entry* bdb_tool_entry_get( BackendDB *be, ID id )
assert( be != NULL );
assert( slapMode & SLAP_TOOL_MODE );
+ if ( ( tool_filter || tool_base ) && id == previd && tool_next_entry != NULL ) {
+ *ep = tool_next_entry;
+ tool_next_entry = NULL;
+ return LDAP_SUCCESS;
+ }
+
if ( id != previd ) {
data.ulen = data.dlen = sizeof( ehbuf );
data.data = ehbuf;
@@ -271,7 +342,10 @@ Entry* bdb_tool_entry_get( BackendDB *be, ID id )
BDB_ID2DISK( id, &nid );
rc = cursor->c_get( cursor, &key, &data, DB_SET );
- if ( rc ) goto done;
+ if ( rc ) {
+ rc = LDAP_OTHER;
+ goto done;
+ }
}
/* Get the header */
@@ -281,13 +355,19 @@ Entry* bdb_tool_entry_get( BackendDB *be, ID id )
rc = entry_header( &eh );
eoff = eh.data - eh.bv.bv_val;
eh.bv.bv_val = dptr;
- if ( rc ) goto done;
+ if ( rc ) {
+ rc = LDAP_OTHER;
+ goto done;
+ }
/* Get the size */
data.flags &= ~DB_DBT_PARTIAL;
data.ulen = 0;
- rc = cursor->c_get( cursor, &key, &data, DB_CURRENT );
- if ( rc != DB_BUFFER_SMALL ) goto done;
+ rc = cursor->c_get( cursor, &key, &data, DB_CURRENT );
+ if ( rc != DB_BUFFER_SMALL ) {
+ rc = LDAP_OTHER;
+ goto done;
+ }
/* Allocate a block and retrieve the data */
eh.bv.bv_len = eh.nvals * sizeof( struct berval ) + data.size;
@@ -299,8 +379,23 @@ Entry* bdb_tool_entry_get( BackendDB *be, ID id )
/* Skip past already parsed nattr/nvals */
eh.data += eoff;
- rc = cursor->c_get( cursor, &key, &data, DB_CURRENT );
- if ( rc ) goto done;
+ rc = cursor->c_get( cursor, &key, &data, DB_CURRENT );
+ if ( rc ) {
+ rc = LDAP_OTHER;
+ goto done;
+ }
+
+#ifndef BDB_HIER
+ /* TODO: handle BDB_HIER accordingly */
+ if ( tool_base != NULL ) {
+ struct berval ndn;
+ entry_decode_dn( &eh, NULL, &ndn );
+
+ if ( !dnIsSuffixScope( &ndn, tool_base, tool_scope ) ) {
+ return LDAP_NO_SUCH_OBJECT;
+ }
+ }
+#endif
#ifdef SLAP_ZONE_ALLOC
/* FIXME: will add ctx later */
@@ -336,6 +431,19 @@ Entry* bdb_tool_entry_get( BackendDB *be, ID id )
#endif
}
done:
+ if ( e != NULL ) {
+ *ep = e;
+ }
+
+ return rc;
+}
+
+Entry*
+bdb_tool_entry_get( BackendDB *be, ID id )
+{
+ Entry *e = NULL;
+
+ (void)bdb_tool_entry_get_int( be, id, &e );
return e;
}
@@ -612,6 +720,9 @@ int bdb_tool_entry_reindex(
Operation op = {0};
Opheader ohdr = {0};
+ assert( tool_base == NULL );
+ assert( tool_filter == NULL );
+
Debug( LDAP_DEBUG_ARGS,
"=> " LDAP_XSTRING(bdb_tool_entry_reindex) "( %ld )\n",
(long) id, 0, 0 );
diff --git a/external/bsd/openldap/dist/servers/slapd/back-bdb/trans.c b/external/bsd/openldap/dist/servers/slapd/back-bdb/trans.c
index f8bef84f764d..533841946803 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-bdb/trans.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-bdb/trans.c
@@ -1,10 +1,10 @@
-/* $NetBSD: trans.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: trans.c,v 1.1.1.3 2010/12/12 15:23:01 adam Exp $ */
/* trans.c - bdb backend transaction routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/trans.c,v 1.8.2.4 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-bdb/trans.c,v 1.8.2.5 2010/04/13 20:23:26 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/Makefile.in
index c5ce48e48f14..7550c47ea1f3 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for back-dnssrv
-# OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/Makefile.in,v 1.14.2.4 2009/01/22 00:01:05 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/Makefile.in,v 1.14.2.5 2010/04/13 20:23:26 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## Portions Copyright 1998-2003 Kurt D. Zeilenga.
## All rights reserved.
##
diff --git a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/bind.c b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/bind.c
index f71d1dfbf915..85a8093b386f 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/bind.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/bind.c
@@ -1,10 +1,10 @@
-/* $NetBSD: bind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: bind.c,v 1.1.1.3 2010/12/12 15:23:01 adam Exp $ */
/* bind.c - DNS SRV backend bind function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/bind.c,v 1.22.2.4 2009/01/22 00:01:05 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/bind.c,v 1.22.2.5 2010/04/13 20:23:26 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* Portions Copyright 2000-2003 Kurt D. Zeilenga.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/compare.c b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/compare.c
index 9462b395c335..22ecaa4bb361 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/compare.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/compare.c
@@ -1,10 +1,10 @@
-/* $NetBSD: compare.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: compare.c,v 1.1.1.3 2010/12/12 15:23:01 adam Exp $ */
/* compare.c - DNS SRV backend compare function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/compare.c,v 1.18.2.4 2009/01/22 00:01:06 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/compare.c,v 1.18.2.5 2010/04/13 20:23:26 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* Portions Copyright 2000-2003 Kurt D. Zeilenga.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/config.c b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/config.c
index 372f19c4d4bb..7f81b08c3a4f 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/config.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/config.c
@@ -1,10 +1,10 @@
-/* $NetBSD: config.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: config.c,v 1.1.1.3 2010/12/12 15:23:01 adam Exp $ */
/* config.c - DNS SRV backend configuration file routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/config.c,v 1.16.2.4 2009/01/22 00:01:06 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/config.c,v 1.16.2.6 2010/06/17 20:09:16 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* Portions Copyright 2000-2003 Kurt D. Zeilenga.
* All rights reserved.
*
@@ -31,6 +31,7 @@
#include "slap.h"
#include "proto-dnssrv.h"
+#if 0
int
dnssrv_back_db_config(
BackendDB *be,
@@ -52,3 +53,4 @@ dnssrv_back_db_config(
/* no configuration options (yet) */
return SLAP_CONF_UNKNOWN;
}
+#endif
diff --git a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/init.c b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/init.c
index 615b8634e3dc..4e9c1f2985b9 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/init.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/init.c
@@ -1,10 +1,10 @@
-/* $NetBSD: init.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: init.c,v 1.1.1.3 2010/12/12 15:23:01 adam Exp $ */
/* init.c - initialize ldap backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/init.c,v 1.29.2.5 2009/01/22 00:01:06 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/init.c,v 1.29.2.7 2010/06/17 20:09:16 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* Portions Copyright 2000-2003 Kurt D. Zeilenga.
* All rights reserved.
*
@@ -51,7 +51,7 @@ dnssrv_back_initialize(
bi->bi_db_init = 0;
bi->bi_db_destroy = 0;
- bi->bi_db_config = dnssrv_back_db_config;
+ bi->bi_db_config = 0 /* dnssrv_back_db_config */;
bi->bi_db_open = 0;
bi->bi_db_close = 0;
diff --git a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/proto-dnssrv.h b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/proto-dnssrv.h
index 0d2c1b67d163..f70c9dada5d3 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/proto-dnssrv.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/proto-dnssrv.h
@@ -1,9 +1,9 @@
-/* $NetBSD: proto-dnssrv.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: proto-dnssrv.h,v 1.1.1.3 2010/12/12 15:23:01 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/proto-dnssrv.h,v 1.5.2.4 2009/01/22 00:01:06 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/proto-dnssrv.h,v 1.5.2.5 2010/04/13 20:23:27 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/referral.c b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/referral.c
index cce3c4135e2e..1f89cdfcafa0 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/referral.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/referral.c
@@ -1,10 +1,10 @@
-/* $NetBSD: referral.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: referral.c,v 1.1.1.3 2010/12/12 15:23:01 adam Exp $ */
/* referral.c - DNS SRV backend referral handler */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/referral.c,v 1.26.2.5 2009/01/22 00:01:06 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/referral.c,v 1.26.2.6 2010/04/13 20:23:27 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* Portions Copyright 2000-2003 Kurt D. Zeilenga.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/search.c b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/search.c
index d28d9c3d157a..83765e36465d 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-dnssrv/search.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-dnssrv/search.c
@@ -1,10 +1,10 @@
-/* $NetBSD: search.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: search.c,v 1.1.1.3 2010/12/12 15:23:01 adam Exp $ */
/* search.c - DNS SRV backend search function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/search.c,v 1.44.2.6 2009/01/22 00:01:06 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-dnssrv/search.c,v 1.44.2.7 2010/04/13 20:23:27 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* Portions Copyright 2000-2003 Kurt D. Zeilenga.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-hdb/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-hdb/Makefile.in
index 377464c3f211..ada798e09b45 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-hdb/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-hdb/Makefile.in
@@ -1,8 +1,8 @@
# Makefile for back-hdb
-# OpenLDAP: pkg/ldap/servers/slapd/back-hdb/Makefile.in,v 1.14.2.7 2009/01/22 00:01:06 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-hdb/Makefile.in,v 1.14.2.8 2010/04/13 20:23:27 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-hdb/back-bdb.h b/external/bsd/openldap/dist/servers/slapd/back-hdb/back-bdb.h
index 450c0e50555d..a516349e3e4d 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-hdb/back-bdb.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-hdb/back-bdb.h
@@ -1,10 +1,10 @@
-/* $NetBSD: back-bdb.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: back-bdb.h,v 1.1.1.3 2010/12/12 15:23:01 adam Exp $ */
/* back-bdb.h - hdb back-end header file */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-hdb/back-bdb.h,v 1.5.2.4 2009/01/22 00:01:06 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-hdb/back-bdb.h,v 1.5.2.5 2010/04/13 20:23:27 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* Portions Copyright 2003 Howard Chu @ Symas Corp.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-ldap/Makefile.in
index 241155fa76b9..794c95a717e3 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for back-ldap
-# OpenLDAP: pkg/ldap/servers/slapd/back-ldap/Makefile.in,v 1.30.2.5 2009/01/22 00:01:06 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-ldap/Makefile.in,v 1.30.2.7 2010/04/14 22:31:47 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -15,10 +15,10 @@
SRCS = init.c config.c search.c bind.c unbind.c add.c compare.c \
delete.c modify.c modrdn.c extended.c chain.c \
- distproc.c monitor.c
+ distproc.c monitor.c pbind.c
OBJS = init.lo config.lo search.lo bind.lo unbind.lo add.lo compare.lo \
delete.lo modify.lo modrdn.lo extended.lo chain.lo \
- distproc.lo monitor.lo
+ distproc.lo monitor.lo pbind.lo
LDAP_INCDIR= ../../../include
LDAP_LIBDIR= ../../../libraries
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/add.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/add.c
index 6367383dc582..7e97cd64c482 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/add.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/add.c
@@ -1,10 +1,10 @@
-/* $NetBSD: add.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: add.c,v 1.1.1.3 2010/12/12 15:23:01 adam Exp $ */
/* add.c - ldap backend add function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/add.c,v 1.61.2.6 2009/01/22 00:01:06 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/add.c,v 1.61.2.7 2010/04/13 20:23:27 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/back-ldap.h b/external/bsd/openldap/dist/servers/slapd/back-ldap/back-ldap.h
index dbda40837851..bff65750d20a 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/back-ldap.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/back-ldap.h
@@ -1,10 +1,10 @@
-/* $NetBSD: back-ldap.h,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: back-ldap.h,v 1.1.1.4 2010/12/12 15:23:02 adam Exp $ */
/* back-ldap.h - ldap backend header file */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/back-ldap.h,v 1.88.2.15 2009/08/26 00:50:19 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/back-ldap.h,v 1.88.2.18 2010/04/19 19:28:14 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
@@ -236,10 +236,14 @@ typedef struct slap_idassert_t {
#define LDAP_BACK_AUTH_OBSOLETE_PROXY_AUTHZ (0x08U)
#define LDAP_BACK_AUTH_OBSOLETE_ENCODING_WORKAROUND (0x10U)
#define LDAP_BACK_AUTH_AUTHZ_ALL (0x20U)
+#define LDAP_BACK_AUTH_PROXYAUTHZ_CRITICAL (0x40U)
#define li_idassert_flags li_idassert.si_flags
BerVarray si_authz;
#define li_idassert_authz li_idassert.si_authz
+
+ BerVarray si_passthru;
+#define li_idassert_passthru li_idassert.si_passthru
} slap_idassert_t;
/*
@@ -450,6 +454,7 @@ typedef struct ldap_extra_t {
int version, slap_idassert_t *si, LDAPControl *ctrl );
int (*controls_free)( Operation *op, SlapReply *rs, LDAPControl ***pctrls );
int (*idassert_authzfrom_parse_cf)( const char *fname, int lineno, const char *arg, slap_idassert_t *si );
+ int (*idassert_passthru_parse_cf)( const char *fname, int lineno, const char *arg, slap_idassert_t *si );
int (*idassert_parse_cf)( const char *fname, int lineno, int argc, char *argv[], slap_idassert_t *si );
void (*retry_info_destroy)( slap_retry_info_t *ri );
int (*retry_info_parse)( char *in, slap_retry_info_t *ri, char *buf, ber_len_t buflen );
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/bind.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/bind.c
index d05b93714b71..4b187ca8e277 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/bind.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/bind.c
@@ -1,10 +1,10 @@
-/* $NetBSD: bind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: bind.c,v 1.1.1.3 2010/12/12 15:23:03 adam Exp $ */
/* bind.c - ldap backend bind function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/bind.c,v 1.162.2.25 2009/09/30 00:29:31 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/bind.c,v 1.162.2.29 2010/06/10 19:38:49 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
@@ -1300,6 +1300,7 @@ ldap_back_dobind_int(
ber_int_t msgid;
ber_tag_t o_tag = op->o_tag;
slap_callback cb = {0};
+ char *tmp_dn;
assert( lcp != NULL );
assert( retries >= 0 );
@@ -1464,8 +1465,18 @@ retry_lock:;
#endif /* HAVE_CYRUS_SASL */
retry:;
+ if ( BER_BVISNULL( &lc->lc_cred ) ) {
+ tmp_dn = "";
+ if ( !BER_BVISNULL( &lc->lc_bound_ndn ) && !BER_BVISEMPTY( &lc->lc_bound_ndn ) ) {
+ Debug( LDAP_DEBUG_ANY, "%s ldap_back_dobind_int: DN=\"%s\" without creds, binding anonymously",
+ op->o_log_prefix, lc->lc_bound_ndn.bv_val, 0 );
+ }
+
+ } else {
+ tmp_dn = lc->lc_bound_ndn.bv_val;
+ }
rs->sr_err = ldap_sasl_bind( lc->lc_ld,
- BER_BVISNULL( &lc->lc_cred ) ? "" : lc->lc_bound_ndn.bv_val,
+ tmp_dn,
LDAP_SASL_SIMPLE, &lc->lc_cred,
NULL, NULL, &msgid );
@@ -1877,19 +1888,12 @@ retry:;
send_ldap_result( op, rs );
}
- if ( match ) {
- if ( rs->sr_matched != match ) {
- free( (char *)rs->sr_matched );
- }
- rs->sr_matched = NULL;
- ldap_memfree( match );
- }
-
if ( text ) {
ldap_memfree( text );
}
rs->sr_text = NULL;
+ /* there can't be refs with a (successful) bind */
if ( rs->sr_ref ) {
op->o_tmpfree( rs->sr_ref, op->o_tmpmemctx );
rs->sr_ref = NULL;
@@ -1899,10 +1903,50 @@ retry:;
ber_memvfree( (void **)refs );
}
- if ( ctrls ) {
- assert( rs->sr_ctrls != NULL );
+ /* match should not be possible with a successful bind */
+ if ( match ) {
+ if ( rs->sr_matched != match ) {
+ free( (char *)rs->sr_matched );
+ }
+ rs->sr_matched = NULL;
+ ldap_memfree( match );
+ }
+
+ if ( ctrls != NULL ) {
+ if ( op->o_tag == LDAP_REQ_BIND && rs->sr_err == LDAP_SUCCESS ) {
+ int i;
+
+ for ( i = 0; ctrls[i] != NULL; i++ );
+
+ rs->sr_ctrls = op->o_tmpalloc( sizeof( LDAPControl * )*( i + 1 ),
+ op->o_tmpmemctx );
+ for ( i = 0; ctrls[ i ] != NULL; i++ ) {
+ char *ptr;
+ ber_len_t oidlen = strlen( ctrls[i]->ldctl_oid );
+ ber_len_t size = sizeof( LDAPControl )
+ + oidlen + 1
+ + ctrls[i]->ldctl_value.bv_len + 1;
+
+ rs->sr_ctrls[ i ] = op->o_tmpalloc( size, op->o_tmpmemctx );
+ rs->sr_ctrls[ i ]->ldctl_oid = (char *)&rs->sr_ctrls[ i ][ 1 ];
+ lutil_strcopy( rs->sr_ctrls[ i ]->ldctl_oid, ctrls[i]->ldctl_oid );
+ rs->sr_ctrls[ i ]->ldctl_value.bv_val
+ = (char *)&rs->sr_ctrls[ i ]->ldctl_oid[oidlen + 1];
+ rs->sr_ctrls[ i ]->ldctl_value.bv_len
+ = ctrls[i]->ldctl_value.bv_len;
+ ptr = lutil_memcopy( rs->sr_ctrls[ i ]->ldctl_value.bv_val,
+ ctrls[i]->ldctl_value.bv_val, ctrls[i]->ldctl_value.bv_len );
+ *ptr = '\0';
+ }
+ rs->sr_ctrls[ i ] = NULL;
+ rs->sr_flags |= REP_CTRLS_MUSTBEFREED;
+
+ } else {
+ assert( rs->sr_ctrls != NULL );
+ rs->sr_ctrls = NULL;
+ }
+
ldap_controls_free( ctrls );
- rs->sr_ctrls = NULL;
}
return( LDAP_ERR_OK( rs->sr_err ) ? LDAP_SUCCESS : rs->sr_err );
@@ -2059,32 +2103,51 @@ ldap_back_is_proxy_authz( Operation *op, SlapReply *rs, ldap_back_send_t sendok,
goto done;
- } else if ( li->li_idassert_authz && !be_isroot( op ) ) {
- struct berval authcDN;
+ } else if ( !be_isroot( op ) ) {
+ if ( li->li_idassert_passthru ) {
+ struct berval authcDN;
- if ( BER_BVISNULL( &ndn ) ) {
- authcDN = slap_empty_bv;
-
- } else {
- authcDN = ndn;
- }
- rs->sr_err = slap_sasl_matches( op, li->li_idassert_authz,
- &authcDN, &authcDN );
- if ( rs->sr_err != LDAP_SUCCESS ) {
- if ( li->li_idassert_flags & LDAP_BACK_AUTH_PRESCRIPTIVE ) {
- if ( sendok & LDAP_BACK_SENDERR ) {
- send_ldap_result( op, rs );
- dobind = -1;
- }
+ if ( BER_BVISNULL( &ndn ) ) {
+ authcDN = slap_empty_bv;
} else {
- rs->sr_err = LDAP_SUCCESS;
- *binddn = slap_empty_bv;
- *bindcred = slap_empty_bv;
+ authcDN = ndn;
+ }
+ rs->sr_err = slap_sasl_matches( op, li->li_idassert_passthru,
+ &authcDN, &authcDN );
+ if ( rs->sr_err == LDAP_SUCCESS ) {
+ dobind = 0;
break;
}
+ }
- goto done;
+ if ( li->li_idassert_authz ) {
+ struct berval authcDN;
+
+ if ( BER_BVISNULL( &ndn ) ) {
+ authcDN = slap_empty_bv;
+
+ } else {
+ authcDN = ndn;
+ }
+ rs->sr_err = slap_sasl_matches( op, li->li_idassert_authz,
+ &authcDN, &authcDN );
+ if ( rs->sr_err != LDAP_SUCCESS ) {
+ if ( li->li_idassert_flags & LDAP_BACK_AUTH_PRESCRIPTIVE ) {
+ if ( sendok & LDAP_BACK_SENDERR ) {
+ send_ldap_result( op, rs );
+ dobind = -1;
+ }
+
+ } else {
+ rs->sr_err = LDAP_SUCCESS;
+ *binddn = slap_empty_bv;
+ *bindcred = slap_empty_bv;
+ break;
+ }
+
+ goto done;
+ }
}
}
@@ -2470,6 +2533,7 @@ ldap_back_proxy_authz_ctrl(
}
ctrl->ldctl_oid = LDAP_CONTROL_PROXY_AUTHZ;
+ ctrl->ldctl_iscritical = ( ( si->si_flags & LDAP_BACK_AUTH_PROXYAUTHZ_CRITICAL ) == LDAP_BACK_AUTH_PROXYAUTHZ_CRITICAL );
switch ( si->si_mode ) {
/* already in u:ID or dn:DN form */
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/chain.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/chain.c
index f8842a4c3c86..37f7171c8d92 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/chain.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/chain.c
@@ -1,10 +1,10 @@
-/* $NetBSD: chain.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: chain.c,v 1.1.1.3 2010/12/12 15:23:04 adam Exp $ */
/* chain.c - chain LDAP operations */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/chain.c,v 1.52.2.11 2009/08/26 00:50:19 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/chain.c,v 1.52.2.12 2010/04/13 20:23:28 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 2003 Howard Chu.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/compare.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/compare.c
index e9850670b78a..478d5c840ee5 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/compare.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/compare.c
@@ -1,10 +1,10 @@
-/* $NetBSD: compare.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: compare.c,v 1.1.1.3 2010/12/12 15:23:04 adam Exp $ */
/* compare.c - ldap backend compare function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/compare.c,v 1.60.2.6 2009/01/22 00:01:06 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/compare.c,v 1.60.2.7 2010/04/13 20:23:28 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Howard Chu.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/config.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/config.c
index d2761eeed87f..e1750037c702 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/config.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/config.c
@@ -1,10 +1,10 @@
-/* $NetBSD: config.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: config.c,v 1.1.1.4 2010/12/12 15:23:05 adam Exp $ */
/* config.c - ldap backend configuration file routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/config.c,v 1.115.2.15 2009/09/29 21:47:37 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/config.c,v 1.115.2.23 2010/04/19 19:28:15 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Howard Chu.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
@@ -43,6 +43,7 @@
static SLAP_EXTOP_MAIN_FN ldap_back_exop_whoami;
static ConfigDriver ldap_back_cf_gen;
+static ConfigDriver ldap_pbind_cf_gen;
enum {
LDAP_BACK_CFG_URI = 1,
@@ -55,6 +56,7 @@ enum {
LDAP_BACK_CFG_IDASSERT_AUTHCDN,
LDAP_BACK_CFG_IDASSERT_PASSWD,
LDAP_BACK_CFG_IDASSERT_AUTHZFROM,
+ LDAP_BACK_CFG_IDASSERT_PASSTHRU,
LDAP_BACK_CFG_IDASSERT_METHOD,
LDAP_BACK_CFG_IDASSERT_BIND,
LDAP_BACK_CFG_REBIND,
@@ -186,6 +188,7 @@ static ConfigTable ldapcfg[] = {
ldap_back_cf_gen, "( OLcfgDbAt:3.9 "
"NAME 'olcDbIDAssertAuthzFrom' "
"DESC 'Remote Identity Assertion authz rules' "
+ "EQUALITY caseIgnoreMatch "
"SYNTAX OMsDirectoryString "
"X-ORDERED 'VALUES' )",
NULL, NULL },
@@ -327,6 +330,16 @@ static ConfigTable ldapcfg[] = {
"SYNTAX OMsBoolean "
"SINGLE-VALUE )",
NULL, NULL },
+ { "idassert-passThru", "authzRule", 2, 2, 0,
+ ARG_MAGIC|LDAP_BACK_CFG_IDASSERT_PASSTHRU,
+ ldap_back_cf_gen, "( OLcfgDbAt:3.27 "
+ "NAME 'olcDbIDAssertPassThru' "
+ "DESC 'Remote Identity Assertion passthru rules' "
+ "EQUALITY caseIgnoreMatch "
+ "SYNTAX OMsDirectoryString "
+ "X-ORDERED 'VALUES' )",
+ NULL, NULL },
+
{ "suffixmassage", "[virtual]> log, c->cr_msg, 0 );
return 1;
}
+
+ if ( c->valx == -1 ) {
+ ber_bvarray_add( &si->si_authz, &bv );
+
+ } else {
+ int i = 0;
+ if ( si->si_authz != NULL ) {
+ for ( ; !BER_BVISNULL( &si->si_authz[ i ] ); i++ )
+ ;
+ }
+
+ if ( i <= c->valx ) {
+ ber_bvarray_add( &si->si_authz, &bv );
+
+ } else {
+ BerVarray tmp = ber_memrealloc( si->si_authz,
+ sizeof( struct berval )*( i + 2 ) );
+ if ( tmp == NULL ) {
+ return -1;
+ }
+ si->si_authz = tmp;
+ for ( ; i > c->valx; i-- ) {
+ si->si_authz[ i ] = si->si_authz[ i - 1 ];
+ }
+ si->si_authz[ c->valx ] = bv;
+ }
+ }
+
+ return 0;
+}
+
+static int
+slap_idassert_passthru_parse( ConfigArgs *c, slap_idassert_t *si )
+{
+ struct berval bv;
+ struct berval in;
+ int rc;
+
+ ber_str2bv( c->argv[ 1 ], 0, 0, &in );
+ rc = authzNormalize( 0, NULL, NULL, &in, &bv, NULL );
+ if ( rc != LDAP_SUCCESS ) {
+ snprintf( c->cr_msg, sizeof( c->cr_msg ),
+ "\"idassert-passThru \": "
+ "invalid syntax" );
+ Debug( LDAP_DEBUG_ANY, "%s: %s.\n", c->log, c->cr_msg, 0 );
+ return 1;
+ }
- ber_bvarray_add( &si->si_authz, &bv );
+ if ( c->valx == -1 ) {
+ ber_bvarray_add( &si->si_passthru, &bv );
+
+ } else {
+ int i = 0;
+ if ( si->si_passthru != NULL ) {
+ for ( ; !BER_BVISNULL( &si->si_passthru[ i ] ); i++ )
+ ;
+ }
+
+ if ( i <= c->valx ) {
+ ber_bvarray_add( &si->si_passthru, &bv );
+
+ } else {
+ BerVarray tmp = ber_memrealloc( si->si_passthru,
+ sizeof( struct berval )*( i + 2 ) );
+ if ( tmp == NULL ) {
+ return -1;
+ }
+ si->si_passthru = tmp;
+ for ( ; i > c->valx; i-- ) {
+ si->si_passthru[ i ] = si->si_passthru[ i - 1 ];
+ }
+ si->si_passthru[ c->valx ] = bv;
+ }
+ }
return 0;
}
@@ -725,6 +865,12 @@ slap_idassert_parse( ConfigArgs *c, slap_idassert_t *si )
si->si_flags |= LDAP_BACK_AUTH_OBSOLETE_ENCODING_WORKAROUND;
}
+ } else if ( strcasecmp( flags[ j ], "proxy-authz-critical" ) == 0 ) {
+ si->si_flags |= LDAP_BACK_AUTH_PROXYAUTHZ_CRITICAL;
+
+ } else if ( strcasecmp( flags[ j ], "proxy-authz-non-critical" ) == 0 ) {
+ si->si_flags &= ~LDAP_BACK_AUTH_PROXYAUTHZ_CRITICAL;
+
} else {
snprintf( c->cr_msg, sizeof( c->cr_msg ),
"\"idassert-bind \": "
@@ -742,6 +888,11 @@ slap_idassert_parse( ConfigArgs *c, slap_idassert_t *si )
}
} else if ( bindconf_parse( c->argv[ i ], &si->si_bc ) ) {
+ snprintf( c->cr_msg, sizeof( c->cr_msg ),
+ "\"idassert-bind \": "
+ "unable to parse field \"%s\"",
+ c->argv[ i ] );
+ Debug( LDAP_DEBUG_ANY, "%s: %s.\n", c->log, c->cr_msg, 0 );
return 1;
}
}
@@ -780,6 +931,22 @@ slap_idassert_authzfrom_parse_cf( const char *fname, int lineno, const char *arg
return slap_idassert_authzfrom_parse( &c, si );
}
+int
+slap_idassert_passthru_parse_cf( const char *fname, int lineno, const char *arg, slap_idassert_t *si )
+{
+ ConfigArgs c = { 0 };
+ char *argv[ 3 ];
+
+ snprintf( c.log, sizeof( c.log ), "%s: line %d", fname, lineno );
+ c.argc = 2;
+ c.argv = argv;
+ argv[ 0 ] = "idassert-passThru";
+ argv[ 1 ] = (char *)arg;
+ argv[ 2 ] = NULL;
+
+ return slap_idassert_passthru_parse( &c, si );
+}
+
int
slap_idassert_parse_cf( const char *fname, int lineno, int argc, char *argv[], slap_idassert_t *si )
{
@@ -881,11 +1048,23 @@ ldap_back_cf_gen( ConfigArgs *c )
rc = 1;
break;
- case LDAP_BACK_CFG_IDASSERT_AUTHZFROM: {
+ case LDAP_BACK_CFG_IDASSERT_AUTHZFROM:
+ case LDAP_BACK_CFG_IDASSERT_PASSTHRU: {
+ BerVarray *bvp;
int i;
+ struct berval bv = BER_BVNULL;
+ char buf[SLAP_TEXT_BUFLEN];
- if ( li->li_idassert_authz == NULL ) {
- if ( ( li->li_idassert_flags & LDAP_BACK_AUTH_AUTHZ_ALL ) ) {
+ switch ( c->type ) {
+ case LDAP_BACK_CFG_IDASSERT_AUTHZFROM: bvp = &li->li_idassert_authz; break;
+ case LDAP_BACK_CFG_IDASSERT_PASSTHRU: bvp = &li->li_idassert_passthru; break;
+ default: assert( 0 ); break;
+ }
+
+ if ( *bvp == NULL ) {
+ if ( bvp == &li->li_idassert_authz
+ && ( li->li_idassert_flags & LDAP_BACK_AUTH_AUTHZ_ALL ) )
+ {
BER_BVSTR( &bv, "*" );
value_add_one( &c->rvalue_vals, &bv );
@@ -895,9 +1074,18 @@ ldap_back_cf_gen( ConfigArgs *c )
break;
}
- for ( i = 0; !BER_BVISNULL( &li->li_idassert_authz[ i ] ); i++ )
- {
- value_add_one( &c->rvalue_vals, &li->li_idassert_authz[ i ] );
+ for ( i = 0; !BER_BVISNULL( &((*bvp)[ i ]) ); i++ ) {
+ char *ptr;
+ int len = snprintf( buf, sizeof( buf ), SLAP_X_ORDERED_FMT, i );
+ bv.bv_len = ((*bvp)[ i ]).bv_len + len;
+ bv.bv_val = ber_memrealloc( bv.bv_val, bv.bv_len + 1 );
+ ptr = bv.bv_val;
+ ptr = lutil_strcopy( ptr, buf );
+ ptr = lutil_strncopy( ptr, ((*bvp)[ i ]).bv_val, ((*bvp)[ i ]).bv_len );
+ value_add_one( &c->rvalue_vals, &bv );
+ }
+ if ( bv.bv_val ) {
+ ber_memfree( bv.bv_val );
}
break;
}
@@ -957,7 +1145,7 @@ ldap_back_cf_gen( ConfigArgs *c )
(void)lutil_strcopy( ptr, "authz=native" );
}
- len = bv.bv_len + STRLENOF( "flags=non-prescriptive,override,obsolete-encoding-workaround" );
+ len = bv.bv_len + STRLENOF( "flags=non-prescriptive,override,obsolete-encoding-workaround,proxy-authz-non-critical" );
/* flags */
if ( !BER_BVISEMPTY( &bv ) ) {
len += STRLENOF( " " );
@@ -990,6 +1178,13 @@ ldap_back_cf_gen( ConfigArgs *c )
ptr = lutil_strcopy( ptr, ",obsolete-encoding-workaround" );
}
+ if ( li->li_idassert_flags & LDAP_BACK_AUTH_PROXYAUTHZ_CRITICAL ) {
+ ptr = lutil_strcopy( ptr, ",proxy-authz-critical" );
+
+ } else {
+ ptr = lutil_strcopy( ptr, ",proxy-authz-non-critical" );
+ }
+
bv.bv_len = ( ptr - bv.bv_val );
/* end-of-flags */
}
@@ -1232,14 +1427,47 @@ ldap_back_cf_gen( ConfigArgs *c )
break;
case LDAP_BACK_CFG_IDASSERT_AUTHZFROM:
- if ( li->li_idassert_authz != NULL ) {
- ber_bvarray_free( li->li_idassert_authz );
- li->li_idassert_authz = NULL;
+ case LDAP_BACK_CFG_IDASSERT_PASSTHRU: {
+ BerVarray *bvp;
+
+ switch ( c->type ) {
+ case LDAP_BACK_CFG_IDASSERT_AUTHZFROM: bvp = &li->li_idassert_authz; break;
+ case LDAP_BACK_CFG_IDASSERT_PASSTHRU: bvp = &li->li_idassert_passthru; break;
+ default: assert( 0 ); break;
}
- break;
+
+ if ( c->valx < 0 ) {
+ if ( *bvp != NULL ) {
+ ber_bvarray_free( *bvp );
+ *bvp = NULL;
+ }
+
+ } else {
+ int i;
+
+ if ( *bvp == NULL ) {
+ rc = 1;
+ break;
+ }
+
+ for ( i = 0; !BER_BVISNULL( &((*bvp)[ i ]) ); i++ )
+ ;
+
+ if ( i >= c->valx ) {
+ rc = 1;
+ break;
+ }
+ ber_memfree( ((*bvp)[ c->valx ]).bv_val );
+ for ( i = c->valx; !BER_BVISNULL( &((*bvp)[ i + 1 ]) ); i++ ) {
+ (*bvp)[ i ] = (*bvp)[ i + 1 ];
+ }
+ BER_BVZERO( &((*bvp)[ i ]) );
+ }
+ } break;
case LDAP_BACK_CFG_IDASSERT_BIND:
bindconf_free( &li->li_idassert.si_bc );
+ memset( &li->li_idassert, 0, sizeof( slap_idassert_t ) );
break;
case LDAP_BACK_CFG_REBIND:
@@ -1677,6 +1905,10 @@ done_url:;
rc = slap_idassert_authzfrom_parse( c, &li->li_idassert );
break;
+ case LDAP_BACK_CFG_IDASSERT_PASSTHRU:
+ rc = slap_idassert_passthru_parse( c, &li->li_idassert );
+ break;
+
case LDAP_BACK_CFG_IDASSERT_METHOD:
/* no longer supported */
snprintf( c->cr_msg, sizeof( c->cr_msg ),
@@ -2035,6 +2267,26 @@ ldap_back_init_cf( BackendInfo *bi )
return 0;
}
+static int
+ldap_pbind_cf_gen( ConfigArgs *c )
+{
+ slap_overinst *on = (slap_overinst *)c->bi;
+ void *private = c->be->be_private;
+ int rc;
+
+ c->be->be_private = on->on_bi.bi_private;
+ rc = ldap_back_cf_gen( c );
+ c->be->be_private = private;
+ return rc;
+}
+
+int
+ldap_pbind_init_cf( BackendInfo *bi )
+{
+ bi->bi_cf_ocs = pbindocs;
+
+ return config_register_schema( pbindcfg, pbindocs );
+}
static int
ldap_back_exop_whoami(
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/delete.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/delete.c
index 8e146205b147..240308d4064f 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/delete.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/delete.c
@@ -1,10 +1,10 @@
-/* $NetBSD: delete.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: delete.c,v 1.1.1.3 2010/12/12 15:23:05 adam Exp $ */
/* delete.c - ldap backend delete function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/delete.c,v 1.46.2.6 2009/01/22 00:01:06 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/delete.c,v 1.46.2.7 2010/04/13 20:23:28 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Howard Chu.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/distproc.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/distproc.c
index 760d36e0b38c..3af51a6515bb 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/distproc.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/distproc.c
@@ -1,10 +1,10 @@
-/* $NetBSD: distproc.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: distproc.c,v 1.1.1.3 2010/12/12 15:23:05 adam Exp $ */
/* distproc.c - implement distributed procedures */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/distproc.c,v 1.3.2.8 2009/01/22 00:01:06 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/distproc.c,v 1.3.2.9 2010/04/13 20:23:28 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* Portions Copyright 2003 Howard Chu.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/extended.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/extended.c
index 976f736ba644..2b101529aafe 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/extended.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/extended.c
@@ -1,10 +1,10 @@
-/* $NetBSD: extended.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: extended.c,v 1.1.1.3 2010/12/12 15:23:05 adam Exp $ */
/* extended.c - ldap backend extended routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/extended.c,v 1.36.2.10 2009/09/29 21:47:37 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/extended.c,v 1.36.2.11 2010/04/13 20:23:28 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/init.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/init.c
index 27af3a504165..b7a2fd2d1af2 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/init.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/init.c
@@ -1,10 +1,10 @@
-/* $NetBSD: init.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: init.c,v 1.1.1.4 2010/12/12 15:23:05 adam Exp $ */
/* init.c - initialize ldap backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/init.c,v 1.99.2.12 2009/08/26 00:50:19 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/init.c,v 1.99.2.16 2010/04/15 20:25:48 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Howard Chu.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
@@ -38,6 +38,7 @@ static const ldap_extra_t ldap_extra = {
ldap_back_proxy_authz_ctrl,
ldap_back_controls_free,
slap_idassert_authzfrom_parse_cf,
+ slap_idassert_passthru_parse_cf,
slap_idassert_parse_cf,
slap_retry_info_destroy,
slap_retry_info_parse,
@@ -106,6 +107,11 @@ ldap_back_initialize( BackendInfo *bi )
return rc;
}
+ rc = pbind_initialize();
+ if ( rc ) {
+ return rc;
+ }
+
#ifdef SLAP_DISTPROC
rc = distproc_initialize();
if ( rc ) {
@@ -300,50 +306,11 @@ ldap_back_db_destroy( Backend *be, ConfigReply *cr )
ber_bvarray_free( li->li_bvuri );
li->li_bvuri = NULL;
}
- if ( !BER_BVISNULL( &li->li_acl_authcID ) ) {
- ch_free( li->li_acl_authcID.bv_val );
- BER_BVZERO( &li->li_acl_authcID );
- }
- if ( !BER_BVISNULL( &li->li_acl_authcDN ) ) {
- ch_free( li->li_acl_authcDN.bv_val );
- BER_BVZERO( &li->li_acl_authcDN );
- }
- if ( !BER_BVISNULL( &li->li_acl_passwd ) ) {
- ch_free( li->li_acl_passwd.bv_val );
- BER_BVZERO( &li->li_acl_passwd );
- }
- if ( !BER_BVISNULL( &li->li_acl_sasl_mech ) ) {
- ch_free( li->li_acl_sasl_mech.bv_val );
- BER_BVZERO( &li->li_acl_sasl_mech );
- }
- if ( !BER_BVISNULL( &li->li_acl_sasl_realm ) ) {
- ch_free( li->li_acl_sasl_realm.bv_val );
- BER_BVZERO( &li->li_acl_sasl_realm );
- }
- if ( !BER_BVISNULL( &li->li_idassert_authcID ) ) {
- ch_free( li->li_idassert_authcID.bv_val );
- BER_BVZERO( &li->li_idassert_authcID );
- }
- if ( !BER_BVISNULL( &li->li_idassert_authcDN ) ) {
- ch_free( li->li_idassert_authcDN.bv_val );
- BER_BVZERO( &li->li_idassert_authcDN );
- }
- if ( !BER_BVISNULL( &li->li_idassert_passwd ) ) {
- ch_free( li->li_idassert_passwd.bv_val );
- BER_BVZERO( &li->li_idassert_passwd );
- }
- if ( !BER_BVISNULL( &li->li_idassert_authzID ) ) {
- ch_free( li->li_idassert_authzID.bv_val );
- BER_BVZERO( &li->li_idassert_authzID );
- }
- if ( !BER_BVISNULL( &li->li_idassert_sasl_mech ) ) {
- ch_free( li->li_idassert_sasl_mech.bv_val );
- BER_BVZERO( &li->li_idassert_sasl_mech );
- }
- if ( !BER_BVISNULL( &li->li_idassert_sasl_realm ) ) {
- ch_free( li->li_idassert_sasl_realm.bv_val );
- BER_BVZERO( &li->li_idassert_sasl_realm );
- }
+
+ bindconf_free( &li->li_tls );
+ bindconf_free( &li->li_acl );
+ bindconf_free( &li->li_idassert.si_bc );
+
if ( li->li_idassert_authz != NULL ) {
ber_bvarray_free( li->li_idassert_authz );
li->li_idassert_authz = NULL;
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/modify.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/modify.c
index 6963581c1982..e5cf9c9d9b5b 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/modify.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/modify.c
@@ -1,10 +1,10 @@
-/* $NetBSD: modify.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modify.c,v 1.1.1.3 2010/12/12 15:23:06 adam Exp $ */
/* modify.c - ldap backend modify function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/modify.c,v 1.69.2.6 2009/01/22 00:01:06 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/modify.c,v 1.69.2.7 2010/04/13 20:23:28 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Howard Chu.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/modrdn.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/modrdn.c
index 71a36b348f94..85a6c7490f48 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/modrdn.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/modrdn.c
@@ -1,10 +1,10 @@
-/* $NetBSD: modrdn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modrdn.c,v 1.1.1.3 2010/12/12 15:23:06 adam Exp $ */
/* modrdn.c - ldap backend modrdn function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/modrdn.c,v 1.47.2.8 2009/01/22 00:01:06 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/modrdn.c,v 1.47.2.9 2010/04/13 20:23:29 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Howard Chu.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/monitor.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/monitor.c
index 2d123843e180..07ee0cbc0ddc 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/monitor.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/monitor.c
@@ -1,10 +1,10 @@
-/* $NetBSD: monitor.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: monitor.c,v 1.1.1.3 2010/12/12 15:23:06 adam Exp $ */
/* monitor.c - monitor ldap backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/monitor.c,v 1.2.2.6 2009/01/22 00:01:06 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/monitor.c,v 1.2.2.7 2010/04/13 20:23:29 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Howard Chu.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/pbind.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/pbind.c
new file mode 100644
index 000000000000..fa0610a72554
--- /dev/null
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/pbind.c
@@ -0,0 +1,175 @@
+/* $NetBSD: pbind.c,v 1.1.1.1 2010/12/12 15:23:06 adam Exp $ */
+
+/* pbind.c - passthru Bind overlay */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/pbind.c,v 1.1.2.2 2010/04/14 22:31:48 quanah Exp */
+/* This work is part of OpenLDAP Software .
+ *
+ * Copyright 2003-2010 The OpenLDAP Foundation.
+ * Portions Copyright 2003-2010 Howard Chu.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in the file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * .
+ */
+/* ACKNOWLEDGEMENTS:
+ * This work was initially developed by the Howard Chu for inclusion
+ * in OpenLDAP Software.
+ */
+
+#include "portable.h"
+
+#include
+
+#include
+#include
+
+#include "lutil.h"
+#include "slap.h"
+#include "back-ldap.h"
+#include "config.h"
+
+static BackendInfo *lback;
+
+static slap_overinst ldappbind;
+
+static int
+ldap_pbind_bind(
+ Operation *op,
+ SlapReply *rs )
+{
+ slap_overinst *on = (slap_overinst *) op->o_bd->bd_info;
+ void *private = op->o_bd->be_private;
+ void *bi = op->o_bd->bd_info;
+ int rc;
+
+ op->o_bd->bd_info = lback;
+ op->o_bd->be_private = on->on_bi.bi_private;
+ rc = lback->bi_op_bind( op, rs );
+ op->o_bd->be_private = private;
+ op->o_bd->bd_info = bi;
+
+ return rc;
+}
+
+static int
+ldap_pbind_db_init(
+ BackendDB *be,
+ ConfigReply *cr )
+{
+ slap_overinst *on = (slap_overinst *)be->bd_info;
+ ConfigOCs *be_cf_ocs = be->be_cf_ocs;
+ void *private = be->be_private;
+ int rc;
+
+ if ( lback == NULL ) {
+ lback = backend_info( "ldap" );
+
+ if ( lback == NULL ) {
+ return 1;
+ }
+ }
+
+ rc = lback->bi_db_init( be, cr );
+ on->on_bi.bi_private = be->be_private;
+ be->be_cf_ocs = be_cf_ocs;
+ be->be_private = private;
+
+ return rc;
+}
+
+static int
+ldap_pbind_db_open(
+ BackendDB *be,
+ ConfigReply *cr )
+{
+ slap_overinst *on = (slap_overinst *) be->bd_info;
+ void *private = be->be_private;
+ int rc;
+ int monitoring;
+
+ be->be_private = on->on_bi.bi_private;
+ monitoring = ( SLAP_DBFLAGS( be ) & SLAP_DBFLAG_MONITORING );
+ SLAP_DBFLAGS( be ) &= ~SLAP_DBFLAG_MONITORING;
+ rc = lback->bi_db_open( be, cr );
+ SLAP_DBFLAGS( be ) |= monitoring;
+ be->be_private = private;
+
+ return rc;
+}
+
+static int
+ldap_pbind_db_close(
+ BackendDB *be,
+ ConfigReply *cr )
+{
+ slap_overinst *on = (slap_overinst *) be->bd_info;
+ void *private = be->be_private;
+ int rc;
+
+ be->be_private = on->on_bi.bi_private;
+ rc = lback->bi_db_close( be, cr );
+ be->be_private = private;
+
+ return rc;
+}
+
+static int
+ldap_pbind_db_destroy(
+ BackendDB *be,
+ ConfigReply *cr )
+{
+ slap_overinst *on = (slap_overinst *) be->bd_info;
+ void *private = be->be_private;
+ int rc;
+
+ be->be_private = on->on_bi.bi_private;
+ rc = lback->bi_db_close( be, cr );
+ on->on_bi.bi_private = be->be_private;
+ be->be_private = private;
+
+ return rc;
+}
+
+static int
+ldap_pbind_connection_destroy(
+ BackendDB *be,
+ Connection *conn
+)
+{
+ slap_overinst *on = (slap_overinst *) be->bd_info;
+ void *private = be->be_private;
+ int rc;
+
+ be->be_private = on->on_bi.bi_private;
+ rc = lback->bi_connection_destroy( be, conn );
+ be->be_private = private;
+
+ return rc;
+}
+
+int
+pbind_initialize( void )
+{
+ int rc;
+
+ ldappbind.on_bi.bi_type = "pbind";
+ ldappbind.on_bi.bi_db_init = ldap_pbind_db_init;
+ ldappbind.on_bi.bi_db_open = ldap_pbind_db_open;
+ ldappbind.on_bi.bi_db_close = ldap_pbind_db_close;
+ ldappbind.on_bi.bi_db_destroy = ldap_pbind_db_destroy;
+
+ ldappbind.on_bi.bi_op_bind = ldap_pbind_bind;
+ ldappbind.on_bi.bi_connection_destroy = ldap_pbind_connection_destroy;
+
+ rc = ldap_pbind_init_cf( &ldappbind.on_bi );
+ if ( rc ) {
+ return rc;
+ }
+
+ return overlay_register( &ldappbind );
+}
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/proto-ldap.h b/external/bsd/openldap/dist/servers/slapd/back-ldap/proto-ldap.h
index 08b4d3f58f75..38997033e563 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/proto-ldap.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/proto-ldap.h
@@ -1,9 +1,9 @@
-/* $NetBSD: proto-ldap.h,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: proto-ldap.h,v 1.1.1.4 2010/12/12 15:23:06 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/proto-ldap.h,v 1.15.2.9 2009/08/26 00:50:19 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/proto-ldap.h,v 1.15.2.12 2010/04/15 20:25:48 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -57,6 +57,7 @@ int ldap_back_op_result( ldapconn_t *lc, Operation *op, SlapReply *rs,
int ldap_back_cancel( ldapconn_t *lc, Operation *op, SlapReply *rs, ber_int_t msgid, ldap_back_send_t sendok );
int ldap_back_init_cf( BackendInfo *bi );
+int ldap_pbind_init_cf( BackendInfo *bi );
extern int ldap_back_conndn_cmp( const void *c1, const void *c2);
extern int ldap_back_conn_cmp( const void *c1, const void *c2);
@@ -103,9 +104,11 @@ extern int slap_retry_info_parse( char *in, slap_retry_info_t *ri,
extern int slap_retry_info_unparse( slap_retry_info_t *ri, struct berval *bvout );
extern int slap_idassert_authzfrom_parse_cf( const char *fname, int lineno, const char *arg, slap_idassert_t *si );
+extern int slap_idassert_passthru_parse_cf( const char *fname, int lineno, const char *arg, slap_idassert_t *si );
extern int slap_idassert_parse_cf( const char *fname, int lineno, int argc, char *argv[], slap_idassert_t *si );
extern int chain_initialize( void );
+extern int pbind_initialize( void );
#ifdef SLAP_DISTPROC
extern int distproc_initialize( void );
#endif
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/search.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/search.c
index 07c7bc9ee2ca..5bad695cef43 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/search.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/search.c
@@ -1,10 +1,10 @@
-/* $NetBSD: search.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: search.c,v 1.1.1.4 2010/12/12 15:23:07 adam Exp $ */
/* search.c - ldap backend search function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/search.c,v 1.201.2.23 2009/10/30 18:10:18 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/search.c,v 1.201.2.26 2010/04/15 22:20:09 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Howard Chu.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
@@ -197,7 +197,8 @@ ldap_back_search(
for ( i = 0; !BER_BVISNULL( &op->ors_attrs[i].an_name ); i++ )
/* just count attrs */ ;
- attrs = ch_malloc( ( i + 1 )*sizeof( char * ) );
+ attrs = op->o_tmpalloc( ( i + 1 )*sizeof( char * ),
+ op->o_tmpmemctx );
if ( attrs == NULL ) {
rs->sr_err = LDAP_NO_MEMORY;
rc = -1;
@@ -611,7 +612,7 @@ finish:;
}
if ( attrs ) {
- ch_free( attrs );
+ op->o_tmpfree( attrs, op->o_tmpmemctx );
}
if ( lc != NULL ) {
@@ -745,12 +746,12 @@ ldap_build_entry(
int rc;
if ( pretty ) {
- rc = pretty( attr->a_desc->ad_type->sat_syntax,
+ rc = ordered_value_pretty( attr->a_desc,
&attr->a_vals[i], &pval, NULL );
} else {
- rc = validate( attr->a_desc->ad_type->sat_syntax,
- &attr->a_vals[i] );
+ rc = ordered_value_validate( attr->a_desc,
+ &attr->a_vals[i], 0 );
}
if ( rc != LDAP_SUCCESS ) {
@@ -794,9 +795,9 @@ ldap_build_entry(
for ( i = 0; i < last; i++ ) {
int rc;
- rc = attr->a_desc->ad_type->sat_equality->smr_normalize(
+ rc = ordered_value_normalize(
SLAP_MR_VALUE_OF_ATTRIBUTE_SYNTAX,
- attr->a_desc->ad_type->sat_syntax,
+ attr->a_desc,
attr->a_desc->ad_type->sat_equality,
&attr->a_vals[i], &attr->a_nvals[i],
NULL );
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldap/unbind.c b/external/bsd/openldap/dist/servers/slapd/back-ldap/unbind.c
index 516a48e1758e..d7fa107b4e46 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldap/unbind.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldap/unbind.c
@@ -1,10 +1,10 @@
-/* $NetBSD: unbind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: unbind.c,v 1.1.1.3 2010/12/12 15:23:07 adam Exp $ */
/* unbind.c - ldap backend unbind function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/unbind.c,v 1.33.2.6 2009/08/26 00:50:19 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldap/unbind.c,v 1.33.2.7 2010/04/13 20:23:29 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Howard Chu.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldif/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-ldif/Makefile.in
index ad3ce546e50f..47c117f147b0 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldif/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldif/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for back-ldif
-# OpenLDAP: pkg/ldap/servers/slapd/back-ldif/Makefile.in,v 1.2.2.4 2009/01/22 00:01:06 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-ldif/Makefile.in,v 1.2.2.5 2010/04/13 20:23:29 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2005-2009 The OpenLDAP Foundation.
+## Copyright 2005-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ldif/ldif.c b/external/bsd/openldap/dist/servers/slapd/back-ldif/ldif.c
index fd06bb97caef..9127024a6bb0 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ldif/ldif.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-ldif/ldif.c
@@ -1,10 +1,10 @@
-/* $NetBSD: ldif.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldif.c,v 1.1.1.3 2010/12/12 15:23:08 adam Exp $ */
/* ldif.c - the ldif backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ldif/ldif.c,v 1.48.2.21 2009/12/04 18:41:53 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ldif/ldif.c,v 1.48.2.24 2010/04/19 16:53:03 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -39,6 +39,9 @@ struct ldif_tool {
ID ecount; /* number of entries */
ID ecurrent; /* bi_tool_entry_next() position */
# define ENTRY_BUFF_INCREMENT 500 /* initial entries[] length */
+ struct berval *tl_base;
+ int tl_scope;
+ Filter *tl_filter;
};
/* Per-database data */
@@ -1323,7 +1326,7 @@ ldif_back_delete( Operation *op, SlapReply *rs )
if ( BER_BVISEMPTY( &op->o_csn )) {
struct berval csn;
- char csnbuf[LDAP_LUTIL_CSNSTR_BUFSIZE];
+ char csnbuf[LDAP_PVT_CSNSTR_BUFSIZE];
csn.bv_val = csnbuf;
csn.bv_len = sizeof( csnbuf );
@@ -1583,17 +1586,38 @@ ldif_tool_entry_next( BackendDB *be )
{
struct ldif_tool *tl = &((struct ldif_info *) be->be_private)->li_tool;
- if ( tl->ecurrent >= tl->ecount )
- return NOID;
- else
- return ++tl->ecurrent;
+ do {
+ Entry *e = tl->entries[ tl->ecurrent ];
+
+ if ( tl->ecurrent >= tl->ecount ) {
+ return NOID;
+ }
+
+ ++tl->ecurrent;
+
+ if ( tl->tl_base && !dnIsSuffixScope( &e->e_nname, tl->tl_base, tl->tl_scope ) ) {
+ continue;
+ }
+
+ if ( tl->tl_filter && test_filter( NULL, e, tl->tl_filter ) != LDAP_COMPARE_TRUE ) {
+ continue;
+ }
+
+ break;
+ } while ( 1 );
+
+ return tl->ecurrent;
}
static ID
-ldif_tool_entry_first( BackendDB *be )
+ldif_tool_entry_first_x( BackendDB *be, struct berval *base, int scope, Filter *f )
{
struct ldif_tool *tl = &((struct ldif_info *) be->be_private)->li_tool;
+ tl->tl_base = base;
+ tl->tl_scope = scope;
+ tl->tl_filter = f;
+
if ( tl->entries == NULL ) {
Operation op = {0};
@@ -1742,7 +1766,8 @@ ldif_back_initialize( BackendInfo *bi )
bi->bi_tool_entry_open = ldif_tool_entry_open;
bi->bi_tool_entry_close = ldif_tool_entry_close;
- bi->bi_tool_entry_first = ldif_tool_entry_first;
+ bi->bi_tool_entry_first = backend_tool_entry_first;
+ bi->bi_tool_entry_first_x = ldif_tool_entry_first_x;
bi->bi_tool_entry_next = ldif_tool_entry_next;
bi->bi_tool_entry_get = ldif_tool_entry_get;
bi->bi_tool_entry_put = ldif_tool_entry_put;
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-meta/Makefile.in
index 64dde469f9a7..650914cfaa77 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for back-meta
-# OpenLDAP: pkg/ldap/servers/slapd/back-meta/Makefile.in,v 1.16.2.4 2009/01/22 00:01:07 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-meta/Makefile.in,v 1.16.2.5 2010/04/13 20:23:29 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/add.c b/external/bsd/openldap/dist/servers/slapd/back-meta/add.c
index 1a4760e2e62b..537b66bac864 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/add.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/add.c
@@ -1,9 +1,9 @@
-/* $NetBSD: add.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: add.c,v 1.1.1.3 2010/12/12 15:23:08 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/add.c,v 1.51.2.9 2009/01/22 00:01:07 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/add.c,v 1.51.2.10 2010/04/13 20:23:30 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/back-meta.h b/external/bsd/openldap/dist/servers/slapd/back-meta/back-meta.h
index e939e41e64bc..6eb8476da964 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/back-meta.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/back-meta.h
@@ -1,9 +1,9 @@
-/* $NetBSD: back-meta.h,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: back-meta.h,v 1.1.1.4 2010/12/12 15:23:08 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/back-meta.h,v 1.64.2.15 2009/08/26 00:50:20 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/back-meta.h,v 1.64.2.17 2010/04/15 22:22:28 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
@@ -119,7 +119,8 @@ ldap_back_map_attrs(
struct ldapmap *at_map,
AttributeName *a,
int remap,
- char ***mapped_attrs );
+ char ***mapped_attrs,
+ void *memctx );
extern int ldap_back_map_config(
struct ldapmap *oc_map,
@@ -134,7 +135,8 @@ ldap_back_filter_map_rewrite(
dncookie *dc,
Filter *f,
struct berval *fstr,
- int remap );
+ int remap,
+ void *memctx );
/* suffix massaging by means of librewrite */
#ifdef ENABLE_REWRITE
@@ -148,7 +150,8 @@ suffix_massage_config( struct rewrite_info *info,
extern int
ldap_back_referral_result_rewrite(
dncookie *dc,
- BerVarray a_vals );
+ BerVarray a_vals,
+ void *memctx );
extern int
ldap_dnattr_rewrite(
dncookie *dc,
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/bind.c b/external/bsd/openldap/dist/servers/slapd/back-meta/bind.c
index 27837c94b58f..b68caf4815ed 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/bind.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/bind.c
@@ -1,9 +1,9 @@
-/* $NetBSD: bind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: bind.c,v 1.1.1.3 2010/12/12 15:23:09 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/bind.c,v 1.95.2.20 2009/08/26 00:50:20 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/bind.c,v 1.95.2.21 2010/04/13 20:23:30 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/candidates.c b/external/bsd/openldap/dist/servers/slapd/back-meta/candidates.c
index bbaeac01af6f..5aa00c5593ae 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/candidates.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/candidates.c
@@ -1,9 +1,9 @@
-/* $NetBSD: candidates.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: candidates.c,v 1.1.1.3 2010/12/12 15:23:09 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/candidates.c,v 1.28.2.6 2009/01/22 00:01:07 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/candidates.c,v 1.28.2.7 2010/04/13 20:23:30 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/compare.c b/external/bsd/openldap/dist/servers/slapd/back-meta/compare.c
index e73345340670..e422be9f29ff 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/compare.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/compare.c
@@ -1,9 +1,9 @@
-/* $NetBSD: compare.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: compare.c,v 1.1.1.3 2010/12/12 15:23:09 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/compare.c,v 1.50.2.9 2009/01/22 00:01:07 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/compare.c,v 1.50.2.10 2010/04/13 20:23:30 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/config.c b/external/bsd/openldap/dist/servers/slapd/back-meta/config.c
index 7b753ee1e467..f18d4d2ed5f3 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/config.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/config.c
@@ -1,9 +1,9 @@
-/* $NetBSD: config.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: config.c,v 1.1.1.4 2010/12/12 15:23:09 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/config.c,v 1.74.2.18 2009/08/14 20:54:14 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/config.c,v 1.74.2.19 2010/04/13 20:23:30 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/conn.c b/external/bsd/openldap/dist/servers/slapd/back-meta/conn.c
index 9bbc423f5e4c..eaaf7a5fb56b 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/conn.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/conn.c
@@ -1,9 +1,9 @@
-/* $NetBSD: conn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: conn.c,v 1.1.1.3 2010/12/12 15:23:10 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/conn.c,v 1.86.2.19 2009/08/26 00:50:20 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/conn.c,v 1.86.2.20 2010/04/13 20:23:30 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/delete.c b/external/bsd/openldap/dist/servers/slapd/back-meta/delete.c
index 81c291db15d0..e254fd8252e7 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/delete.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/delete.c
@@ -1,9 +1,9 @@
-/* $NetBSD: delete.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: delete.c,v 1.1.1.3 2010/12/12 15:23:10 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/delete.c,v 1.37.2.9 2009/01/22 00:01:07 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/delete.c,v 1.37.2.10 2010/04/13 20:23:31 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/dncache.c b/external/bsd/openldap/dist/servers/slapd/back-meta/dncache.c
index 940275e64d2c..43b5e9ae436d 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/dncache.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/dncache.c
@@ -1,9 +1,9 @@
-/* $NetBSD: dncache.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: dncache.c,v 1.1.1.3 2010/12/12 15:23:10 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/dncache.c,v 1.16.2.4 2009/01/22 00:01:07 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/dncache.c,v 1.16.2.5 2010/04/13 20:23:31 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/init.c b/external/bsd/openldap/dist/servers/slapd/back-meta/init.c
index 1d29a4ad6d46..73cd55075336 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/init.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/init.c
@@ -1,9 +1,9 @@
-/* $NetBSD: init.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: init.c,v 1.1.1.4 2010/12/12 15:23:11 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/init.c,v 1.58.2.13 2009/02/17 19:14:41 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/init.c,v 1.58.2.14 2010/04/13 20:23:31 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/map.c b/external/bsd/openldap/dist/servers/slapd/back-meta/map.c
index 2b41dc36384c..58e42ad4817c 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/map.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/map.c
@@ -1,10 +1,10 @@
-/* $NetBSD: map.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: map.c,v 1.1.1.3 2010/12/12 15:23:11 adam Exp $ */
/* map.c - ldap backend mapping routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/map.c,v 1.15.2.12 2009/02/17 19:14:41 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/map.c,v 1.15.2.14 2010/04/15 22:22:28 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -179,8 +179,8 @@ ldap_back_map_attrs(
struct ldapmap *at_map,
AttributeName *an,
int remap,
- char ***mapped_attrs
-)
+ char ***mapped_attrs,
+ void *memctx )
{
int i, j;
char **na;
@@ -194,7 +194,7 @@ ldap_back_map_attrs(
for ( i = 0; !BER_BVISNULL( &an[i].an_name ); i++ )
/* */ ;
- na = (char **)ch_calloc( i + 1, sizeof(char *) );
+ na = (char **)ber_memcalloc_x( i + 1, sizeof(char *), memctx );
if ( na == NULL ) {
*mapped_attrs = NULL;
return LDAP_NO_MEMORY;
@@ -215,14 +215,15 @@ ldap_back_map_attrs(
return LDAP_SUCCESS;
}
-int
+static int
map_attr_value(
dncookie *dc,
AttributeDescription *ad,
struct berval *mapped_attr,
struct berval *value,
struct berval *mapped_value,
- int remap )
+ int remap,
+ void *memctx )
{
struct berval vtmp;
int freeval = 0;
@@ -274,11 +275,11 @@ map_attr_value(
} else if ( ad->ad_type->sat_equality->smr_usage & SLAP_MR_MUTATION_NORMALIZER ) {
if ( ad->ad_type->sat_equality->smr_normalize(
(SLAP_MR_DENORMALIZE|SLAP_MR_VALUE_OF_ASSERTION_SYNTAX),
- NULL, NULL, value, &vtmp, NULL ) )
+ NULL, NULL, value, &vtmp, memctx ) )
{
return -1;
}
- freeval = 1;
+ freeval = 2;
} else if ( ad == slap_schema.si_ad_objectClass || ad == slap_schema.si_ad_structuralObjectClass ) {
ldap_back_map( &dc->target->mt_rwmap.rwm_oc, value, &vtmp, remap );
@@ -290,10 +291,15 @@ map_attr_value(
vtmp = *value;
}
- filter_escape_value( &vtmp, mapped_value );
+ filter_escape_value_x( &vtmp, mapped_value, memctx );
- if ( freeval ) {
+ switch ( freeval ) {
+ case 1:
ber_memfree( vtmp.bv_val );
+ break;
+ case 2:
+ ber_memfree_x( vtmp.bv_val, memctx );
+ break;
}
return 0;
@@ -303,8 +309,9 @@ static int
ldap_back_int_filter_map_rewrite(
dncookie *dc,
Filter *f,
- struct berval *fstr,
- int remap )
+ struct berval *fstr,
+ int remap,
+ void *memctx )
{
int i;
Filter *p;
@@ -331,82 +338,82 @@ ldap_back_int_filter_map_rewrite(
BER_BVZERO( fstr );
if ( f == NULL ) {
- ber_dupbv( fstr, &ber_bvnone );
+ ber_dupbv_x( fstr, &ber_bvnone, memctx );
return LDAP_OTHER;
}
switch ( ( f->f_choice & SLAPD_FILTER_MASK ) ) {
case LDAP_FILTER_EQUALITY:
if ( map_attr_value( dc, f->f_av_desc, &atmp,
- &f->f_av_value, &vtmp, remap ) )
+ &f->f_av_value, &vtmp, remap, memctx ) )
{
goto computed;
}
fstr->bv_len = atmp.bv_len + vtmp.bv_len
+ ( sizeof("(=)") - 1 );
- fstr->bv_val = ch_malloc( fstr->bv_len + 1 );
+ fstr->bv_val = ber_memalloc_x( fstr->bv_len + 1, memctx );
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s=%s)",
atmp.bv_val, vtmp.bv_len ? vtmp.bv_val : "" );
- ber_memfree( vtmp.bv_val );
+ ber_memfree_x( vtmp.bv_val, memctx );
break;
case LDAP_FILTER_GE:
if ( map_attr_value( dc, f->f_av_desc, &atmp,
- &f->f_av_value, &vtmp, remap ) )
+ &f->f_av_value, &vtmp, remap, memctx ) )
{
goto computed;
}
fstr->bv_len = atmp.bv_len + vtmp.bv_len
+ ( sizeof("(>=)") - 1 );
- fstr->bv_val = ch_malloc( fstr->bv_len + 1 );
+ fstr->bv_val = ber_memalloc_x( fstr->bv_len + 1, memctx );
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s>=%s)",
atmp.bv_val, vtmp.bv_len ? vtmp.bv_val : "" );
- ber_memfree( vtmp.bv_val );
+ ber_memfree_x( vtmp.bv_val, memctx );
break;
case LDAP_FILTER_LE:
if ( map_attr_value( dc, f->f_av_desc, &atmp,
- &f->f_av_value, &vtmp, remap ) )
+ &f->f_av_value, &vtmp, remap, memctx ) )
{
goto computed;
}
fstr->bv_len = atmp.bv_len + vtmp.bv_len
+ ( sizeof("(<=)") - 1 );
- fstr->bv_val = ch_malloc( fstr->bv_len + 1 );
+ fstr->bv_val = ber_memalloc_x( fstr->bv_len + 1, memctx );
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s<=%s)",
atmp.bv_val, vtmp.bv_len ? vtmp.bv_val : "" );
- ber_memfree( vtmp.bv_val );
+ ber_memfree_x( vtmp.bv_val, memctx );
break;
case LDAP_FILTER_APPROX:
if ( map_attr_value( dc, f->f_av_desc, &atmp,
- &f->f_av_value, &vtmp, remap ) )
+ &f->f_av_value, &vtmp, remap, memctx ) )
{
goto computed;
}
fstr->bv_len = atmp.bv_len + vtmp.bv_len
+ ( sizeof("(~=)") - 1 );
- fstr->bv_val = ch_malloc( fstr->bv_len + 1 );
+ fstr->bv_val = ber_memalloc_x( fstr->bv_len + 1, memctx );
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s~=%s)",
atmp.bv_val, vtmp.bv_len ? vtmp.bv_val : "" );
- ber_memfree( vtmp.bv_val );
+ ber_memfree_x( vtmp.bv_val, memctx );
break;
case LDAP_FILTER_SUBSTRINGS:
if ( map_attr_value( dc, f->f_sub_desc, &atmp,
- NULL, NULL, remap ) )
+ NULL, NULL, remap, memctx ) )
{
goto computed;
}
@@ -414,7 +421,7 @@ ldap_back_int_filter_map_rewrite(
/* cannot be a DN ... */
fstr->bv_len = atmp.bv_len + ( STRLENOF( "(=*)" ) );
- fstr->bv_val = ch_malloc( fstr->bv_len + 128 ); /* FIXME: why 128 ? */
+ fstr->bv_val = ber_memalloc_x( fstr->bv_len + 128, memctx ); /* FIXME: why 128 ? */
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s=*)",
atmp.bv_val );
@@ -422,59 +429,59 @@ ldap_back_int_filter_map_rewrite(
if ( !BER_BVISNULL( &f->f_sub_initial ) ) {
len = fstr->bv_len;
- filter_escape_value( &f->f_sub_initial, &vtmp );
+ filter_escape_value_x( &f->f_sub_initial, &vtmp, memctx );
fstr->bv_len += vtmp.bv_len;
- fstr->bv_val = ch_realloc( fstr->bv_val, fstr->bv_len + 1 );
+ fstr->bv_val = ber_memrealloc_x( fstr->bv_val, fstr->bv_len + 1, memctx );
snprintf( &fstr->bv_val[len - 2], vtmp.bv_len + 3,
/* "(attr=" */ "%s*)",
vtmp.bv_len ? vtmp.bv_val : "" );
- ber_memfree( vtmp.bv_val );
+ ber_memfree_x( vtmp.bv_val, memctx );
}
if ( f->f_sub_any != NULL ) {
for ( i = 0; !BER_BVISNULL( &f->f_sub_any[i] ); i++ ) {
len = fstr->bv_len;
- filter_escape_value( &f->f_sub_any[i], &vtmp );
+ filter_escape_value_x( &f->f_sub_any[i], &vtmp, memctx );
fstr->bv_len += vtmp.bv_len + 1;
- fstr->bv_val = ch_realloc( fstr->bv_val, fstr->bv_len + 1 );
+ fstr->bv_val = ber_memrealloc_x( fstr->bv_val, fstr->bv_len + 1, memctx );
snprintf( &fstr->bv_val[len - 1], vtmp.bv_len + 3,
/* "(attr=[init]*[any*]" */ "%s*)",
vtmp.bv_len ? vtmp.bv_val : "" );
- ber_memfree( vtmp.bv_val );
+ ber_memfree_x( vtmp.bv_val, memctx );
}
}
if ( !BER_BVISNULL( &f->f_sub_final ) ) {
len = fstr->bv_len;
- filter_escape_value( &f->f_sub_final, &vtmp );
+ filter_escape_value_x( &f->f_sub_final, &vtmp, memctx );
fstr->bv_len += vtmp.bv_len;
- fstr->bv_val = ch_realloc( fstr->bv_val, fstr->bv_len + 1 );
+ fstr->bv_val = ber_memrealloc_x( fstr->bv_val, fstr->bv_len + 1, memctx );
snprintf( &fstr->bv_val[len - 1], vtmp.bv_len + 3,
/* "(attr=[init*][any*]" */ "%s)",
vtmp.bv_len ? vtmp.bv_val : "" );
- ber_memfree( vtmp.bv_val );
+ ber_memfree_x( vtmp.bv_val, memctx );
}
break;
case LDAP_FILTER_PRESENT:
if ( map_attr_value( dc, f->f_desc, &atmp,
- NULL, NULL, remap ) )
+ NULL, NULL, remap, memctx ) )
{
goto computed;
}
fstr->bv_len = atmp.bv_len + ( STRLENOF( "(=*)" ) );
- fstr->bv_val = ch_malloc( fstr->bv_len + 1 );
+ fstr->bv_val = ber_memalloc_x( fstr->bv_len + 1, memctx );
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s=*)",
atmp.bv_val );
@@ -484,7 +491,7 @@ ldap_back_int_filter_map_rewrite(
case LDAP_FILTER_OR:
case LDAP_FILTER_NOT:
fstr->bv_len = STRLENOF( "(%)" );
- fstr->bv_val = ch_malloc( fstr->bv_len + 128 ); /* FIXME: why 128? */
+ fstr->bv_val = ber_memalloc_x( fstr->bv_len + 128, memctx ); /* FIXME: why 128? */
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%c)",
f->f_choice == LDAP_FILTER_AND ? '&' :
@@ -495,18 +502,18 @@ ldap_back_int_filter_map_rewrite(
len = fstr->bv_len;
- rc = ldap_back_int_filter_map_rewrite( dc, p, &vtmp, remap );
+ rc = ldap_back_int_filter_map_rewrite( dc, p, &vtmp, remap, memctx );
if ( rc != LDAP_SUCCESS ) {
return rc;
}
fstr->bv_len += vtmp.bv_len;
- fstr->bv_val = ch_realloc( fstr->bv_val, fstr->bv_len + 1 );
+ fstr->bv_val = ber_memrealloc_x( fstr->bv_val, fstr->bv_len + 1, memctx );
snprintf( &fstr->bv_val[len-1], vtmp.bv_len + 2,
/*"("*/ "%s)", vtmp.bv_len ? vtmp.bv_val : "" );
- ch_free( vtmp.bv_val );
+ ber_memfree_x( vtmp.bv_val, memctx );
}
break;
@@ -514,14 +521,14 @@ ldap_back_int_filter_map_rewrite(
case LDAP_FILTER_EXT:
if ( f->f_mr_desc ) {
if ( map_attr_value( dc, f->f_mr_desc, &atmp,
- &f->f_mr_value, &vtmp, remap ) )
+ &f->f_mr_value, &vtmp, remap, memctx ) )
{
goto computed;
}
} else {
BER_BVSTR( &atmp, "" );
- filter_escape_value( &f->f_mr_value, &vtmp );
+ filter_escape_value_x( &f->f_mr_value, &vtmp, memctx );
}
/* FIXME: cleanup (less ?: operators...) */
@@ -529,7 +536,7 @@ ldap_back_int_filter_map_rewrite(
( f->f_mr_dnattrs ? STRLENOF( ":dn" ) : 0 ) +
( !BER_BVISEMPTY( &f->f_mr_rule_text ) ? f->f_mr_rule_text.bv_len + 1 : 0 ) +
vtmp.bv_len + ( STRLENOF( "(:=)" ) );
- fstr->bv_val = ch_malloc( fstr->bv_len + 1 );
+ fstr->bv_val = ber_memalloc_x( fstr->bv_len + 1, memctx );
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s%s%s%s:=%s)",
atmp.bv_val,
@@ -537,7 +544,7 @@ ldap_back_int_filter_map_rewrite(
!BER_BVISEMPTY( &f->f_mr_rule_text ) ? ":" : "",
!BER_BVISEMPTY( &f->f_mr_rule_text ) ? f->f_mr_rule_text.bv_val : "",
vtmp.bv_len ? vtmp.bv_val : "" );
- ber_memfree( vtmp.bv_val );
+ ber_memfree_x( vtmp.bv_val, memctx );
break;
case SLAPD_FILTER_COMPUTED:
@@ -572,11 +579,11 @@ computed:;
break;
}
- ber_dupbv( fstr, tmp );
+ ber_dupbv_x( fstr, tmp, memctx );
break;
default:
- ber_dupbv( fstr, &ber_bvunknown );
+ ber_dupbv_x( fstr, &ber_bvunknown, memctx );
break;
}
@@ -587,15 +594,16 @@ int
ldap_back_filter_map_rewrite(
dncookie *dc,
Filter *f,
- struct berval *fstr,
- int remap )
+ struct berval *fstr,
+ int remap,
+ void *memctx )
{
int rc;
dncookie fdc;
struct berval ftmp;
static char *dmy = "";
- rc = ldap_back_int_filter_map_rewrite( dc, f, fstr, remap );
+ rc = ldap_back_int_filter_map_rewrite( dc, f, fstr, remap, memctx );
#ifdef ENABLE_REWRITE
if ( rc != LDAP_SUCCESS ) {
@@ -644,6 +652,15 @@ ldap_back_filter_map_rewrite(
if ( fstr->bv_val == dmy ) {
BER_BVZERO( fstr );
+
+ } else if ( fstr->bv_val != ftmp.bv_val ) {
+ /* NOTE: need to realloc mapped filter on slab
+ * and free the original one, until librewrite
+ * becomes slab-aware
+ */
+ ber_dupbv_x( &ftmp, fstr, memctx );
+ ch_free( fstr->bv_val );
+ *fstr = ftmp;
}
#endif /* ENABLE_REWRITE */
@@ -653,7 +670,8 @@ ldap_back_filter_map_rewrite(
int
ldap_back_referral_result_rewrite(
dncookie *dc,
- BerVarray a_vals
+ BerVarray a_vals,
+ void *memctx
)
{
int i, last;
@@ -720,8 +738,8 @@ ldap_back_referral_result_rewrite(
break;
}
- LBER_FREE( a_vals[ i ].bv_val );
- ber_str2bv( newurl, 0, 1, &a_vals[ i ] );
+ ber_memfree_x( a_vals[ i ].bv_val, memctx );
+ ber_str2bv_x( newurl, 0, 1, &a_vals[ i ], memctx );
LDAP_FREE( newurl );
ludp->lud_dn = olddn.bv_val;
}
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/modify.c b/external/bsd/openldap/dist/servers/slapd/back-meta/modify.c
index a54c59e87eca..c9ef92c6fe5b 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/modify.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/modify.c
@@ -1,9 +1,9 @@
-/* $NetBSD: modify.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modify.c,v 1.1.1.3 2010/12/12 15:23:11 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/modify.c,v 1.52.2.9 2009/01/22 00:01:07 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/modify.c,v 1.52.2.10 2010/04/13 20:23:31 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/modrdn.c b/external/bsd/openldap/dist/servers/slapd/back-meta/modrdn.c
index 7a0120b08b8f..c3a358965a5a 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/modrdn.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/modrdn.c
@@ -1,9 +1,9 @@
-/* $NetBSD: modrdn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modrdn.c,v 1.1.1.3 2010/12/12 15:23:11 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/modrdn.c,v 1.39.2.11 2009/01/22 00:01:07 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/modrdn.c,v 1.39.2.12 2010/04/13 20:23:31 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/proto-meta.h b/external/bsd/openldap/dist/servers/slapd/back-meta/proto-meta.h
index 6335f9afc2d4..b3c1c31590c5 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/proto-meta.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/proto-meta.h
@@ -1,9 +1,9 @@
-/* $NetBSD: proto-meta.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: proto-meta.h,v 1.1.1.3 2010/12/12 15:23:12 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/proto-meta.h,v 1.5.2.4 2009/01/22 00:01:07 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/proto-meta.h,v 1.5.2.5 2010/04/13 20:23:31 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/search.c b/external/bsd/openldap/dist/servers/slapd/back-meta/search.c
index a48a1ce92b02..746d95498dfb 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/search.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/search.c
@@ -1,9 +1,9 @@
-/* $NetBSD: search.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: search.c,v 1.1.1.4 2010/12/12 15:23:13 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/search.c,v 1.146.2.23 2009/08/14 20:54:14 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/search.c,v 1.146.2.27 2010/06/10 17:26:51 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
@@ -234,6 +234,21 @@ meta_search_dobind_init(
assert( msc->msc_ld != NULL );
+ if ( !BER_BVISEMPTY( &binddn ) && BER_BVISEMPTY( &cred ) ) {
+ /* bind anonymously? */
+ Debug( LDAP_DEBUG_ANY, "%s meta_search_dobind_init[%d] mc=%p: "
+ "non-empty dn with empty cred; binding anonymously\n",
+ op->o_log_prefix, candidate, (void *)mc );
+ cred = slap_empty_bv;
+
+ } else if ( BER_BVISEMPTY( &binddn ) && !BER_BVISEMPTY( &cred ) ) {
+ /* error */
+ Debug( LDAP_DEBUG_ANY, "%s meta_search_dobind_init[%d] mc=%p: "
+ "empty dn with non-empty cred: error\n",
+ op->o_log_prefix, candidate, (void *)mc );
+ goto other;
+ }
+
/* connect must be async only the first time... */
ldap_set_option( msc->msc_ld, LDAP_OPT_CONNECT_ASYNC, LDAP_OPT_ON );
@@ -558,7 +573,7 @@ meta_back_search_start(
* Maps filter
*/
rc = ldap_back_filter_map_rewrite( dc, op->ors_filter,
- &mfilter, BACKLDAP_MAP );
+ &mfilter, BACKLDAP_MAP, op->o_tmpmemctx );
switch ( rc ) {
case LDAP_SUCCESS:
break;
@@ -576,7 +591,8 @@ meta_back_search_start(
* Maps required attributes
*/
rc = ldap_back_map_attrs( &mt->mt_rwmap.rwm_at,
- op->ors_attrs, BACKLDAP_MAP, &mapped_attrs );
+ op->ors_attrs, BACKLDAP_MAP, &mapped_attrs,
+ op->o_tmpmemctx );
if ( rc != LDAP_SUCCESS ) {
/*
* this target is no longer candidate
@@ -639,10 +655,10 @@ done:;
(void)mi->mi_ldap_extra->controls_free( op, rs, &ctrls );
if ( mapped_attrs ) {
- free( mapped_attrs );
+ ber_memfree_x( mapped_attrs, op->o_tmpmemctx );
}
if ( mfilter.bv_val != op->ors_filterstr.bv_val ) {
- free( mfilter.bv_val );
+ ber_memfree_x( mfilter.bv_val, op->o_tmpmemctx );
}
if ( mbase.bv_val != realbase.bv_val ) {
free( mbase.bv_val );
@@ -1184,14 +1200,17 @@ really_bad:;
for ( cnt = 0; references[ cnt ]; cnt++ )
;
- rs->sr_ref = ch_calloc( sizeof( struct berval ), cnt + 1 );
+ rs->sr_ref = ber_memalloc_x( sizeof( struct berval ) * ( cnt + 1 ),
+ op->o_tmpmemctx );
for ( cnt = 0; references[ cnt ]; cnt++ ) {
- ber_str2bv( references[ cnt ], 0, 1, &rs->sr_ref[ cnt ] );
+ ber_str2bv_x( references[ cnt ], 0, 1, &rs->sr_ref[ cnt ],
+ op->o_tmpmemctx );
}
BER_BVZERO( &rs->sr_ref[ cnt ] );
- ( void )ldap_back_referral_result_rewrite( &dc, rs->sr_ref );
+ ( void )ldap_back_referral_result_rewrite( &dc, rs->sr_ref,
+ op->o_tmpmemctx );
if ( rs->sr_ref != NULL && !BER_BVISNULL( &rs->sr_ref[ 0 ] ) ) {
/* ignore return value by now */
@@ -1200,7 +1219,7 @@ really_bad:;
( void )send_search_reference( op, rs );
op->o_private = savepriv;
- ber_bvarray_free( rs->sr_ref );
+ ber_bvarray_free_x( rs->sr_ref, op->o_tmpmemctx );
rs->sr_ref = NULL;
}
@@ -1335,23 +1354,27 @@ really_bad:;
for ( cnt = 0; references[ cnt ]; cnt++ )
;
- sr_ref = ch_calloc( sizeof( struct berval ), cnt + 1 );
+ sr_ref = ber_memalloc_x( sizeof( struct berval ) * ( cnt + 1 ),
+ op->o_tmpmemctx );
for ( cnt = 0; references[ cnt ]; cnt++ ) {
- ber_str2bv( references[ cnt ], 0, 1, &sr_ref[ cnt ] );
+ ber_str2bv_x( references[ cnt ], 0, 1, &sr_ref[ cnt ],
+ op->o_tmpmemctx );
}
BER_BVZERO( &sr_ref[ cnt ] );
- ( void )ldap_back_referral_result_rewrite( &dc, sr_ref );
+ ( void )ldap_back_referral_result_rewrite( &dc, sr_ref,
+ op->o_tmpmemctx );
if ( rs->sr_v2ref == NULL ) {
rs->sr_v2ref = sr_ref;
} else {
for ( cnt = 0; !BER_BVISNULL( &sr_ref[ cnt ] ); cnt++ ) {
- ber_bvarray_add( &rs->sr_v2ref, &sr_ref[ cnt ] );
+ ber_bvarray_add_x( &rs->sr_v2ref, &sr_ref[ cnt ],
+ op->o_tmpmemctx );
}
- ber_memfree( sr_ref );
+ ber_memfree_x( sr_ref, op->o_tmpmemctx );
}
}
@@ -1708,7 +1731,7 @@ finish:;
}
if ( rs->sr_v2ref ) {
- ber_bvarray_free( rs->sr_v2ref );
+ ber_bvarray_free_x( rs->sr_v2ref, op->o_tmpmemctx );
}
for ( i = 0; i < mi->mi_ntargets; i++ ) {
@@ -2038,7 +2061,7 @@ remove_oc:;
ldap_dnattr_result_rewrite( &dc, attr->a_vals );
} else if ( attr->a_desc == slap_schema.si_ad_ref ) {
- ldap_back_referral_result_rewrite( &dc, attr->a_vals );
+ ldap_back_referral_result_rewrite( &dc, attr->a_vals, NULL );
}
@@ -2047,12 +2070,12 @@ remove_oc:;
int rc;
if ( pretty ) {
- rc = pretty( attr->a_desc->ad_type->sat_syntax,
+ rc = ordered_value_pretty( attr->a_desc,
&attr->a_vals[i], &pval, NULL );
} else {
- rc = validate( attr->a_desc->ad_type->sat_syntax,
- &attr->a_vals[i] );
+ rc = ordered_value_validate( attr->a_desc,
+ &attr->a_vals[i], 0 );
}
if ( rc ) {
@@ -2087,9 +2110,9 @@ remove_oc:;
attr->a_nvals = ch_malloc( ( last + 1 ) * sizeof( struct berval ) );
for ( i = 0; ia_desc->ad_type->sat_equality->smr_normalize(
+ if ( ordered_value_normalize(
SLAP_MR_VALUE_OF_ATTRIBUTE_SYNTAX,
- attr->a_desc->ad_type->sat_syntax,
+ attr->a_desc,
attr->a_desc->ad_type->sat_equality,
&attr->a_vals[i], &attr->a_nvals[i],
NULL )) {
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/suffixmassage.c b/external/bsd/openldap/dist/servers/slapd/back-meta/suffixmassage.c
index 441d612b080c..75e8e6885ced 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/suffixmassage.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/suffixmassage.c
@@ -1,10 +1,10 @@
-/* $NetBSD: suffixmassage.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: suffixmassage.c,v 1.1.1.3 2010/12/12 15:23:13 adam Exp $ */
/* suffixmassage.c - massages ldap backend dns */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/suffixmassage.c,v 1.7.2.4 2009/01/22 00:01:08 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/suffixmassage.c,v 1.7.2.5 2010/04/13 20:23:31 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-meta/unbind.c b/external/bsd/openldap/dist/servers/slapd/back-meta/unbind.c
index 3fd5464b0f93..705f1f93d44d 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-meta/unbind.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-meta/unbind.c
@@ -1,9 +1,9 @@
-/* $NetBSD: unbind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: unbind.c,v 1.1.1.3 2010/12/12 15:23:13 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/unbind.c,v 1.30.2.7 2009/08/26 00:50:20 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-meta/unbind.c,v 1.30.2.8 2010/04/13 20:23:31 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* Portions Copyright 1999-2003 Howard Chu.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-monitor/Makefile.in
index c60a2d1c8a4e..84ae6096773b 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for back-monitor
-# OpenLDAP: pkg/ldap/servers/slapd/back-monitor/Makefile.in,v 1.20.2.4 2009/01/22 00:01:08 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-monitor/Makefile.in,v 1.20.2.5 2010/04/13 20:23:32 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/back-monitor.h b/external/bsd/openldap/dist/servers/slapd/back-monitor/back-monitor.h
index 06c094e95ee6..dcbe4eab2715 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/back-monitor.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/back-monitor.h
@@ -1,10 +1,10 @@
-/* $NetBSD: back-monitor.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: back-monitor.h,v 1.1.1.3 2010/12/12 15:23:13 adam Exp $ */
/* back-monitor.h - ldap monitor back-end header file */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/back-monitor.h,v 1.52.2.8 2009/08/25 22:48:09 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/back-monitor.h,v 1.52.2.9 2010/04/13 20:23:32 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/backend.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/backend.c
index 643767612cf9..234410280381 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/backend.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/backend.c
@@ -1,10 +1,10 @@
-/* $NetBSD: backend.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: backend.c,v 1.1.1.3 2010/12/12 15:23:13 adam Exp $ */
/* backend.c - deals with backend subsystem */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/backend.c,v 1.41.2.4 2009/01/22 00:01:08 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/backend.c,v 1.41.2.5 2010/04/13 20:23:32 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/bind.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/bind.c
index ef58cb9d12e3..ca990d870531 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/bind.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/bind.c
@@ -1,10 +1,10 @@
-/* $NetBSD: bind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: bind.c,v 1.1.1.3 2010/12/12 15:23:13 adam Exp $ */
/* bind.c - monitor backend bind routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/bind.c,v 1.17.2.4 2009/01/22 00:01:08 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/bind.c,v 1.17.2.5 2010/04/13 20:23:32 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/cache.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/cache.c
index b6a20667943e..0c9213d858e9 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/cache.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/cache.c
@@ -1,10 +1,10 @@
-/* $NetBSD: cache.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: cache.c,v 1.1.1.3 2010/12/12 15:23:13 adam Exp $ */
/* cache.c - routines to maintain an in-core cache of entries */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/cache.c,v 1.27.2.6 2009/01/22 00:01:08 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/cache.c,v 1.27.2.7 2010/04/13 20:23:32 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/compare.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/compare.c
index 1d26642d19ce..e95d4158a76f 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/compare.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/compare.c
@@ -1,10 +1,10 @@
-/* $NetBSD: compare.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: compare.c,v 1.1.1.3 2010/12/12 15:23:13 adam Exp $ */
/* compare.c - monitor backend compare routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/compare.c,v 1.24.2.6 2009/01/22 00:01:08 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/compare.c,v 1.24.2.7 2010/04/13 20:23:32 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/conn.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/conn.c
index db127c2d0b56..e97edac590a8 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/conn.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/conn.c
@@ -1,10 +1,10 @@
-/* $NetBSD: conn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: conn.c,v 1.1.1.3 2010/12/12 15:23:14 adam Exp $ */
/* conn.c - deal with connection subsystem */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/conn.c,v 1.72.2.9 2009/04/27 22:50:10 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/conn.c,v 1.72.2.11 2010/04/19 16:53:03 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
@@ -268,72 +268,27 @@ conn_create(
monitor_subsys_t *ms )
{
monitor_entry_t *mp;
- struct tm *tm;
+ struct tm tm;
char buf[ BACKMONITOR_BUFSIZE ];
char buf2[ LDAP_LUTIL_GENTIME_BUFSIZE ];
char buf3[ LDAP_LUTIL_GENTIME_BUFSIZE ];
- struct berval bv, ctmbv, mtmbv, bv2, bv3;
+ struct berval bv, ctmbv, mtmbv;
struct berval bv_unknown= BER_BVC("unknown");
Entry *e;
-#ifdef HACK_LOCAL_TIME
- char ctmbuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
- char mtmbuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
-#endif
-#ifdef HAVE_GMTIME_R
- struct tm tm_buf;
-#endif /* HAVE_GMTIME_R */
-
assert( c != NULL );
assert( ep != NULL );
-#ifndef HAVE_GMTIME_R
- ldap_pvt_thread_mutex_lock( &gmtime_mutex );
-#endif
+ ldap_pvt_gmtime( &c->c_starttime, &tm );
-#ifdef HAVE_GMTIME_R
- tm = gmtime_r( &c->c_starttime, &tm_buf );
-#else
- tm = gmtime( &c->c_starttime );
-#endif
- bv2.bv_len = lutil_gentime( buf2, sizeof( buf2 ), tm );
- bv2.bv_val = buf2;
-#ifdef HACK_LOCAL_TIME
-# ifdef HAVE_LOCALTIME_R
- tm = localtime_r( &c->c_starttime, &tm_buf );
-# else
- tm = localtime( &c->c_starttime );
-# endif
- ctmbv.bv_len = lutil_localtime( ctmbuf, sizeof( ctmbuf ), tm, -timezone );
- ctmbv.bv_val = ctmbuf;
-#else /* !HACK_LOCAL_TIME */
- ctmbv = bv2;
-#endif
+ ctmbv.bv_len = lutil_gentime( buf2, sizeof( buf2 ), &tm );
+ ctmbv.bv_val = buf2;
-#ifdef HAVE_GMTIME_R
- tm = gmtime_r( &c->c_activitytime, &tm_buf );
-#else
- tm = gmtime( &c->c_activitytime );
-#endif
- bv3.bv_len = lutil_gentime( buf3, sizeof( buf3 ), tm );
- bv3.bv_val = buf3;
-#ifdef HACK_LOCAL_TIME
-# ifdef HAVE_LOCALTIME_R
- tm = localtime_r( &c->c_activitytime, &tm_buf );
-# else
- tm = localtime( &c->c_activitytime );
-# endif /* HAVE_LOCALTIME_R */
- mtmbv.bv_len = lutil_localtime( mtmbuf, sizeof( mtmbuf ), tm, -timezone );
- mtmbv.bv_val = mtmbuf;
-#else /* !HACK_LOCAL_TIME */
- mtmbv = bv3;
-#endif
-
-#ifndef HAVE_GMTIME_R
- ldap_pvt_thread_mutex_unlock( &gmtime_mutex );
-#endif
+ ldap_pvt_gmtime( &c->c_activitytime, &tm );
+ mtmbv.bv_len = lutil_gentime( buf3, sizeof( buf3 ), &tm );
+ mtmbv.bv_val = buf3;
bv.bv_len = snprintf( buf, sizeof( buf ),
"cn=Connection %ld", c->c_connid );
@@ -452,9 +407,9 @@ conn_create(
attr_merge_normalize_one( e, mi->mi_ad_monitorConnectionLocalAddress,
&c->c_sock_name, NULL );
- attr_merge_normalize_one( e, mi->mi_ad_monitorConnectionStartTime, &bv2, NULL );
+ attr_merge_normalize_one( e, mi->mi_ad_monitorConnectionStartTime, &ctmbv, NULL );
- attr_merge_normalize_one( e, mi->mi_ad_monitorConnectionActivityTime, &bv3, NULL );
+ attr_merge_normalize_one( e, mi->mi_ad_monitorConnectionActivityTime, &mtmbv, NULL );
mp = monitor_entrypriv_create();
if ( mp == NULL ) {
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/database.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/database.c
index 301a291b7d09..620a40987ead 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/database.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/database.c
@@ -1,10 +1,10 @@
-/* $NetBSD: database.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: database.c,v 1.1.1.4 2010/12/12 15:23:14 adam Exp $ */
/* database.c - deals with database subsystem */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/database.c,v 1.80.2.15 2009/08/25 22:48:09 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/database.c,v 1.80.2.16 2010/04/13 20:23:32 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/entry.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/entry.c
index d813997d573f..a296d2e3478f 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/entry.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/entry.c
@@ -1,10 +1,10 @@
-/* $NetBSD: entry.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: entry.c,v 1.1.1.3 2010/12/12 15:23:14 adam Exp $ */
/* entry.c - monitor backend entry handling routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/entry.c,v 1.21.2.6 2009/01/22 00:01:08 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/entry.c,v 1.21.2.7 2010/04/13 20:23:32 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/init.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/init.c
index aab680cf4616..fab057284e58 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/init.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/init.c
@@ -1,10 +1,10 @@
-/* $NetBSD: init.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: init.c,v 1.1.1.3 2010/12/12 15:23:15 adam Exp $ */
/* init.c - initialize monitor backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/init.c,v 1.125.2.11 2009/11/18 01:25:49 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/init.c,v 1.125.2.14 2010/04/19 16:53:03 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
@@ -2063,6 +2063,7 @@ monitor_back_initialize(
bi->bi_tool_entry_open = 0;
bi->bi_tool_entry_close = 0;
bi->bi_tool_entry_first = 0;
+ bi->bi_tool_entry_first_x = 0;
bi->bi_tool_entry_next = 0;
bi->bi_tool_entry_get = 0;
bi->bi_tool_entry_put = 0;
@@ -2209,10 +2210,7 @@ monitor_back_db_open(
monitor_entry_t *mp;
int i;
struct berval bv, rdn = BER_BVC(SLAPD_MONITOR_DN);
- struct tm *tms;
-#ifdef HAVE_GMTIME_R
- struct tm tm_buf;
-#endif
+ struct tm tms;
static char tmbuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
struct berval desc[] = {
BER_BVC("This subtree contains monitoring/managing objects."),
@@ -2231,27 +2229,8 @@ monitor_back_db_open(
/*
* Start
*/
-#ifndef HAVE_GMTIME_R
- ldap_pvt_thread_mutex_lock( &gmtime_mutex );
-#endif
-#ifdef HACK_LOCAL_TIME
-# ifdef HAVE_LOCALTIME_R
- tms = localtime_r( &starttime, &tm_buf );
-# else
- tms = localtime( &starttime );
-# endif /* HAVE_LOCALTIME_R */
- lutil_localtime( tmbuf, sizeof(tmbuf), tms, -timezone );
-#else /* !HACK_LOCAL_TIME */
-# ifdef HAVE_GMTIME_R
- tms = gmtime_r( &starttime, &tm_buf );
-# else
- tms = gmtime( &starttime );
-# endif /* HAVE_GMTIME_R */
- lutil_gentime( tmbuf, sizeof(tmbuf), tms );
-#endif /* !HACK_LOCAL_TIME */
-#ifndef HAVE_GMTIME_R
- ldap_pvt_thread_mutex_unlock( &gmtime_mutex );
-#endif
+ ldap_pvt_gmtime( &starttime, &tms );
+ lutil_gentime( tmbuf, sizeof(tmbuf), &tms );
mi->mi_startTime.bv_val = tmbuf;
mi->mi_startTime.bv_len = strlen( tmbuf );
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/listener.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/listener.c
index 36025968d066..940df6123085 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/listener.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/listener.c
@@ -1,10 +1,10 @@
-/* $NetBSD: listener.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: listener.c,v 1.1.1.3 2010/12/12 15:23:15 adam Exp $ */
/* listener.c - deals with listener subsystem */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/listener.c,v 1.31.2.4 2009/01/22 00:01:08 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/listener.c,v 1.31.2.5 2010/04/13 20:23:33 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/log.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/log.c
index 431d7263b730..dc091142f14c 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/log.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/log.c
@@ -1,10 +1,10 @@
-/* $NetBSD: log.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: log.c,v 1.1.1.3 2010/12/12 15:23:15 adam Exp $ */
/* log.c - deal with log subsystem */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/log.c,v 1.56.2.6 2009/02/05 19:35:54 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/log.c,v 1.56.2.7 2010/04/13 20:23:33 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/modify.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/modify.c
index a2ce5ab4ac2b..a1af50dc05b2 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/modify.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/modify.c
@@ -1,10 +1,10 @@
-/* $NetBSD: modify.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modify.c,v 1.1.1.3 2010/12/12 15:23:16 adam Exp $ */
/* modify.c - monitor backend modify routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/modify.c,v 1.24.2.5 2009/01/22 00:01:08 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/modify.c,v 1.24.2.6 2010/04/13 20:23:33 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/operation.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/operation.c
index e89cfce10a8d..8d123e9bffb3 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/operation.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/operation.c
@@ -1,10 +1,10 @@
-/* $NetBSD: operation.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: operation.c,v 1.1.1.3 2010/12/12 15:23:16 adam Exp $ */
/* operation.c - deal with operation subsystem */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/operation.c,v 1.46.2.6 2009/04/27 22:50:10 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/operation.c,v 1.46.2.7 2010/04/13 20:23:33 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/operational.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/operational.c
index d83adc0ed389..0a743c1f07ec 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/operational.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/operational.c
@@ -1,10 +1,10 @@
-/* $NetBSD: operational.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: operational.c,v 1.1.1.3 2010/12/12 15:23:16 adam Exp $ */
/* operational.c - monitor backend operational attributes function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/operational.c,v 1.17.2.5 2009/01/22 00:01:08 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/operational.c,v 1.17.2.6 2010/04/13 20:23:33 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/overlay.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/overlay.c
index 576c81974a26..570c63d6769f 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/overlay.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/overlay.c
@@ -1,9 +1,9 @@
-/* $NetBSD: overlay.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: overlay.c,v 1.1.1.3 2010/12/12 15:23:16 adam Exp $ */
/* overlay.c - deals with overlay subsystem */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/proto-back-monitor.h b/external/bsd/openldap/dist/servers/slapd/back-monitor/proto-back-monitor.h
index daa08a78e5ff..2a7e4c54ca9f 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/proto-back-monitor.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/proto-back-monitor.h
@@ -1,9 +1,9 @@
-/* $NetBSD: proto-back-monitor.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: proto-back-monitor.h,v 1.1.1.3 2010/12/12 15:23:16 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/proto-back-monitor.h,v 1.33.2.7 2009/08/25 22:48:10 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/proto-back-monitor.h,v 1.33.2.8 2010/04/13 20:23:33 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/rww.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/rww.c
index 4faa56bb9590..4de9413cd402 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/rww.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/rww.c
@@ -1,10 +1,10 @@
-/* $NetBSD: rww.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: rww.c,v 1.1.1.3 2010/12/12 15:23:16 adam Exp $ */
/* readw.c - deal with read waiters subsystem */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/rww.c,v 1.36.2.6 2009/04/27 22:50:10 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/rww.c,v 1.36.2.7 2010/04/13 20:23:33 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/search.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/search.c
index 7f05702e538c..eda1fa1de0ac 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/search.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/search.c
@@ -1,10 +1,10 @@
-/* $NetBSD: search.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: search.c,v 1.1.1.3 2010/12/12 15:23:16 adam Exp $ */
/* search.c - monitor backend search function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/search.c,v 1.39.2.6 2009/01/22 00:01:08 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/search.c,v 1.39.2.7 2010/04/13 20:23:33 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/sent.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/sent.c
index 042d25f4e709..6a2a99930d73 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/sent.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/sent.c
@@ -1,10 +1,10 @@
-/* $NetBSD: sent.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sent.c,v 1.1.1.3 2010/12/12 15:23:16 adam Exp $ */
/* sent.c - deal with data sent subsystem */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/sent.c,v 1.42.2.6 2009/04/27 22:50:11 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/sent.c,v 1.42.2.7 2010/04/13 20:23:34 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/thread.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/thread.c
index 545dc9d1087a..5892b993ae16 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/thread.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/thread.c
@@ -1,10 +1,10 @@
-/* $NetBSD: thread.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: thread.c,v 1.1.1.3 2010/12/12 15:23:16 adam Exp $ */
/* thread.c - deal with thread subsystem */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/thread.c,v 1.38.2.8 2009/01/22 00:01:08 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/thread.c,v 1.38.2.9 2010/04/13 20:23:34 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-monitor/time.c b/external/bsd/openldap/dist/servers/slapd/back-monitor/time.c
index 52200e2d9f61..8c10c89cd079 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-monitor/time.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-monitor/time.c
@@ -1,10 +1,10 @@
-/* $NetBSD: time.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: time.c,v 1.1.1.3 2010/12/12 15:23:16 adam Exp $ */
/* time.c - deal with time subsystem */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/time.c,v 1.37.2.4 2009/01/22 00:01:08 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-monitor/time.c,v 1.37.2.6 2010/04/19 16:53:03 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 Pierangelo Masarati.
* All rights reserved.
*
@@ -197,10 +197,7 @@ monitor_subsys_time_update(
dnRdn( &e->e_nname, &rdn );
if ( dn_match( &rdn, &bv_current ) ) {
- struct tm *tm;
-#ifdef HAVE_GMTIME_R
- struct tm tm_buf;
-#endif
+ struct tm tm;
char tmbuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
Attribute *a;
ber_len_t len;
@@ -208,27 +205,8 @@ monitor_subsys_time_update(
currtime = slap_get_time();
-#ifndef HAVE_GMTIME_R
- ldap_pvt_thread_mutex_lock( &gmtime_mutex );
-#endif
-#ifdef HACK_LOCAL_TIME
-# ifdef HAVE_LOCALTIME_R
- tm = localtime_r( &currtime, &tm_buf );
-# else
- tm = localtime( &currtime );
-# endif /* HAVE_LOCALTIME_R */
- lutil_localtime( tmbuf, sizeof( tmbuf ), tm, -timezone );
-#else /* !HACK_LOCAL_TIME */
-# ifdef HAVE_GMTIME_R
- tm = gmtime_r( &currtime, &tm_buf );
-# else
- tm = gmtime( &currtime );
-# endif /* HAVE_GMTIME_R */
- lutil_gentime( tmbuf, sizeof( tmbuf ), tm );
-#endif /* !HACK_LOCAL_TIME */
-#ifndef HAVE_GMTIME_R
- ldap_pvt_thread_mutex_unlock( &gmtime_mutex );
-#endif
+ ldap_pvt_gmtime( &currtime, &tm );
+ lutil_gentime( tmbuf, sizeof( tmbuf ), &tm );
len = strlen( tmbuf );
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ndb/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-ndb/Makefile.in
index bee24f734ba8..acf63422c8b0 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ndb/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-ndb/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for back-ndb
-# OpenLDAP: pkg/ldap/servers/slapd/back-ndb/Makefile.in,v 1.3.2.2 2009/01/22 00:01:08 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-ndb/Makefile.in,v 1.3.2.3 2010/04/13 20:23:34 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2008-2009 The OpenLDAP Foundation.
+## Copyright 2008-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ndb/add.cpp b/external/bsd/openldap/dist/servers/slapd/back-ndb/add.cpp
index a8468f963a1c..37104024203d 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ndb/add.cpp
+++ b/external/bsd/openldap/dist/servers/slapd/back-ndb/add.cpp
@@ -1,8 +1,8 @@
/* add.cpp - ldap NDB back-end add routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/add.cpp,v 1.3.2.4 2009/02/05 19:35:54 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/add.cpp,v 1.3.2.5 2010/04/13 20:23:34 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ndb/back-ndb.h b/external/bsd/openldap/dist/servers/slapd/back-ndb/back-ndb.h
index 78973cc1224f..48b2b0d42d3c 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ndb/back-ndb.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-ndb/back-ndb.h
@@ -1,9 +1,9 @@
-/* $NetBSD: back-ndb.h,v 1.1.1.1 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: back-ndb.h,v 1.1.1.2 2010/12/12 15:23:17 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/back-ndb.h,v 1.3.2.2 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/back-ndb.h,v 1.3.2.3 2010/04/13 20:23:34 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ndb/bind.cpp b/external/bsd/openldap/dist/servers/slapd/back-ndb/bind.cpp
index 269c6e69c1d6..e7bac3964ff6 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ndb/bind.cpp
+++ b/external/bsd/openldap/dist/servers/slapd/back-ndb/bind.cpp
@@ -1,8 +1,8 @@
/* bind.cpp - ndb backend bind routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/bind.cpp,v 1.3.2.2 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/bind.cpp,v 1.3.2.3 2010/04/13 20:23:34 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ndb/compare.cpp b/external/bsd/openldap/dist/servers/slapd/back-ndb/compare.cpp
index 78da09938748..e6458f7d397d 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ndb/compare.cpp
+++ b/external/bsd/openldap/dist/servers/slapd/back-ndb/compare.cpp
@@ -1,8 +1,8 @@
/* compare.cpp - ndb backend compare routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/compare.cpp,v 1.3.2.2 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/compare.cpp,v 1.3.2.3 2010/04/13 20:23:34 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ndb/config.cpp b/external/bsd/openldap/dist/servers/slapd/back-ndb/config.cpp
index 2e23a4c636d1..e9d4cfbfc22f 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ndb/config.cpp
+++ b/external/bsd/openldap/dist/servers/slapd/back-ndb/config.cpp
@@ -1,8 +1,8 @@
/* config.cpp - ndb backend configuration file routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/config.cpp,v 1.3.2.2 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/config.cpp,v 1.3.2.3 2010/04/13 20:23:34 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ndb/delete.cpp b/external/bsd/openldap/dist/servers/slapd/back-ndb/delete.cpp
index 687061d06b4a..a7c804ce70be 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ndb/delete.cpp
+++ b/external/bsd/openldap/dist/servers/slapd/back-ndb/delete.cpp
@@ -1,8 +1,8 @@
/* delete.cpp - ndb backend delete routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/delete.cpp,v 1.3.2.2 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/delete.cpp,v 1.3.2.4 2010/04/19 16:53:03 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -58,7 +58,7 @@ ndb_back_delete( Operation *op, SlapReply *rs )
/* allocate CSN */
if ( BER_BVISNULL( &op->o_csn ) ) {
struct berval csn;
- char csnbuf[LDAP_LUTIL_CSNSTR_BUFSIZE];
+ char csnbuf[LDAP_PVT_CSNSTR_BUFSIZE];
csn.bv_val = csnbuf;
csn.bv_len = sizeof(csnbuf);
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ndb/init.cpp b/external/bsd/openldap/dist/servers/slapd/back-ndb/init.cpp
index c74e08f9681c..80146417cb0d 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ndb/init.cpp
+++ b/external/bsd/openldap/dist/servers/slapd/back-ndb/init.cpp
@@ -1,8 +1,8 @@
/* init.cpp - initialize ndb backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/init.cpp,v 1.4.2.3 2009/07/22 19:45:56 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/init.cpp,v 1.4.2.4 2010/04/13 20:23:35 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ndb/modify.cpp b/external/bsd/openldap/dist/servers/slapd/back-ndb/modify.cpp
index d3b0296f64a6..9765ab7408e9 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ndb/modify.cpp
+++ b/external/bsd/openldap/dist/servers/slapd/back-ndb/modify.cpp
@@ -1,8 +1,8 @@
/* modify.cpp - ndb backend modify routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/modify.cpp,v 1.3.2.3 2009/02/05 19:35:54 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/modify.cpp,v 1.3.2.4 2010/04/13 20:23:35 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ndb/modrdn.cpp b/external/bsd/openldap/dist/servers/slapd/back-ndb/modrdn.cpp
index d5e07c52474c..3e5663b06ade 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ndb/modrdn.cpp
+++ b/external/bsd/openldap/dist/servers/slapd/back-ndb/modrdn.cpp
@@ -1,8 +1,8 @@
/* modrdn.cpp - ndb backend modrdn routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/modrdn.cpp,v 1.3.2.2 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/modrdn.cpp,v 1.3.2.3 2010/04/13 20:23:35 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ndb/ndbio.cpp b/external/bsd/openldap/dist/servers/slapd/back-ndb/ndbio.cpp
index 32e0d82dac79..adaef0b65126 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ndb/ndbio.cpp
+++ b/external/bsd/openldap/dist/servers/slapd/back-ndb/ndbio.cpp
@@ -1,8 +1,8 @@
/* ndbio.cpp - get/set/del data for NDB */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/ndbio.cpp,v 1.3.2.2 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/ndbio.cpp,v 1.3.2.3 2010/04/13 20:23:35 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ndb/proto-ndb.h b/external/bsd/openldap/dist/servers/slapd/back-ndb/proto-ndb.h
index 5078ed09d82d..0a895e796a8f 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ndb/proto-ndb.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-ndb/proto-ndb.h
@@ -1,9 +1,9 @@
-/* $NetBSD: proto-ndb.h,v 1.1.1.1 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: proto-ndb.h,v 1.1.1.2 2010/12/12 15:23:19 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/proto-ndb.h,v 1.3.2.2 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/proto-ndb.h,v 1.3.2.3 2010/04/13 20:23:35 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ndb/search.cpp b/external/bsd/openldap/dist/servers/slapd/back-ndb/search.cpp
index 0b0592bcad7c..37652062708a 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ndb/search.cpp
+++ b/external/bsd/openldap/dist/servers/slapd/back-ndb/search.cpp
@@ -1,8 +1,8 @@
/* search.cpp - tools for slap tools */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/search.cpp,v 1.3.2.4 2009/08/02 21:14:22 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/search.cpp,v 1.3.2.5 2010/04/13 20:23:35 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-ndb/tools.cpp b/external/bsd/openldap/dist/servers/slapd/back-ndb/tools.cpp
index a8fc2f0a6d3b..cbbd602a65df 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-ndb/tools.cpp
+++ b/external/bsd/openldap/dist/servers/slapd/back-ndb/tools.cpp
@@ -1,8 +1,8 @@
/* tools.cpp - tools for slap tools */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/tools.cpp,v 1.3.2.2 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-ndb/tools.cpp,v 1.3.2.3 2010/04/13 20:23:35 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2008-2009 The OpenLDAP Foundation.
+ * Copyright 2008-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-null/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-null/Makefile.in
index d2afb96976f4..8365f2956488 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-null/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-null/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for back-null
-# OpenLDAP: pkg/ldap/servers/slapd/back-null/Makefile.in,v 1.9.2.4 2009/01/22 00:01:09 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-null/Makefile.in,v 1.9.2.5 2010/04/13 20:23:35 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-null/null.c b/external/bsd/openldap/dist/servers/slapd/back-null/null.c
index 06455bb943db..d4aacc175f57 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-null/null.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-null/null.c
@@ -1,10 +1,10 @@
-/* $NetBSD: null.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: null.c,v 1.1.1.3 2010/12/12 15:23:20 adam Exp $ */
/* null.c - the null backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-null/null.c,v 1.18.2.9 2009/12/16 19:09:37 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-null/null.c,v 1.18.2.11 2010/04/14 22:59:11 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2002-2009 The OpenLDAP Foundation.
+ * Copyright 2002-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -256,6 +256,12 @@ null_tool_entry_close( BackendDB *be )
return 0;
}
+static ID
+null_tool_entry_first_x( BackendDB *be, struct berval *base, int scope, Filter *f )
+{
+ return NOID;
+}
+
static ID
null_tool_entry_next( BackendDB *be )
{
@@ -394,7 +400,8 @@ null_back_initialize( BackendInfo *bi )
bi->bi_tool_entry_open = null_tool_entry_open;
bi->bi_tool_entry_close = null_tool_entry_close;
- bi->bi_tool_entry_first = null_tool_entry_next;
+ bi->bi_tool_entry_first = backend_tool_entry_first;
+ bi->bi_tool_entry_first_x = null_tool_entry_first_x;
bi->bi_tool_entry_next = null_tool_entry_next;
bi->bi_tool_entry_get = null_tool_entry_get;
bi->bi_tool_entry_put = null_tool_entry_put;
diff --git a/external/bsd/openldap/dist/servers/slapd/back-passwd/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-passwd/Makefile.in
index 3c21261a111a..51f54b66def6 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-passwd/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-passwd/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for back-passwd
-# OpenLDAP: pkg/ldap/servers/slapd/back-passwd/Makefile.in,v 1.20.2.4 2009/01/22 00:01:09 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-passwd/Makefile.in,v 1.20.2.5 2010/04/13 20:23:36 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-passwd/back-passwd.h b/external/bsd/openldap/dist/servers/slapd/back-passwd/back-passwd.h
index 77291149a1e3..0cf6e0c9bedd 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-passwd/back-passwd.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-passwd/back-passwd.h
@@ -1,9 +1,9 @@
-/* $NetBSD: back-passwd.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: back-passwd.h,v 1.1.1.3 2010/12/12 15:23:20 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-passwd/back-passwd.h,v 1.7.2.4 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-passwd/back-passwd.h,v 1.7.2.5 2010/04/13 20:23:36 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-passwd/config.c b/external/bsd/openldap/dist/servers/slapd/back-passwd/config.c
index 66e2fe0f808a..9b2b0df28bc1 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-passwd/config.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-passwd/config.c
@@ -1,10 +1,10 @@
-/* $NetBSD: config.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: config.c,v 1.1.1.3 2010/12/12 15:23:20 adam Exp $ */
/* config.c - passwd backend configuration file routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-passwd/config.c,v 1.14.2.4 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-passwd/config.c,v 1.14.2.5 2010/04/13 20:23:36 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-passwd/init.c b/external/bsd/openldap/dist/servers/slapd/back-passwd/init.c
index a22cd05567d8..b35cdee73dbd 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-passwd/init.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-passwd/init.c
@@ -1,10 +1,10 @@
-/* $NetBSD: init.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: init.c,v 1.1.1.3 2010/12/12 15:23:20 adam Exp $ */
/* init.c - initialize passwd backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-passwd/init.c,v 1.32.2.4 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-passwd/init.c,v 1.32.2.5 2010/04/13 20:23:36 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-passwd/proto-passwd.h b/external/bsd/openldap/dist/servers/slapd/back-passwd/proto-passwd.h
index 6e681394e818..a55a29985f03 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-passwd/proto-passwd.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-passwd/proto-passwd.h
@@ -1,9 +1,9 @@
-/* $NetBSD: proto-passwd.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: proto-passwd.h,v 1.1.1.3 2010/12/12 15:23:20 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-passwd/proto-passwd.h,v 1.5.2.4 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-passwd/proto-passwd.h,v 1.5.2.5 2010/04/13 20:23:36 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-passwd/search.c b/external/bsd/openldap/dist/servers/slapd/back-passwd/search.c
index ca064c0987ed..13d987272e6c 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-passwd/search.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-passwd/search.c
@@ -1,10 +1,10 @@
-/* $NetBSD: search.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: search.c,v 1.1.1.3 2010/12/12 15:23:20 adam Exp $ */
/* search.c - /etc/passwd backend search function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-passwd/search.c,v 1.79.2.4 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-passwd/search.c,v 1.79.2.5 2010/04/13 20:23:36 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-perl/Makefile.in
index cd40e994ac94..116c242332e3 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for back-perl
-# OpenLDAP: pkg/ldap/servers/slapd/back-perl/Makefile.in,v 1.20.2.4 2009/01/22 00:01:09 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-perl/Makefile.in,v 1.20.2.5 2010/04/13 20:23:36 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## Portions Copyright 1999 John C. Quillan.
## All rights reserved.
##
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/SampleLDAP.pm b/external/bsd/openldap/dist/servers/slapd/back-perl/SampleLDAP.pm
index 7def2f0898e4..44f0c14df348 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/SampleLDAP.pm
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/SampleLDAP.pm
@@ -1,8 +1,8 @@
# This is a sample Perl module for the OpenLDAP server slapd.
-# OpenLDAP: pkg/ldap/servers/slapd/back-perl/SampleLDAP.pm,v 1.10.2.4 2009/01/22 00:01:09 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-perl/SampleLDAP.pm,v 1.10.2.5 2010/04/13 20:23:36 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## Portions Copyright 1999 John C. Quillan.
## All rights reserved.
##
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/add.c b/external/bsd/openldap/dist/servers/slapd/back-perl/add.c
index 721cbc1291f4..a98260729b36 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/add.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/add.c
@@ -1,9 +1,9 @@
-/* $NetBSD: add.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: add.c,v 1.1.1.3 2010/12/12 15:23:20 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/add.c,v 1.20.2.4 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/add.c,v 1.20.2.5 2010/04/13 20:23:36 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/asperl_undefs.h b/external/bsd/openldap/dist/servers/slapd/back-perl/asperl_undefs.h
index 4b69f8c37e02..5893ca7691fc 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/asperl_undefs.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/asperl_undefs.h
@@ -1,9 +1,9 @@
-/* $NetBSD: asperl_undefs.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: asperl_undefs.h,v 1.1.1.3 2010/12/12 15:23:20 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/asperl_undefs.h,v 1.7.2.4 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/asperl_undefs.h,v 1.7.2.5 2010/04/13 20:23:36 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/bind.c b/external/bsd/openldap/dist/servers/slapd/back-perl/bind.c
index 55eea14ee2ac..2f394dbb5a24 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/bind.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/bind.c
@@ -1,9 +1,9 @@
-/* $NetBSD: bind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: bind.c,v 1.1.1.3 2010/12/12 15:23:20 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/bind.c,v 1.24.2.5 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/bind.c,v 1.24.2.6 2010/04/13 20:23:37 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/close.c b/external/bsd/openldap/dist/servers/slapd/back-perl/close.c
index c67cbd749bf3..0b83d485589e 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/close.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/close.c
@@ -1,9 +1,9 @@
-/* $NetBSD: close.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: close.c,v 1.1.1.3 2010/12/12 15:23:20 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/close.c,v 1.17.2.5 2009/06/27 18:02:10 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/close.c,v 1.17.2.6 2010/04/13 20:23:37 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/compare.c b/external/bsd/openldap/dist/servers/slapd/back-perl/compare.c
index 253a1937fd19..0b01bbc20b9f 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/compare.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/compare.c
@@ -1,9 +1,9 @@
-/* $NetBSD: compare.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: compare.c,v 1.1.1.3 2010/12/12 15:23:20 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/compare.c,v 1.26.2.4 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/compare.c,v 1.26.2.5 2010/04/13 20:23:37 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/config.c b/external/bsd/openldap/dist/servers/slapd/back-perl/config.c
index 13469a5dbcd6..68662fd1d952 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/config.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/config.c
@@ -1,9 +1,9 @@
-/* $NetBSD: config.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: config.c,v 1.1.1.3 2010/12/12 15:23:20 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/config.c,v 1.22.2.4 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/config.c,v 1.22.2.5 2010/04/13 20:23:37 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/delete.c b/external/bsd/openldap/dist/servers/slapd/back-perl/delete.c
index 8c4922da62fd..75aa25ed42c2 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/delete.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/delete.c
@@ -1,9 +1,9 @@
-/* $NetBSD: delete.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: delete.c,v 1.1.1.3 2010/12/12 15:23:20 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/delete.c,v 1.20.2.4 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/delete.c,v 1.20.2.5 2010/04/13 20:23:37 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/init.c b/external/bsd/openldap/dist/servers/slapd/back-perl/init.c
index 2ddd9e32e4e0..5476d543e227 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/init.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/init.c
@@ -1,9 +1,9 @@
-/* $NetBSD: init.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: init.c,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/init.c,v 1.44.2.6 2009/06/27 18:02:10 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/init.c,v 1.44.2.7 2010/04/13 20:23:37 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/modify.c b/external/bsd/openldap/dist/servers/slapd/back-perl/modify.c
index 109f22f48966..3a17816346c5 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/modify.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/modify.c
@@ -1,9 +1,9 @@
-/* $NetBSD: modify.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modify.c,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/modify.c,v 1.23.2.5 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/modify.c,v 1.23.2.6 2010/04/13 20:23:37 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/modrdn.c b/external/bsd/openldap/dist/servers/slapd/back-perl/modrdn.c
index 3f658a4b51e1..aa9c81b2e83e 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/modrdn.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/modrdn.c
@@ -1,9 +1,9 @@
-/* $NetBSD: modrdn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modrdn.c,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/modrdn.c,v 1.22.2.4 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/modrdn.c,v 1.22.2.5 2010/04/13 20:23:37 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/perl_back.h b/external/bsd/openldap/dist/servers/slapd/back-perl/perl_back.h
index 02b341032a76..6bba90786f71 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/perl_back.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/perl_back.h
@@ -1,9 +1,9 @@
-/* $NetBSD: perl_back.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: perl_back.h,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/perl_back.h,v 1.15.2.4 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/perl_back.h,v 1.15.2.5 2010/04/13 20:23:37 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/proto-perl.h b/external/bsd/openldap/dist/servers/slapd/back-perl/proto-perl.h
index b839caa803f1..87bd929ca0b0 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/proto-perl.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/proto-perl.h
@@ -1,9 +1,9 @@
-/* $NetBSD: proto-perl.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: proto-perl.h,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/proto-perl.h,v 1.5.2.5 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/proto-perl.h,v 1.5.2.6 2010/04/13 20:23:37 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-perl/search.c b/external/bsd/openldap/dist/servers/slapd/back-perl/search.c
index 2f3b77bd431c..09a985ef374f 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-perl/search.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-perl/search.c
@@ -1,9 +1,9 @@
-/* $NetBSD: search.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: search.c,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/search.c,v 1.31.2.4 2009/01/22 00:01:09 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-perl/search.c,v 1.31.2.5 2010/04/13 20:23:38 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 John C. Quillan.
* Portions Copyright 2002 myinternet Limited.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-relay/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-relay/Makefile.in
index 90063fded907..4e152e8ee1c1 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-relay/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-relay/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for back-relay
-# OpenLDAP: pkg/ldap/servers/slapd/back-relay/Makefile.in,v 1.5.2.4 2009/01/22 00:01:09 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-relay/Makefile.in,v 1.5.2.5 2010/04/13 20:23:38 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-relay/back-relay.h b/external/bsd/openldap/dist/servers/slapd/back-relay/back-relay.h
index dcdb1ff78cd8..b6be72efa52d 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-relay/back-relay.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-relay/back-relay.h
@@ -1,10 +1,10 @@
-/* $NetBSD: back-relay.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: back-relay.h,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
/* back-relay.h - relay backend header file */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-relay/back-relay.h,v 1.6.2.6 2009/10/31 00:15:21 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-relay/back-relay.h,v 1.6.2.7 2010/04/13 20:23:38 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* Portions Copyright 2004 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-relay/init.c b/external/bsd/openldap/dist/servers/slapd/back-relay/init.c
index 2cd1fa7cf512..649982f658c2 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-relay/init.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-relay/init.c
@@ -1,10 +1,10 @@
-/* $NetBSD: init.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: init.c,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
/* init.c - initialize relay backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-relay/init.c,v 1.19.2.8 2009/08/12 23:57:40 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-relay/init.c,v 1.19.2.9 2010/04/13 20:23:38 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* Portions Copyright 2004 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-relay/op.c b/external/bsd/openldap/dist/servers/slapd/back-relay/op.c
index 889fcec4ffa9..ac2c3ac1f6d4 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-relay/op.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-relay/op.c
@@ -1,10 +1,10 @@
-/* $NetBSD: op.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: op.c,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
/* op.c - relay backend operations */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-relay/op.c,v 1.15.2.13 2009/11/02 18:27:43 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-relay/op.c,v 1.15.2.14 2010/04/13 20:23:38 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* Portions Copyright 2004 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-relay/proto-back-relay.h b/external/bsd/openldap/dist/servers/slapd/back-relay/proto-back-relay.h
index 138a7d879f8b..a523d2fe95c6 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-relay/proto-back-relay.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-relay/proto-back-relay.h
@@ -1,10 +1,10 @@
-/* $NetBSD: proto-back-relay.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: proto-back-relay.h,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
/* proto-back-relay.h - relay backend header file */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-relay/proto-back-relay.h,v 1.6.2.6 2009/11/02 18:28:32 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-relay/proto-back-relay.h,v 1.6.2.7 2010/04/13 20:23:38 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* Portions Copyright 2004 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-shell/Makefile.in
index 27eaa084efe0..681e579c7643 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for back-shell
-# OpenLDAP: pkg/ldap/servers/slapd/back-shell/Makefile.in,v 1.22.2.4 2009/01/22 00:01:10 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-shell/Makefile.in,v 1.22.2.5 2010/04/13 20:23:38 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/add.c b/external/bsd/openldap/dist/servers/slapd/back-shell/add.c
index 8e1f0e8066a0..b1b3589537c1 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/add.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/add.c
@@ -1,10 +1,10 @@
-/* $NetBSD: add.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: add.c,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
/* add.c - shell backend add function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/add.c,v 1.27.2.4 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/add.c,v 1.27.2.5 2010/04/13 20:23:38 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/bind.c b/external/bsd/openldap/dist/servers/slapd/back-shell/bind.c
index 466120c208e1..5b43c733c81b 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/bind.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/bind.c
@@ -1,10 +1,10 @@
-/* $NetBSD: bind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: bind.c,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
/* bind.c - shell backend bind function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/bind.c,v 1.27.2.4 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/bind.c,v 1.27.2.5 2010/04/13 20:23:38 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/compare.c b/external/bsd/openldap/dist/servers/slapd/back-shell/compare.c
index 2f33e77e8917..769b878fd1cb 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/compare.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/compare.c
@@ -1,10 +1,10 @@
-/* $NetBSD: compare.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: compare.c,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
/* compare.c - shell backend compare function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/compare.c,v 1.28.2.4 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/compare.c,v 1.28.2.5 2010/04/13 20:23:38 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/config.c b/external/bsd/openldap/dist/servers/slapd/back-shell/config.c
index ba8776e84079..3b0688ed0de4 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/config.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/config.c
@@ -1,10 +1,10 @@
-/* $NetBSD: config.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: config.c,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
/* config.c - shell backend configuration file routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/config.c,v 1.18.2.4 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/config.c,v 1.18.2.5 2010/04/13 20:23:39 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/delete.c b/external/bsd/openldap/dist/servers/slapd/back-shell/delete.c
index fb403707ba23..c18fc987d97a 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/delete.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/delete.c
@@ -1,10 +1,10 @@
-/* $NetBSD: delete.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: delete.c,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
/* delete.c - shell backend delete function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/delete.c,v 1.26.2.4 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/delete.c,v 1.26.2.5 2010/04/13 20:23:39 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/fork.c b/external/bsd/openldap/dist/servers/slapd/back-shell/fork.c
index 9a65f92e8a1a..63abfe1beab6 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/fork.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/fork.c
@@ -1,10 +1,10 @@
-/* $NetBSD: fork.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: fork.c,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
/* fork.c - fork and exec a process, connecting stdin/out w/pipes */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/fork.c,v 1.18.2.4 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/fork.c,v 1.18.2.5 2010/04/13 20:23:39 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/init.c b/external/bsd/openldap/dist/servers/slapd/back-shell/init.c
index 753dbfb741e8..5048864326ef 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/init.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/init.c
@@ -1,10 +1,10 @@
-/* $NetBSD: init.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: init.c,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
/* init.c - initialize shell backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/init.c,v 1.37.2.4 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/init.c,v 1.37.2.5 2010/04/13 20:23:39 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/modify.c b/external/bsd/openldap/dist/servers/slapd/back-shell/modify.c
index c55ce213f310..2a5847cf55b8 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/modify.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/modify.c
@@ -1,10 +1,10 @@
-/* $NetBSD: modify.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modify.c,v 1.1.1.3 2010/12/12 15:23:21 adam Exp $ */
/* modify.c - shell backend modify function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/modify.c,v 1.33.2.4 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/modify.c,v 1.33.2.5 2010/04/13 20:23:39 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/modrdn.c b/external/bsd/openldap/dist/servers/slapd/back-shell/modrdn.c
index 852ea6b86d5b..6267476a3b87 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/modrdn.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/modrdn.c
@@ -1,10 +1,10 @@
-/* $NetBSD: modrdn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modrdn.c,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* modrdn.c - shell backend modrdn function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/modrdn.c,v 1.28.2.4 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/modrdn.c,v 1.28.2.5 2010/04/13 20:23:39 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/proto-shell.h b/external/bsd/openldap/dist/servers/slapd/back-shell/proto-shell.h
index cd5d379e8f0a..4220dcacc565 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/proto-shell.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/proto-shell.h
@@ -1,9 +1,9 @@
-/* $NetBSD: proto-shell.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: proto-shell.h,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/proto-shell.h,v 1.4.2.4 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/proto-shell.h,v 1.4.2.5 2010/04/13 20:23:39 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/result.c b/external/bsd/openldap/dist/servers/slapd/back-shell/result.c
index 3da29798ced6..dbdd182ef5dd 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/result.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/result.c
@@ -1,10 +1,10 @@
-/* $NetBSD: result.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: result.c,v 1.1.1.4 2010/12/12 15:23:22 adam Exp $ */
/* result.c - shell backend result reading function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/result.c,v 1.23.2.5 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/result.c,v 1.23.2.6 2010/04/13 20:23:39 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/search.c b/external/bsd/openldap/dist/servers/slapd/back-shell/search.c
index 147a549bcdf6..d607ee9bed46 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/search.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/search.c
@@ -1,10 +1,10 @@
-/* $NetBSD: search.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: search.c,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* search.c - shell backend search function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/search.c,v 1.29.2.4 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/search.c,v 1.29.2.5 2010/04/13 20:23:39 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/searchexample.conf b/external/bsd/openldap/dist/servers/slapd/back-shell/searchexample.conf
index 81dbc103f0aa..cf1d94a6663a 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/searchexample.conf
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/searchexample.conf
@@ -1,7 +1,7 @@
-# OpenLDAP: pkg/ldap/servers/slapd/back-shell/searchexample.conf,v 1.10.2.4 2009/01/22 00:01:10 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-shell/searchexample.conf,v 1.10.2.5 2010/04/13 20:23:39 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/searchexample.sh b/external/bsd/openldap/dist/servers/slapd/back-shell/searchexample.sh
index 9df9b3664692..aa182339a2cd 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/searchexample.sh
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/searchexample.sh
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/servers/slapd/back-shell/searchexample.sh,v 1.9.2.4 2009/01/22 00:01:10 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-shell/searchexample.sh,v 1.9.2.5 2010/04/13 20:23:39 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/shell.h b/external/bsd/openldap/dist/servers/slapd/back-shell/shell.h
index 9a8830d91061..d0e8101c2b0d 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/shell.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/shell.h
@@ -1,10 +1,10 @@
-/* $NetBSD: shell.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: shell.h,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* shell.h - shell backend header file */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/shell.h,v 1.24.2.4 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/shell.h,v 1.24.2.5 2010/04/13 20:23:39 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-shell/unbind.c b/external/bsd/openldap/dist/servers/slapd/back-shell/unbind.c
index 5da24a5bec71..7a015003d679 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-shell/unbind.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-shell/unbind.c
@@ -1,10 +1,10 @@
-/* $NetBSD: unbind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: unbind.c,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* unbind.c - shell backend unbind function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/unbind.c,v 1.23.2.4 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-shell/unbind.c,v 1.23.2.5 2010/04/13 20:23:40 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-sock/Makefile.in
index b95e57151ace..03a2fcb1d7dd 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for back-sock
-# OpenLDAP: pkg/ldap/servers/slapd/back-sock/Makefile.in,v 1.2.2.2 2009/01/22 00:01:10 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-sock/Makefile.in,v 1.2.2.3 2010/04/13 20:23:40 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2007-2009 The OpenLDAP Foundation.
+## Copyright 2007-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/add.c b/external/bsd/openldap/dist/servers/slapd/back-sock/add.c
index 57bb03f688ad..513de42382eb 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/add.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/add.c
@@ -1,10 +1,10 @@
-/* $NetBSD: add.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: add.c,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* add.c - sock backend add function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/add.c,v 1.3.2.2 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/add.c,v 1.3.2.3 2010/04/13 20:23:40 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2007-2009 The OpenLDAP Foundation.
+ * Copyright 2007-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/back-sock.h b/external/bsd/openldap/dist/servers/slapd/back-sock/back-sock.h
index 9d38781bf1a0..4ae11f74ce21 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/back-sock.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/back-sock.h
@@ -1,10 +1,10 @@
-/* $NetBSD: back-sock.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: back-sock.h,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* sock.h - socket backend header file */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/back-sock.h,v 1.4.2.2 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/back-sock.h,v 1.4.2.3 2010/04/13 20:23:40 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2007-2009 The OpenLDAP Foundation.
+ * Copyright 2007-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/bind.c b/external/bsd/openldap/dist/servers/slapd/back-sock/bind.c
index aca465ca7f2a..8817c4f637ce 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/bind.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/bind.c
@@ -1,10 +1,10 @@
-/* $NetBSD: bind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: bind.c,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* bind.c - sock backend bind function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/bind.c,v 1.3.2.2 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/bind.c,v 1.3.2.3 2010/04/13 20:23:40 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2007-2009 The OpenLDAP Foundation.
+ * Copyright 2007-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/compare.c b/external/bsd/openldap/dist/servers/slapd/back-sock/compare.c
index 1a4c8ae53cbf..a8e2e9109bb5 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/compare.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/compare.c
@@ -1,10 +1,10 @@
-/* $NetBSD: compare.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: compare.c,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* compare.c - sock backend compare function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/compare.c,v 1.4.2.2 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/compare.c,v 1.4.2.3 2010/04/13 20:23:40 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/config.c b/external/bsd/openldap/dist/servers/slapd/back-sock/config.c
index 462ab40c4024..fa60f1bfcb19 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/config.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/config.c
@@ -1,10 +1,10 @@
-/* $NetBSD: config.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: config.c,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* config.c - sock backend configuration file routine */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/config.c,v 1.5.2.2 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/config.c,v 1.5.2.3 2010/04/13 20:23:40 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2007-2009 The OpenLDAP Foundation.
+ * Copyright 2007-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/delete.c b/external/bsd/openldap/dist/servers/slapd/back-sock/delete.c
index 4bf3e4b11089..ab6665a044a3 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/delete.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/delete.c
@@ -1,10 +1,10 @@
-/* $NetBSD: delete.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: delete.c,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* delete.c - sock backend delete function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/delete.c,v 1.3.2.2 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/delete.c,v 1.3.2.3 2010/04/13 20:23:40 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2007-2009 The OpenLDAP Foundation.
+ * Copyright 2007-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/init.c b/external/bsd/openldap/dist/servers/slapd/back-sock/init.c
index be37a912401d..df207674e1be 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/init.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/init.c
@@ -1,10 +1,10 @@
-/* $NetBSD: init.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: init.c,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* init.c - initialize sock backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/init.c,v 1.4.2.2 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/init.c,v 1.4.2.3 2010/04/13 20:23:40 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2007-2009 The OpenLDAP Foundation.
+ * Copyright 2007-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/modify.c b/external/bsd/openldap/dist/servers/slapd/back-sock/modify.c
index bba7a27a2b4c..3fffc2178f8d 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/modify.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/modify.c
@@ -1,10 +1,10 @@
-/* $NetBSD: modify.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modify.c,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* modify.c - sock backend modify function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/modify.c,v 1.3.2.2 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/modify.c,v 1.3.2.3 2010/04/13 20:23:41 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2007-2009 The OpenLDAP Foundation.
+ * Copyright 2007-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/modrdn.c b/external/bsd/openldap/dist/servers/slapd/back-sock/modrdn.c
index fdb30a7555f5..ec9c98dc8ca9 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/modrdn.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/modrdn.c
@@ -1,10 +1,10 @@
-/* $NetBSD: modrdn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modrdn.c,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* modrdn.c - sock backend modrdn function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/modrdn.c,v 1.3.2.2 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/modrdn.c,v 1.3.2.3 2010/04/13 20:23:41 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2007-2009 The OpenLDAP Foundation.
+ * Copyright 2007-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/opensock.c b/external/bsd/openldap/dist/servers/slapd/back-sock/opensock.c
index 2f82c702299f..17c402d5918c 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/opensock.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/opensock.c
@@ -1,10 +1,10 @@
-/* $NetBSD: opensock.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: opensock.c,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* opensock.c - open a unix domain socket */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/opensock.c,v 1.3.2.3 2009/02/10 23:44:04 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/opensock.c,v 1.3.2.4 2010/04/13 20:23:41 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2007-2009 The OpenLDAP Foundation.
+ * Copyright 2007-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/proto-sock.h b/external/bsd/openldap/dist/servers/slapd/back-sock/proto-sock.h
index e01bae267bc9..f59c50f9ee77 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/proto-sock.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/proto-sock.h
@@ -1,9 +1,9 @@
-/* $NetBSD: proto-sock.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: proto-sock.h,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/proto-sock.h,v 1.4.2.2 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/proto-sock.h,v 1.4.2.3 2010/04/13 20:23:41 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2007-2009 The OpenLDAP Foundation.
+ * Copyright 2007-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/result.c b/external/bsd/openldap/dist/servers/slapd/back-sock/result.c
index 4a161aa9084e..862fe602a88b 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/result.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/result.c
@@ -1,10 +1,10 @@
-/* $NetBSD: result.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: result.c,v 1.1.1.4 2010/12/12 15:23:22 adam Exp $ */
/* result.c - sock backend result reading function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/result.c,v 1.3.2.3 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/result.c,v 1.3.2.4 2010/04/13 20:23:41 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2007-2009 The OpenLDAP Foundation.
+ * Copyright 2007-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/search.c b/external/bsd/openldap/dist/servers/slapd/back-sock/search.c
index 1f6b1d366829..6905ee787326 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/search.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/search.c
@@ -1,10 +1,10 @@
-/* $NetBSD: search.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: search.c,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* search.c - sock backend search function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/search.c,v 1.3.2.2 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/search.c,v 1.3.2.3 2010/04/13 20:23:41 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2007-2009 The OpenLDAP Foundation.
+ * Copyright 2007-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/searchexample.conf b/external/bsd/openldap/dist/servers/slapd/back-sock/searchexample.conf
index 3a347b588dcb..0fe22b2f639f 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/searchexample.conf
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/searchexample.conf
@@ -1,7 +1,7 @@
-# OpenLDAP: pkg/ldap/servers/slapd/back-sock/searchexample.conf,v 1.3.2.2 2009/01/22 00:01:10 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-sock/searchexample.conf,v 1.3.2.3 2010/04/13 20:23:41 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2007-2009 The OpenLDAP Foundation.
+## Copyright 2007-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/searchexample.pl b/external/bsd/openldap/dist/servers/slapd/back-sock/searchexample.pl
index 55e1232def6f..1fd0e5ead68d 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/searchexample.pl
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/searchexample.pl
@@ -1,8 +1,8 @@
#!/usr/bin/perl -w -T
-# OpenLDAP: pkg/ldap/servers/slapd/back-sock/searchexample.pl,v 1.5.2.2 2009/01/22 00:01:10 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-sock/searchexample.pl,v 1.5.2.3 2010/04/13 20:23:41 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2007-2009 The OpenLDAP Foundation.
+## Copyright 2007-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sock/unbind.c b/external/bsd/openldap/dist/servers/slapd/back-sock/unbind.c
index 3791cb408fe9..7d77ebbf4919 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sock/unbind.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sock/unbind.c
@@ -1,10 +1,10 @@
-/* $NetBSD: unbind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: unbind.c,v 1.1.1.3 2010/12/12 15:23:22 adam Exp $ */
/* unbind.c - sock backend unbind function */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/unbind.c,v 1.3.2.2 2009/01/22 00:01:10 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sock/unbind.c,v 1.3.2.3 2010/04/13 20:23:41 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2007-2009 The OpenLDAP Foundation.
+ * Copyright 2007-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/Makefile.in b/external/bsd/openldap/dist/servers/slapd/back-sql/Makefile.in
index 91a7302cfc25..233c7d051ebe 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for back-sql
-# OpenLDAP: pkg/ldap/servers/slapd/back-sql/Makefile.in,v 1.16.2.4 2009/01/22 00:01:10 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/back-sql/Makefile.in,v 1.16.2.5 2010/04/13 20:23:42 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/add.c b/external/bsd/openldap/dist/servers/slapd/back-sql/add.c
index e78de1d9bdd4..22187ff93874 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/add.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/add.c
@@ -1,9 +1,9 @@
-/* $NetBSD: add.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: add.c,v 1.1.1.3 2010/12/12 15:23:23 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/add.c,v 1.50.2.9 2009/02/05 19:35:54 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/add.c,v 1.50.2.11 2010/04/19 16:53:03 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Masarati.
* Portions Copyright 2004 Mark Adamson.
@@ -941,7 +941,7 @@ backsql_add( Operation *op, SlapReply *rs )
* NOTE: fake successful result to force contextCSN to be bumped up
*/
if ( op->o_sync ) {
- char buf[ LDAP_LUTIL_CSNSTR_BUFSIZE ];
+ char buf[ LDAP_PVT_CSNSTR_BUFSIZE ];
struct berval csn;
csn.bv_val = buf;
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/api.c b/external/bsd/openldap/dist/servers/slapd/back-sql/api.c
index 7e78875cf791..2219a6ef32e2 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/api.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/api.c
@@ -1,8 +1,8 @@
-/* $NetBSD: api.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: api.c,v 1.1.1.3 2010/12/12 15:23:23 adam Exp $ */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2004 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/back-sql.h b/external/bsd/openldap/dist/servers/slapd/back-sql/back-sql.h
index 5a68e1f4fe75..a94113320479 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/back-sql.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/back-sql.h
@@ -1,9 +1,9 @@
-/* $NetBSD: back-sql.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: back-sql.h,v 1.1.1.3 2010/12/12 15:23:23 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/back-sql.h,v 1.49.2.5 2009/01/22 00:01:11 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/back-sql.h,v 1.49.2.6 2010/04/13 20:23:42 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Mararati.
* Portions Copyright 2004 Mark Adamson.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/bind.c b/external/bsd/openldap/dist/servers/slapd/back-sql/bind.c
index 3fdb42eac96f..127f379203bc 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/bind.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/bind.c
@@ -1,9 +1,9 @@
-/* $NetBSD: bind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: bind.c,v 1.1.1.3 2010/12/12 15:23:23 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/bind.c,v 1.41.2.4 2009/01/22 00:01:11 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/bind.c,v 1.41.2.5 2010/04/13 20:23:42 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/compare.c b/external/bsd/openldap/dist/servers/slapd/back-sql/compare.c
index d50604d4b72a..16d003752448 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/compare.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/compare.c
@@ -1,9 +1,9 @@
-/* $NetBSD: compare.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: compare.c,v 1.1.1.3 2010/12/12 15:23:23 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/compare.c,v 1.24.2.6 2009/01/22 00:01:11 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/compare.c,v 1.24.2.7 2010/04/13 20:23:42 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/config.c b/external/bsd/openldap/dist/servers/slapd/back-sql/config.c
index 5d2c92c10608..6d1eeedf7ada 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/config.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/config.c
@@ -1,9 +1,9 @@
-/* $NetBSD: config.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: config.c,v 1.1.1.3 2010/12/12 15:23:24 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/config.c,v 1.32.2.7 2009/07/08 00:28:22 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/config.c,v 1.32.2.8 2010/04/13 20:23:42 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Masarati.
* Portions Copyright 2004 Mark Adamson.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/delete.c b/external/bsd/openldap/dist/servers/slapd/back-sql/delete.c
index cfa86f1f32ac..9c3df1e75887 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/delete.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/delete.c
@@ -1,9 +1,9 @@
-/* $NetBSD: delete.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: delete.c,v 1.1.1.3 2010/12/12 15:23:24 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/delete.c,v 1.35.2.9 2009/01/22 00:01:11 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/delete.c,v 1.35.2.10 2010/04/13 20:23:42 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/entry-id.c b/external/bsd/openldap/dist/servers/slapd/back-sql/entry-id.c
index ed9d04314dbe..a69182241427 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/entry-id.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/entry-id.c
@@ -1,9 +1,9 @@
-/* $NetBSD: entry-id.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: entry-id.c,v 1.1.1.3 2010/12/12 15:23:24 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/entry-id.c,v 1.67.2.10 2009/08/14 21:04:55 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/entry-id.c,v 1.67.2.11 2010/04/13 20:23:42 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Masarati.
* Portions Copyright 2004 Mark Adamson.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/init.c b/external/bsd/openldap/dist/servers/slapd/back-sql/init.c
index ab70ed7a84e9..1d3e6f5fb4a1 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/init.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/init.c
@@ -1,9 +1,9 @@
-/* $NetBSD: init.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: init.c,v 1.1.1.3 2010/12/12 15:23:25 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/init.c,v 1.73.2.7 2009/11/18 01:25:49 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/init.c,v 1.73.2.8 2010/04/13 20:23:43 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/modify.c b/external/bsd/openldap/dist/servers/slapd/back-sql/modify.c
index bc79cc8763b4..e8571d2e4545 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/modify.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/modify.c
@@ -1,9 +1,9 @@
-/* $NetBSD: modify.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modify.c,v 1.1.1.3 2010/12/12 15:23:25 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/modify.c,v 1.53.2.7 2009/02/05 19:35:54 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/modify.c,v 1.53.2.8 2010/04/13 20:23:43 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/modrdn.c b/external/bsd/openldap/dist/servers/slapd/back-sql/modrdn.c
index be3266c0bee5..6f5b6d1e547c 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/modrdn.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/modrdn.c
@@ -1,9 +1,9 @@
-/* $NetBSD: modrdn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modrdn.c,v 1.1.1.3 2010/12/12 15:23:25 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/modrdn.c,v 1.39.2.7 2009/02/05 19:35:55 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/modrdn.c,v 1.39.2.8 2010/04/13 20:23:43 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/operational.c b/external/bsd/openldap/dist/servers/slapd/back-sql/operational.c
index 63f43abb8c4d..8f688dde4311 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/operational.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/operational.c
@@ -1,9 +1,9 @@
-/* $NetBSD: operational.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: operational.c,v 1.1.1.3 2010/12/12 15:23:25 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/operational.c,v 1.21.2.6 2009/01/22 00:01:11 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/operational.c,v 1.21.2.8 2010/04/19 16:53:04 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Masarati.
* All rights reserved.
@@ -72,7 +72,7 @@ backsql_operational_entryUUID( backsql_info *bi, backsql_entryID *id )
Attribute *
backsql_operational_entryCSN( Operation *op )
{
- char csnbuf[ LDAP_LUTIL_CSNSTR_BUFSIZE ];
+ char csnbuf[ LDAP_PVT_CSNSTR_BUFSIZE ];
struct berval entryCSN;
Attribute *a;
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/proto-sql.h b/external/bsd/openldap/dist/servers/slapd/back-sql/proto-sql.h
index 8b21b3f57bab..51d734df4d90 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/proto-sql.h
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/proto-sql.h
@@ -1,9 +1,9 @@
-/* $NetBSD: proto-sql.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: proto-sql.h,v 1.1.1.3 2010/12/12 15:23:25 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/proto-sql.h,v 1.30.2.7 2009/06/02 22:31:40 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/proto-sql.h,v 1.30.2.8 2010/04/13 20:23:43 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Mararati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/rdbms_depend/timesten/dnreverse/Makefile b/external/bsd/openldap/dist/servers/slapd/back-sql/rdbms_depend/timesten/dnreverse/Makefile
index d4ef84b8287f..9c5ad58d656d 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/rdbms_depend/timesten/dnreverse/Makefile
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/rdbms_depend/timesten/dnreverse/Makefile
@@ -1,4 +1,4 @@
-## Copyright 1997-2009 The OpenLDAP Foundation, All Rights Reserved.
+## Copyright 1997-2010 The OpenLDAP Foundation, All Rights Reserved.
## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
#
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/rdbms_depend/timesten/dnreverse/dnreverse.cpp b/external/bsd/openldap/dist/servers/slapd/back-sql/rdbms_depend/timesten/dnreverse/dnreverse.cpp
index bd2adb1b8df1..5a563530596b 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/rdbms_depend/timesten/dnreverse/dnreverse.cpp
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/rdbms_depend/timesten/dnreverse/dnreverse.cpp
@@ -1,4 +1,4 @@
-// Copyright 1997-2009 The OpenLDAP Foundation, All Rights Reserved.
+// Copyright 1997-2010 The OpenLDAP Foundation, All Rights Reserved.
// COPYING RESTRICTIONS APPLY, see COPYRIGHT file
// (c) Copyright 1999-2001 TimesTen Performance Software. All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/schema-map.c b/external/bsd/openldap/dist/servers/slapd/back-sql/schema-map.c
index 799424674961..c2318db175d3 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/schema-map.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/schema-map.c
@@ -1,9 +1,9 @@
-/* $NetBSD: schema-map.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: schema-map.c,v 1.1.1.3 2010/12/12 15:23:26 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/schema-map.c,v 1.59.2.9 2009/01/22 00:01:11 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/schema-map.c,v 1.59.2.10 2010/04/13 20:23:43 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Masarati.
* Portions Copyright 2004 Mark Adamson.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/search.c b/external/bsd/openldap/dist/servers/slapd/back-sql/search.c
index f4ea44870726..1dcfa6bcb0b3 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/search.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/search.c
@@ -1,9 +1,9 @@
-/* $NetBSD: search.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: search.c,v 1.1.1.3 2010/12/12 15:23:27 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/search.c,v 1.117.2.12 2009/08/13 00:28:18 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/search.c,v 1.117.2.13 2010/04/13 20:23:43 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Masarati.
* Portions Copyright 2004 Mark Adamson.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/sql-wrap.c b/external/bsd/openldap/dist/servers/slapd/back-sql/sql-wrap.c
index 2c93fef23685..18ad50ddb042 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/sql-wrap.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/sql-wrap.c
@@ -1,9 +1,9 @@
-/* $NetBSD: sql-wrap.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sql-wrap.c,v 1.1.1.3 2010/12/12 15:23:27 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/sql-wrap.c,v 1.43.2.8 2009/06/02 22:29:43 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/sql-wrap.c,v 1.43.2.9 2010/04/13 20:23:43 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Masarati.
* Portions Copyright 2004 Mark Adamson.
diff --git a/external/bsd/openldap/dist/servers/slapd/back-sql/util.c b/external/bsd/openldap/dist/servers/slapd/back-sql/util.c
index 2ef2e9b35150..8ec952a805e7 100644
--- a/external/bsd/openldap/dist/servers/slapd/back-sql/util.c
+++ b/external/bsd/openldap/dist/servers/slapd/back-sql/util.c
@@ -1,9 +1,9 @@
-/* $NetBSD: util.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: util.c,v 1.1.1.3 2010/12/12 15:23:27 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/util.c,v 1.45.2.5 2009/01/22 00:01:12 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/back-sql/util.c,v 1.45.2.6 2010/04/13 20:23:43 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 Dmitry Kovalev.
* Portions Copyright 2002 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/backend.c b/external/bsd/openldap/dist/servers/slapd/backend.c
index b47aee5e66aa..d0fd088a17b3 100644
--- a/external/bsd/openldap/dist/servers/slapd/backend.c
+++ b/external/bsd/openldap/dist/servers/slapd/backend.c
@@ -1,10 +1,10 @@
-/* $NetBSD: backend.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: backend.c,v 1.1.1.3 2010/12/12 15:22:18 adam Exp $ */
/* backend.c - routines for dealing with back-end databases */
-/* OpenLDAP: pkg/ldap/servers/slapd/backend.c,v 1.362.2.30 2009/11/22 16:28:23 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/backend.c,v 1.362.2.32 2010/04/14 22:59:08 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -1967,3 +1967,12 @@ int backend_operational( Operation *op, SlapReply *rs )
return rc;
}
+/* helper that calls the bi_tool_entry_first_x() variant with default args;
+ * use to initialize a backend's bi_tool_entry_first() when appropriate
+ */
+ID
+backend_tool_entry_first( BackendDB *be )
+{
+ return be->bd_info->bi_tool_entry_first_x( be,
+ NULL, LDAP_SCOPE_DEFAULT, NULL );
+}
diff --git a/external/bsd/openldap/dist/servers/slapd/backglue.c b/external/bsd/openldap/dist/servers/slapd/backglue.c
index 07fdb64e9001..1cd8d475bb2f 100644
--- a/external/bsd/openldap/dist/servers/slapd/backglue.c
+++ b/external/bsd/openldap/dist/servers/slapd/backglue.c
@@ -1,10 +1,10 @@
-/* $NetBSD: backglue.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: backglue.c,v 1.1.1.4 2010/12/12 15:22:19 adam Exp $ */
/* backglue.c - backend glue */
-/* OpenLDAP: pkg/ldap/servers/slapd/backglue.c,v 1.112.2.19 2009/05/13 20:19:14 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/backglue.c,v 1.112.2.25 2010/06/10 19:33:40 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -37,6 +37,7 @@
#define SLAPD_TOOLS
#include "slap.h"
+#include "lutil.h"
#include "config.h"
typedef struct gluenode {
@@ -57,6 +58,8 @@ static BackendDB *glueBack;
static BackendDB glueBackDone;
#define GLUEBACK_DONE (&glueBackDone)
+static slap_overinst * glue_tool_inst( BackendInfo *bi);
+
static slap_response glue_op_response;
/* Just like select_backend, but only for our backends */
@@ -163,7 +166,8 @@ glue_op_response ( Operation *op, SlapReply *rs )
j = gs->nctrls;
if (!j) {
- newctrls = ch_malloc((i+1)*sizeof(LDAPControl *));
+ newctrls = op->o_tmpalloc((i+1)*sizeof(LDAPControl *),
+ op->o_tmpmemctx);
} else {
/* Forget old pagedResults response if we're sending
* a new one now
@@ -180,25 +184,35 @@ glue_op_response ( Operation *op, SlapReply *rs )
if ( newpage ) {
for ( k=0; kctrls[k]->ldctl_oid,
- LDAP_CONTROL_PAGEDRESULTS )) {
- gs->ctrls[k]->ldctl_oid = NULL;
- ldap_control_free( gs->ctrls[k] );
- gs->ctrls[k] = gs->ctrls[--j];
- gs->ctrls[j] = NULL;
- break;
+ LDAP_CONTROL_PAGEDRESULTS ))
+ {
+ op->o_tmpfree(gs->ctrls[k], op->o_tmpmemctx);
+ gs->ctrls[k] = gs->ctrls[--j];
+ gs->ctrls[j] = NULL;
+ break;
}
}
}
}
- newctrls = ch_realloc(gs->ctrls,
- (j+i+1)*sizeof(LDAPControl *));
+ newctrls = op->o_tmprealloc(gs->ctrls,
+ (j+i+1)*sizeof(LDAPControl *), op->o_tmpmemctx);
}
for (k=0; ksr_ctrls[k];
- if ( !BER_BVISNULL( &rs->sr_ctrls[k]->ldctl_value ))
- ber_dupbv( &newctrls[j]->ldctl_value,
- &rs->sr_ctrls[k]->ldctl_value );
+ ber_len_t oidlen = strlen( rs->sr_ctrls[k]->ldctl_oid );
+ newctrls[j] = op->o_tmpalloc(sizeof(LDAPControl) + oidlen + 1 + rs->sr_ctrls[k]->ldctl_value.bv_len + 1,
+ op->o_tmpmemctx);
+ newctrls[j]->ldctl_iscritical = rs->sr_ctrls[k]->ldctl_iscritical;
+ newctrls[j]->ldctl_oid = (char *)&newctrls[j][1];
+ lutil_strcopy( newctrls[j]->ldctl_oid, rs->sr_ctrls[k]->ldctl_oid );
+ if ( !BER_BVISNULL( &rs->sr_ctrls[k]->ldctl_value ) ) {
+ newctrls[j]->ldctl_value.bv_val = &newctrls[j]->ldctl_oid[oidlen + 1];
+ newctrls[j]->ldctl_value.bv_len = rs->sr_ctrls[k]->ldctl_value.bv_len;
+ lutil_memcopy( newctrls[j]->ldctl_value.bv_val,
+ rs->sr_ctrls[k]->ldctl_value.bv_val,
+ rs->sr_ctrls[k]->ldctl_value.bv_len + 1 );
+ } else {
+ BER_BVZERO( &newctrls[j]->ldctl_value );
+ }
}
newctrls[j] = NULL;
gs->nctrls = j;
@@ -344,6 +358,9 @@ glue_sub_search( Operation *op, SlapReply *rs, BackendDB *b0,
return op->o_bd->be_search( op, rs );
}
+static const ID glueID = NOID;
+static const struct berval gluecookie = { sizeof( glueID ), (char *)&glueID };
+
static int
glue_op_search ( Operation *op, SlapReply *rs )
{
@@ -366,6 +383,36 @@ glue_op_search ( Operation *op, SlapReply *rs )
starttime = op->o_time;
stoptime = slap_get_time () + op->ors_tlimit;
+ /* reset dummy cookie used to keep paged results going across databases */
+ if ( get_pagedresults( op ) > SLAP_CONTROL_IGNORED
+ && bvmatch( &((PagedResultsState *)op->o_pagedresults_state)->ps_cookieval, &gluecookie ) )
+ {
+ PagedResultsState *ps = op->o_pagedresults_state;
+ BerElementBuffer berbuf;
+ BerElement *ber = (BerElement *)&berbuf;
+ struct berval cookie = BER_BVC(""), value;
+ int c;
+
+ for (c = 0; op->o_ctrls[c] != NULL; c++) {
+ if (strcmp(op->o_ctrls[c]->ldctl_oid, LDAP_CONTROL_PAGEDRESULTS) == 0)
+ break;
+ }
+
+ assert( op->o_ctrls[c] != NULL );
+
+ ber_init2( ber, NULL, LBER_USE_DER );
+ ber_printf( ber, "{iO}", ps->ps_size, &cookie );
+ ber_flatten2( ber, &value, 0 );
+ assert( op->o_ctrls[c]->ldctl_value.bv_len >= value.bv_len );
+ op->o_ctrls[c]->ldctl_value.bv_len = value.bv_len;
+ lutil_memcopy( op->o_ctrls[c]->ldctl_value.bv_val,
+ value.bv_val, value.bv_len );
+ ber_free_buf( ber );
+
+ ps->ps_cookie = (PagedResultsCookie)0;
+ BER_BVZERO( &ps->ps_cookieval );
+ }
+
op->o_bd = glue_back_select (b0, &op->o_req_ndn);
b0->bd_info = on->on_info->oi_orig;
@@ -504,13 +551,85 @@ glue_op_search ( Operation *op, SlapReply *rs )
* from here on a subsequent request.
*/
if ( rs->sr_nentries >= ps->ps_size ) {
+ PagedResultsState *cps = &op->o_conn->c_pagedresults_state;
+
/* Don't bother to remember the first backend.
* Only remember the last one if there's more state left.
*/
if ( op->o_bd != b0 &&
- ( op->o_conn->c_pagedresults_state.ps_cookie ||
- op->o_bd != gi->gi_n[0].gn_be ))
+ ( cps->ps_cookie != NOID
+ || !BER_BVISNULL( &cps->ps_cookieval )
+ || op->o_bd != gi->gi_n[0].gn_be ) )
+ {
op->o_conn->c_pagedresults_state.ps_be = op->o_bd;
+ }
+
+ /* Check whether the cookie is empty,
+ * and give remaining databases a chance
+ */
+ if ( op->o_bd != gi->gi_n[0].gn_be || cps->ps_cookie == NOID ) {
+ int c;
+
+ for ( c = 0; gs.ctrls[c] != NULL; c++ ) {
+ if ( strcmp( gs.ctrls[c]->ldctl_oid, LDAP_CONTROL_PAGEDRESULTS ) == 0 ) {
+ break;
+ }
+ }
+
+ if ( gs.ctrls[c] != NULL ) {
+ BerElementBuffer berbuf;
+ BerElement *ber = (BerElement *)&berbuf;
+ ber_tag_t tag;
+ ber_int_t size;
+ struct berval cookie, value;
+
+ ber_init2( ber, &gs.ctrls[c]->ldctl_value, LBER_USE_DER );
+
+ tag = ber_scanf( ber, "{im}", &size, &cookie );
+ assert( tag != LBER_ERROR );
+
+ if ( BER_BVISEMPTY( &cookie ) && op->o_bd != gi->gi_n[0].gn_be ) {
+ /* delete old, create new cookie with NOID */
+ PagedResultsCookie respcookie = (PagedResultsCookie)NOID;
+ ber_len_t oidlen = strlen( gs.ctrls[c]->ldctl_oid );
+ LDAPControl *newctrl;
+
+ /* it's next database's turn */
+ if ( btmp == b0 ) {
+ op->o_conn->c_pagedresults_state.ps_be = gi->gi_n[gi->gi_nodes - 1].gn_be;
+
+ } else {
+ op->o_conn->c_pagedresults_state.ps_be = gi->gi_n[(i > 0 ? i - 1: 0)].gn_be;
+ }
+
+ cookie.bv_val = (char *)&respcookie;
+ cookie.bv_len = sizeof( PagedResultsCookie );
+
+ ber_init2( ber, NULL, LBER_USE_DER );
+ ber_printf( ber, "{iO}", 0, &cookie );
+ ber_flatten2( ber, &value, 0 );
+
+ newctrl = op->o_tmprealloc( gs.ctrls[c],
+ sizeof(LDAPControl) + oidlen + 1 + value.bv_len + 1,
+ op->o_tmpmemctx);
+ newctrl->ldctl_iscritical = gs.ctrls[c]->ldctl_iscritical;
+ newctrl->ldctl_oid = (char *)&newctrl[1];
+ lutil_strcopy( newctrl->ldctl_oid, gs.ctrls[c]->ldctl_oid );
+ newctrl->ldctl_value.bv_len = value.bv_len;
+ lutil_memcopy( newctrl->ldctl_value.bv_val,
+ value.bv_val, value.bv_len );
+
+ gs.ctrls[c] = newctrl;
+
+ ber_free_buf( ber );
+
+ } else if ( !BER_BVISEMPTY( &cookie ) && op->o_bd != b0 ) {
+ /* if cookie not empty, it's again this database's turn */
+ op->o_conn->c_pagedresults_state.ps_be = op->o_bd;
+ }
+ }
+ }
+
goto end_of_loop;
}
@@ -519,10 +638,33 @@ glue_op_search ( Operation *op, SlapReply *rs )
* next backend will start up properly. Only back-[bh]db
* and back-sql look at this state info.
*/
- if ( ps->ps_cookieval.bv_len == sizeof( PagedResultsCookie )) {
- ps->ps_cookie = 0;
- memset( ps->ps_cookieval.bv_val, 0,
- sizeof( PagedResultsCookie ));
+ ps->ps_cookie = (PagedResultsCookie)0;
+ BER_BVZERO( &ps->ps_cookieval );
+
+ {
+ /* change the size of the page in the request
+ * that will be propagated, and reset the cookie */
+ BerElementBuffer berbuf;
+ BerElement *ber = (BerElement *)&berbuf;
+ int size = ps->ps_size - rs->sr_nentries;
+ struct berval cookie = BER_BVC(""), value;
+ int c;
+
+ for (c = 0; op->o_ctrls[c] != NULL; c++) {
+ if (strcmp(op->o_ctrls[c]->ldctl_oid, LDAP_CONTROL_PAGEDRESULTS) == 0)
+ break;
+ }
+
+ assert( op->o_ctrls[c] != NULL );
+
+ ber_init2( ber, NULL, LBER_USE_DER );
+ ber_printf( ber, "{iO}", size, &cookie );
+ ber_flatten2( ber, &value, 0 );
+ assert( op->o_ctrls[c]->ldctl_value.bv_len >= value.bv_len );
+ op->o_ctrls[c]->ldctl_value.bv_len = value.bv_len;
+ lutil_memcopy( op->o_ctrls[c]->ldctl_value.bv_val,
+ value.bv_val, value.bv_len );
+ ber_free_buf( ber );
}
}
@@ -558,11 +700,9 @@ end_of_loop:;
ber_bvarray_free(gs.refs);
if (gs.ctrls) {
for (i = gs.nctrls; --i >= 0; ) {
- if (!BER_BVISNULL( &gs.ctrls[i]->ldctl_value ))
- free(gs.ctrls[i]->ldctl_value.bv_val);
- free(gs.ctrls[i]);
+ op->o_tmpfree(gs.ctrls[i], op->o_tmpmemctx);
}
- free(gs.ctrls);
+ op->o_tmpfree(gs.ctrls, op->o_tmpmemctx);
}
return rs->sr_err;
}
@@ -586,6 +726,49 @@ glue_tool_entry_open (
toolDB = *b0;
toolDB.bd_info = oi->oi_orig;
+ /* Sanity checks */
+ {
+ slap_overinst *on = glue_tool_inst( b0->bd_info );
+ glueinfo *gi = on->on_bi.bi_private;
+
+ int i;
+ for (i = 0; i < gi->gi_nodes; i++) {
+ BackendDB *bd;
+ struct berval pdn;
+
+ dnParent( &gi->gi_n[i].gn_be->be_nsuffix[0], &pdn );
+ bd = select_backend( &pdn, 0 );
+ if ( bd ) {
+ ID id;
+ BackendDB db;
+
+ if ( overlay_is_over( bd ) ) {
+ slap_overinfo *oi = (slap_overinfo *)bd->bd_info;
+ db = *bd;
+ db.bd_info = oi->oi_orig;
+ bd = &db;
+ }
+
+ if ( !bd->bd_info->bi_tool_dn2id_get
+ || !bd->bd_info->bi_tool_entry_open
+ || !bd->bd_info->bi_tool_entry_close )
+ {
+ continue;
+ }
+
+ bd->bd_info->bi_tool_entry_open( bd, 0 );
+ id = bd->bd_info->bi_tool_dn2id_get( bd, &gi->gi_n[i].gn_be->be_nsuffix[0] );
+ bd->bd_info->bi_tool_entry_close( bd );
+ if ( id != NOID ) {
+ Debug( LDAP_DEBUG_ANY,
+ "glue_tool_entry_open: subordinate database suffix entry DN=\"%s\" also present in superior database rooted at DN=\"%s\"\n",
+ gi->gi_n[i].gn_be->be_suffix[0].bv_val, bd->be_suffix[0].bv_val, 0 );
+ return LDAP_OTHER;
+ }
+ }
+ }
+ }
+
return 0;
}
@@ -737,6 +920,10 @@ glue_entry_release_rw (
return rc;
}
+static struct berval *glue_base;
+static int glue_scope;
+static Filter *glue_filter;
+
static ID
glue_tool_entry_first (
BackendDB *b0
@@ -787,6 +974,66 @@ glue_tool_entry_first (
return rc;
}
+static ID
+glue_tool_entry_first_x (
+ BackendDB *b0,
+ struct berval *base,
+ int scope,
+ Filter *f
+)
+{
+ slap_overinst *on = glue_tool_inst( b0->bd_info );
+ glueinfo *gi = on->on_bi.bi_private;
+ int i;
+ ID rc;
+
+ glue_base = base;
+ glue_scope = scope;
+ glue_filter = f;
+
+ /* If we're starting from scratch, start at the most general */
+ if (!glueBack) {
+ if ( toolDB.be_entry_open && toolDB.be_entry_first_x ) {
+ glueBack = &toolDB;
+ } else {
+ for (i = gi->gi_nodes-1; i >= 0; i--) {
+ if (gi->gi_n[i].gn_be->be_entry_open &&
+ gi->gi_n[i].gn_be->be_entry_first_x)
+ {
+ glueBack = gi->gi_n[i].gn_be;
+ break;
+ }
+ }
+ }
+ }
+ if (!glueBack || !glueBack->be_entry_open || !glueBack->be_entry_first_x ||
+ glueBack->be_entry_open (glueBack, glueMode) != 0)
+ return NOID;
+
+ rc = glueBack->be_entry_first_x (glueBack,
+ glue_base, glue_scope, glue_filter);
+ while ( rc == NOID ) {
+ if ( glueBack && glueBack->be_entry_close )
+ glueBack->be_entry_close (glueBack);
+ for (i=0; igi_nodes; i++) {
+ if (gi->gi_n[i].gn_be == glueBack)
+ break;
+ }
+ if (i == 0) {
+ glueBack = GLUEBACK_DONE;
+ break;
+ } else {
+ glueBack = gi->gi_n[i-1].gn_be;
+ rc = glue_tool_entry_first_x (b0,
+ glue_base, glue_scope, glue_filter);
+ if ( glueBack == GLUEBACK_DONE ) {
+ break;
+ }
+ }
+ }
+ return rc;
+}
+
static ID
glue_tool_entry_next (
BackendDB *b0
@@ -815,7 +1062,15 @@ glue_tool_entry_next (
break;
} else {
glueBack = gi->gi_n[i-1].gn_be;
- rc = glue_tool_entry_first (b0);
+ if ( glue_base || glue_filter ) {
+ /* using entry_first_x() */
+ rc = glue_tool_entry_first_x (b0,
+ glue_base, glue_scope, glue_filter);
+
+ } else {
+ /* using entry_first() */
+ rc = glue_tool_entry_first (b0);
+ }
if ( glueBack == GLUEBACK_DONE ) {
break;
}
@@ -1014,6 +1269,9 @@ glue_db_init(
oi->oi_bi.bi_tool_entry_close = glue_tool_entry_close;
if ( bi->bi_tool_entry_first )
oi->oi_bi.bi_tool_entry_first = glue_tool_entry_first;
+ /* FIXME: check whether all support bi_tool_entry_first_x() ? */
+ if ( bi->bi_tool_entry_first_x )
+ oi->oi_bi.bi_tool_entry_first_x = glue_tool_entry_first_x;
if ( bi->bi_tool_entry_next )
oi->oi_bi.bi_tool_entry_next = glue_tool_entry_next;
if ( bi->bi_tool_entry_get )
@@ -1216,6 +1474,29 @@ glue_sub_add( BackendDB *be, int advert, int online )
return rc;
}
+static int
+glue_access_allowed(
+ Operation *op,
+ Entry *e,
+ AttributeDescription *desc,
+ struct berval *val,
+ slap_access_t access,
+ AccessControlState *state,
+ slap_mask_t *maskp )
+{
+ BackendDB *b0, *be = glue_back_select( op->o_bd, &e->e_nname );
+ int rc;
+
+ if ( be == NULL || be == op->o_bd || be->bd_info->bi_access_allowed == NULL )
+ return SLAP_CB_CONTINUE;
+
+ b0 = op->o_bd;
+ op->o_bd = be;
+ rc = be->bd_info->bi_access_allowed ( op, e, desc, val, access, state, maskp );
+ op->o_bd = b0;
+ return rc;
+}
+
int
glue_sub_init()
{
@@ -1236,6 +1517,7 @@ glue_sub_init()
glue.on_bi.bi_chk_controls = glue_chk_controls;
glue.on_bi.bi_entry_get_rw = glue_entry_get_rw;
glue.on_bi.bi_entry_release_rw = glue_entry_release_rw;
+ glue.on_bi.bi_access_allowed = glue_access_allowed;
glue.on_response = glue_response;
diff --git a/external/bsd/openldap/dist/servers/slapd/backover.c b/external/bsd/openldap/dist/servers/slapd/backover.c
index 88a121d4a10c..6f8083e5b5b1 100644
--- a/external/bsd/openldap/dist/servers/slapd/backover.c
+++ b/external/bsd/openldap/dist/servers/slapd/backover.c
@@ -1,10 +1,10 @@
-/* $NetBSD: backover.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: backover.c,v 1.1.1.4 2010/12/12 15:22:19 adam Exp $ */
/* backover.c - backend overlay routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/backover.c,v 1.71.2.20 2009/08/25 21:36:51 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/backover.c,v 1.71.2.21 2010/04/13 20:23:11 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/bconfig.c b/external/bsd/openldap/dist/servers/slapd/bconfig.c
index 5b0f135f223c..6cc7f3487242 100644
--- a/external/bsd/openldap/dist/servers/slapd/bconfig.c
+++ b/external/bsd/openldap/dist/servers/slapd/bconfig.c
@@ -1,10 +1,10 @@
-/* $NetBSD: bconfig.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: bconfig.c,v 1.1.1.4 2010/12/12 15:22:24 adam Exp $ */
/* bconfig.c - the config backend */
-/* OpenLDAP: pkg/ldap/servers/slapd/bconfig.c,v 1.202.2.84 2009/12/15 20:40:12 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/bconfig.c,v 1.202.2.86 2010/04/14 22:59:08 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -6791,10 +6791,30 @@ config_tool_entry_first( BackendDB *be )
CfBackInfo *cfb = be->be_private;
BackendInfo *bi = cfb->cb_db.bd_info;
- if ( bi && bi->bi_tool_entry_first )
+ if ( bi && bi->bi_tool_entry_first ) {
return bi->bi_tool_entry_first( &cfb->cb_db );
- else
- return NOID;
+ }
+ if ( bi && bi->bi_tool_entry_first_x ) {
+ return bi->bi_tool_entry_first_x( &cfb->cb_db,
+ NULL, LDAP_SCOPE_DEFAULT, NULL );
+ }
+ return NOID;
+}
+
+static ID
+config_tool_entry_first_x(
+ BackendDB *be,
+ struct berval *base,
+ int scope,
+ Filter *f )
+{
+ CfBackInfo *cfb = be->be_private;
+ BackendInfo *bi = cfb->cb_db.bd_info;
+
+ if ( bi && bi->bi_tool_entry_first_x ) {
+ return bi->bi_tool_entry_first_x( &cfb->cb_db, base, scope, f );
+ }
+ return NOID;
}
static ID
@@ -7041,6 +7061,7 @@ config_back_initialize( BackendInfo *bi )
bi->bi_tool_entry_open = config_tool_entry_open;
bi->bi_tool_entry_close = config_tool_entry_close;
bi->bi_tool_entry_first = config_tool_entry_first;
+ bi->bi_tool_entry_first_x = config_tool_entry_first_x;
bi->bi_tool_entry_next = config_tool_entry_next;
bi->bi_tool_entry_get = config_tool_entry_get;
bi->bi_tool_entry_put = config_tool_entry_put;
diff --git a/external/bsd/openldap/dist/servers/slapd/bind.c b/external/bsd/openldap/dist/servers/slapd/bind.c
index 60aad00f9957..d65485e69d85 100644
--- a/external/bsd/openldap/dist/servers/slapd/bind.c
+++ b/external/bsd/openldap/dist/servers/slapd/bind.c
@@ -1,10 +1,10 @@
-/* $NetBSD: bind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: bind.c,v 1.1.1.3 2010/12/12 15:22:24 adam Exp $ */
/* bind.c - decode an ldap bind operation and pass it to a backend db */
-/* OpenLDAP: pkg/ldap/servers/slapd/bind.c,v 1.201.2.5 2009/01/22 00:01:00 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/bind.c,v 1.201.2.6 2010/04/13 20:23:12 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/cancel.c b/external/bsd/openldap/dist/servers/slapd/cancel.c
index d6720cde37f1..9f962117a307 100644
--- a/external/bsd/openldap/dist/servers/slapd/cancel.c
+++ b/external/bsd/openldap/dist/servers/slapd/cancel.c
@@ -1,10 +1,10 @@
-/* $NetBSD: cancel.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: cancel.c,v 1.1.1.3 2010/12/12 15:22:24 adam Exp $ */
/* cancel.c - LDAP cancel extended operation */
-/* OpenLDAP: pkg/ldap/servers/slapd/cancel.c,v 1.23.2.9 2009/06/05 22:59:03 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/cancel.c,v 1.23.2.10 2010/04/13 20:23:12 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/ch_malloc.c b/external/bsd/openldap/dist/servers/slapd/ch_malloc.c
index 929262bbd61d..7b934af039d0 100644
--- a/external/bsd/openldap/dist/servers/slapd/ch_malloc.c
+++ b/external/bsd/openldap/dist/servers/slapd/ch_malloc.c
@@ -1,10 +1,10 @@
-/* $NetBSD: ch_malloc.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ch_malloc.c,v 1.1.1.3 2010/12/12 15:22:24 adam Exp $ */
/* ch_malloc.c - malloc routines that test returns from malloc and friends */
-/* OpenLDAP: pkg/ldap/servers/slapd/ch_malloc.c,v 1.28.2.4 2009/01/22 00:01:00 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/ch_malloc.c,v 1.28.2.5 2010/04/13 20:23:12 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/compare.c b/external/bsd/openldap/dist/servers/slapd/compare.c
index 228337286ce4..ddee05346f02 100644
--- a/external/bsd/openldap/dist/servers/slapd/compare.c
+++ b/external/bsd/openldap/dist/servers/slapd/compare.c
@@ -1,9 +1,9 @@
-/* $NetBSD: compare.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: compare.c,v 1.1.1.3 2010/12/12 15:22:24 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/compare.c,v 1.136.2.9 2009/01/22 00:01:00 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/compare.c,v 1.136.2.10 2010/04/13 20:23:12 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/component.c b/external/bsd/openldap/dist/servers/slapd/component.c
index dfbc4330ee45..8a19126f6bb4 100644
--- a/external/bsd/openldap/dist/servers/slapd/component.c
+++ b/external/bsd/openldap/dist/servers/slapd/component.c
@@ -1,10 +1,10 @@
-/* $NetBSD: component.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: component.c,v 1.1.1.3 2010/12/12 15:22:25 adam Exp $ */
/* component.c -- Component Filter Match Routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/component.c,v 1.31.2.6 2009/01/22 00:01:00 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/component.c,v 1.31.2.7 2010/04/13 20:23:13 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 2004 by IBM Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/component.h b/external/bsd/openldap/dist/servers/slapd/component.h
index 1b8f827e74f4..c42e6f33a0fb 100644
--- a/external/bsd/openldap/dist/servers/slapd/component.h
+++ b/external/bsd/openldap/dist/servers/slapd/component.h
@@ -1,10 +1,10 @@
-/* $NetBSD: component.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: component.h,v 1.1.1.3 2010/12/12 15:22:25 adam Exp $ */
/* component.h */
-/* OpenLDAP: pkg/ldap/servers/slapd/component.h,v 1.4.2.4 2009/01/22 00:01:00 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/component.h,v 1.4.2.5 2010/04/13 20:23:13 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* Portions Copyright 2004 by IBM Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/config.c b/external/bsd/openldap/dist/servers/slapd/config.c
index 1586e6809cf3..52a6375ea4e3 100644
--- a/external/bsd/openldap/dist/servers/slapd/config.c
+++ b/external/bsd/openldap/dist/servers/slapd/config.c
@@ -1,10 +1,10 @@
-/* $NetBSD: config.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: config.c,v 1.1.1.3 2010/12/12 15:22:26 adam Exp $ */
/* config.c - configuration file handling routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/config.c,v 1.441.2.31 2009/12/12 06:18:52 hyc Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/config.c,v 1.441.2.37 2010/04/19 15:32:26 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -305,8 +305,8 @@ int config_check_vals(ConfigTable *Conf, ConfigArgs *c, int check_only ) {
break;
}
j = (arg_type & ARG_NONZERO) ? 1 : 0;
- if(iarg < j && larg < j && barg < j ) {
- larg = larg ? larg : (barg ? barg : iarg);
+ if(iarg < j && larg < j && barg < (unsigned)j ) {
+ larg = larg ? larg : (barg ? (long)barg : iarg);
snprintf( c->cr_msg, sizeof( c->cr_msg ), "<%s> invalid value",
c->argv[0] );
Debug(LDAP_DEBUG_ANY|LDAP_DEBUG_NONE, "%s: %s\n",
@@ -1212,6 +1212,92 @@ static slap_verbmasks versionkey[] = {
{ BER_BVNULL, 0 }
};
+static int
+slap_keepalive_parse(
+ struct berval *val,
+ void *bc,
+ slap_cf_aux_table *tab0,
+ const char *tabmsg,
+ int unparse )
+{
+ if ( unparse ) {
+ slap_keepalive *sk = (slap_keepalive *)bc;
+ int rc = snprintf( val->bv_val, val->bv_len, "%d:%d:%d",
+ sk->sk_idle, sk->sk_probes, sk->sk_interval );
+ if ( rc < 0 ) {
+ return -1;
+ }
+
+ if ( (unsigned)rc >= val->bv_len ) {
+ return -1;
+ }
+
+ val->bv_len = rc;
+
+ } else {
+ char *s = val->bv_val;
+ char *next;
+ slap_keepalive *sk = (slap_keepalive *)bc;
+ slap_keepalive sk2;
+
+ if ( s[0] == ':' ) {
+ sk2.sk_idle = 0;
+ s++;
+
+ } else {
+ sk2.sk_idle = strtol( s, &next, 10 );
+ if ( next == s || next[0] != ':' ) {
+ return -1;
+ }
+
+ if ( sk2.sk_idle < 0 ) {
+ return -1;
+ }
+
+ s = ++next;
+ }
+
+ if ( s[0] == ':' ) {
+ sk2.sk_probes = 0;
+ s++;
+
+ } else {
+ sk2.sk_probes = strtol( s, &next, 10 );
+ if ( next == s || next[0] != ':' ) {
+ return -1;
+ }
+
+ if ( sk2.sk_probes < 0 ) {
+ return -1;
+ }
+
+ s = ++next;
+ }
+
+ if ( s == '\0' ) {
+ sk2.sk_interval = 0;
+ s++;
+
+ } else {
+ sk2.sk_interval = strtol( s, &next, 10 );
+ if ( next == s || next[0] != '\0' ) {
+ return -1;
+ }
+
+ if ( sk2.sk_interval < 0 ) {
+ return -1;
+ }
+ }
+
+ *sk = sk2;
+
+ ber_memfree( val->bv_val );
+ BER_BVZERO( val );
+ }
+
+ return 0;
+}
+
static int
slap_sb_uri(
struct berval *val,
@@ -1249,10 +1335,11 @@ static slap_cf_aux_table bindkey[] = {
{ BER_BVC("realm="), offsetof(slap_bindconf, sb_realm), 'b', 0, NULL },
{ BER_BVC("authcID="), offsetof(slap_bindconf, sb_authcId), 'b', 1, NULL },
{ BER_BVC("authzID="), offsetof(slap_bindconf, sb_authzId), 'b', 1, (slap_verbmasks *)authzNormalize },
+ { BER_BVC("keepalive="), offsetof(slap_bindconf, sb_keepalive), 'x', 0, (slap_verbmasks *)slap_keepalive_parse },
#ifdef HAVE_TLS
- /* NOTE: replace "12" with the actual index
+ /* NOTE: replace "13" with the actual index
* of the first TLS-related line */
-#define aux_TLS (bindkey+12) /* beginning of TLS keywords */
+#define aux_TLS (bindkey+13) /* beginning of TLS keywords */
{ BER_BVC("starttls="), offsetof(slap_bindconf, sb_tls), 'i', 0, tlskey },
{ BER_BVC("tls_cert="), offsetof(slap_bindconf, sb_tls_cert), 's', 1, NULL },
@@ -1460,23 +1547,31 @@ slap_cf_aux_table_unparse( void *src, struct berval *bv, slap_cf_aux_table *tab0
break;
case 'x':
- *ptr++ = ' ';
- ptr = lutil_strcopy( ptr, tab->key.bv_val );
- if ( tab->quote ) *ptr++ = '"';
- if ( tab->aux != NULL ) {
- struct berval value;
- slap_cf_aux_table_parse_x *func = (slap_cf_aux_table_parse_x *)tab->aux;
- int rc;
+ {
+ char *saveptr=ptr;
+ *ptr++ = ' ';
+ ptr = lutil_strcopy( ptr, tab->key.bv_val );
+ if ( tab->quote ) *ptr++ = '"';
+ if ( tab->aux != NULL ) {
+ struct berval value;
+ slap_cf_aux_table_parse_x *func = (slap_cf_aux_table_parse_x *)tab->aux;
+ int rc;
- value.bv_val = ptr;
- value.bv_len = buf + sizeof( buf ) - ptr;
+ value.bv_val = ptr;
+ value.bv_len = buf + sizeof( buf ) - ptr;
- rc = func( &value, (void *)((char *)src + tab->off), tab, "(unparse)", 1 );
- if ( rc == 0 ) {
- ptr += value.bv_len;
+ rc = func( &value, (void *)((char *)src + tab->off), tab, "(unparse)", 1 );
+ if ( rc == 0 ) {
+ if (value.bv_len) {
+ ptr += value.bv_len;
+ } else {
+ ptr = saveptr;
+ break;
+ }
+ }
}
+ if ( tab->quote ) *ptr++ = '"';
}
- if ( tab->quote ) *ptr++ = '"';
break;
default:
@@ -1793,6 +1888,18 @@ slap_client_connect( LDAP **ldp, slap_bindconf *sb )
ldap_set_option( ld, LDAP_OPT_NETWORK_TIMEOUT, &tv );
}
+ if ( sb->sb_keepalive.sk_idle ) {
+ ldap_set_option( ld, LDAP_OPT_X_KEEPALIVE_IDLE, &sb->sb_keepalive.sk_idle );
+ }
+
+ if ( sb->sb_keepalive.sk_probes ) {
+ ldap_set_option( ld, LDAP_OPT_X_KEEPALIVE_PROBES, &sb->sb_keepalive.sk_probes );
+ }
+
+ if ( sb->sb_keepalive.sk_interval ) {
+ ldap_set_option( ld, LDAP_OPT_X_KEEPALIVE_INTERVAL, &sb->sb_keepalive.sk_interval );
+ }
+
#ifdef HAVE_TLS
if ( sb->sb_tls_do_init ) {
rc = bindconf_tls_set( sb, ld );
diff --git a/external/bsd/openldap/dist/servers/slapd/config.h b/external/bsd/openldap/dist/servers/slapd/config.h
index d748c5596f87..d8990d779997 100644
--- a/external/bsd/openldap/dist/servers/slapd/config.h
+++ b/external/bsd/openldap/dist/servers/slapd/config.h
@@ -1,10 +1,10 @@
-/* $NetBSD: config.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: config.h,v 1.1.1.3 2010/12/12 15:22:26 adam Exp $ */
/* config.h - configuration abstraction structure */
-/* OpenLDAP: pkg/ldap/servers/slapd/config.h,v 1.34.2.19 2009/08/25 22:44:25 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/config.h,v 1.34.2.20 2010/04/13 20:23:13 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/connection.c b/external/bsd/openldap/dist/servers/slapd/connection.c
index 08cd70bc4b5e..40a0052df1ed 100644
--- a/external/bsd/openldap/dist/servers/slapd/connection.c
+++ b/external/bsd/openldap/dist/servers/slapd/connection.c
@@ -1,9 +1,9 @@
-/* $NetBSD: connection.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: connection.c,v 1.1.1.3 2010/12/12 15:22:27 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/connection.c,v 1.358.2.39 2009/12/04 15:44:37 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/connection.c,v 1.358.2.40 2010/04/13 20:23:13 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/controls.c b/external/bsd/openldap/dist/servers/slapd/controls.c
index 42ebf7a0b541..77905a5fa785 100644
--- a/external/bsd/openldap/dist/servers/slapd/controls.c
+++ b/external/bsd/openldap/dist/servers/slapd/controls.c
@@ -1,9 +1,9 @@
-/* $NetBSD: controls.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: controls.c,v 1.1.1.3 2010/12/12 15:22:27 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/controls.c,v 1.174.2.20 2009/07/27 20:19:18 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/controls.c,v 1.174.2.23 2010/04/15 20:15:19 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -1236,6 +1236,8 @@ static int parsePagedResults (
if ( !cookie.bv_len ) {
ps->ps_count = 0;
ps->ps_cookie = 0;
+ /* taint ps_cookie, to detect whether it's set */
+ op->o_conn->c_pagedresults_state.ps_cookie = NOID;
}
/* NOTE: according to RFC 2696 3.:
@@ -1673,6 +1675,24 @@ static int parseSearchOptions (
return LDAP_PROTOCOL_ERROR;
}
+ if ( search_flags & ~(LDAP_SEARCH_FLAG_DOMAIN_SCOPE) ) {
+ /* Search flags not recognised so far,
+ * including:
+ * LDAP_SEARCH_FLAG_PHANTOM_ROOT
+ */
+ if ( ctrl->ldctl_iscritical ) {
+ rs->sr_text = "searchOptions contained unrecognized flag";
+ return LDAP_UNWILLING_TO_PERFORM;
+ }
+
+ /* Ignore */
+ Debug( LDAP_DEBUG_TRACE,
+ "searchOptions: conn=%lu unrecognized flag(s) 0x%x (non-critical)\n",
+ op->o_connid, (unsigned)search_flags, 0 );
+
+ return LDAP_SUCCESS;
+ }
+
if ( search_flags & LDAP_SEARCH_FLAG_DOMAIN_SCOPE ) {
if ( op->o_domain_scope != SLAP_CONTROL_NONE ) {
rs->sr_text = "searchOptions control specified multiple times "
@@ -1685,15 +1705,6 @@ static int parseSearchOptions (
: SLAP_CONTROL_NONCRITICAL;
}
- if ( search_flags & ~(LDAP_SEARCH_FLAG_DOMAIN_SCOPE) ) {
- /* Other search flags not recognised so far,
- * including:
- * LDAP_SEARCH_FLAG_PHANTOM_ROOM
- */
- rs->sr_text = "searchOptions contained unrecognized flag";
- return LDAP_UNWILLING_TO_PERFORM;
- }
-
return LDAP_SUCCESS;
}
diff --git a/external/bsd/openldap/dist/servers/slapd/cr.c b/external/bsd/openldap/dist/servers/slapd/cr.c
index 809b59844dce..4815e20e65f6 100644
--- a/external/bsd/openldap/dist/servers/slapd/cr.c
+++ b/external/bsd/openldap/dist/servers/slapd/cr.c
@@ -1,10 +1,10 @@
-/* $NetBSD: cr.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: cr.c,v 1.1.1.3 2010/12/12 15:22:27 adam Exp $ */
/* cr.c - content rule routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/cr.c,v 1.22.2.4 2009/01/22 00:01:01 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/cr.c,v 1.22.2.5 2010/04/13 20:23:13 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/ctxcsn.c b/external/bsd/openldap/dist/servers/slapd/ctxcsn.c
index 7a9df5e1eeeb..1d9418906141 100644
--- a/external/bsd/openldap/dist/servers/slapd/ctxcsn.c
+++ b/external/bsd/openldap/dist/servers/slapd/ctxcsn.c
@@ -1,10 +1,10 @@
-/* $NetBSD: ctxcsn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ctxcsn.c,v 1.1.1.3 2010/12/12 15:22:27 adam Exp $ */
/* ctxcsn.c -- Context CSN Management Routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/ctxcsn.c,v 1.40.2.15 2009/11/18 01:16:16 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/ctxcsn.c,v 1.40.2.17 2010/04/19 16:53:02 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 2003 IBM Corporation.
* All rights reserved.
*
@@ -32,7 +32,7 @@ const struct berval slap_ldapsync_bv = BER_BVC("ldapsync");
const struct berval slap_ldapsync_cn_bv = BER_BVC("cn=ldapsync");
int slap_serverID;
-/* maxcsn->bv_val must point to a char buf[LDAP_LUTIL_CSNSTR_BUFSIZE] */
+/* maxcsn->bv_val must point to a char buf[LDAP_PVT_CSNSTR_BUFSIZE] */
void
slap_get_commit_csn(
Operation *op,
@@ -46,7 +46,7 @@ slap_get_commit_csn(
if ( maxcsn ) {
assert( maxcsn->bv_val != NULL );
- assert( maxcsn->bv_len >= LDAP_LUTIL_CSNSTR_BUFSIZE );
+ assert( maxcsn->bv_len >= LDAP_PVT_CSNSTR_BUFSIZE );
}
if ( foundit ) {
*foundit = 0;
@@ -211,13 +211,9 @@ slap_get_csn(
{
if ( csn == NULL ) return LDAP_OTHER;
- /* gmtime doesn't always need a mutex, but lutil_csnstr does */
- ldap_pvt_thread_mutex_lock( &gmtime_mutex );
- csn->bv_len = lutil_csnstr( csn->bv_val, csn->bv_len, slap_serverID, 0 );
+ csn->bv_len = ldap_pvt_csnstr( csn->bv_val, csn->bv_len, slap_serverID, 0 );
if ( manage_ctxcsn )
slap_queue_csn( op, csn );
- ldap_pvt_thread_mutex_unlock( &gmtime_mutex );
-
return LDAP_SUCCESS;
}
diff --git a/external/bsd/openldap/dist/servers/slapd/daemon.c b/external/bsd/openldap/dist/servers/slapd/daemon.c
index e815782ece0f..c03102290c04 100644
--- a/external/bsd/openldap/dist/servers/slapd/daemon.c
+++ b/external/bsd/openldap/dist/servers/slapd/daemon.c
@@ -1,9 +1,9 @@
-/* $NetBSD: daemon.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: daemon.c,v 1.1.1.4 2010/12/12 15:22:28 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/daemon.c,v 1.380.2.33 2009/11/17 17:08:41 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/daemon.c,v 1.380.2.35 2010/04/13 20:23:14 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 2007 by Howard Chu, Symas Corporation.
* All rights reserved.
*
@@ -1722,9 +1722,12 @@ close_listeners(
for ( l = 0; slap_listeners[l] != NULL; l++ ) {
Listener *lr = slap_listeners[l];
+ slap_listeners[l] = NULL;
if ( lr->sl_sd != AC_SOCKET_INVALID ) {
- if ( remove ) slapd_remove( lr->sl_sd, NULL, 0, 0, 0 );
+ int s = lr->sl_sd;
+ lr->sl_sd = AC_SOCKET_INVALID;
+ if ( remove ) slapd_remove( s, NULL, 0, 0, 0 );
#ifdef LDAP_PF_LOCAL
if ( lr->sl_sa.sa_addr.sa_family == AF_LOCAL ) {
@@ -1732,7 +1735,7 @@ close_listeners(
}
#endif /* LDAP_PF_LOCAL */
- slapd_close( lr->sl_sd );
+ slapd_close( s );
}
if ( lr->sl_url.bv_val ) {
@@ -1744,7 +1747,6 @@ close_listeners(
}
free( lr );
- slap_listeners[l] = NULL;
}
}
diff --git a/external/bsd/openldap/dist/servers/slapd/delete.c b/external/bsd/openldap/dist/servers/slapd/delete.c
index 0d108cbd43c5..994509f9b3cc 100644
--- a/external/bsd/openldap/dist/servers/slapd/delete.c
+++ b/external/bsd/openldap/dist/servers/slapd/delete.c
@@ -1,9 +1,9 @@
-/* $NetBSD: delete.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: delete.c,v 1.1.1.3 2010/12/12 15:22:29 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/delete.c,v 1.138.2.4 2009/01/22 00:01:01 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/delete.c,v 1.138.2.5 2010/04/13 20:23:14 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/dn.c b/external/bsd/openldap/dist/servers/slapd/dn.c
index 804201509c6f..93d9a2df5f21 100644
--- a/external/bsd/openldap/dist/servers/slapd/dn.c
+++ b/external/bsd/openldap/dist/servers/slapd/dn.c
@@ -1,10 +1,10 @@
-/* $NetBSD: dn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: dn.c,v 1.1.1.3 2010/12/12 15:22:29 adam Exp $ */
/* dn.c - routines for dealing with distinguished names */
-/* OpenLDAP: pkg/ldap/servers/slapd/dn.c,v 1.182.2.14 2009/10/30 18:33:08 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/dn.c,v 1.182.2.16 2010/06/10 17:48:06 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -304,16 +304,13 @@ LDAPRDN_rewrite( LDAPRDN rdn, unsigned flags, void *ctx )
ava->la_attr = ad->ad_cname;
if( ava->la_flags & LDAP_AVA_BINARY ) {
- if( ava->la_value.bv_len == 0 ) {
- /* BER encoding is empty */
- return LDAP_INVALID_SYNTAX;
- }
+ /* AVA is binary encoded, not supported */
+ return LDAP_INVALID_SYNTAX;
/* Do not allow X-ORDERED 'VALUES' naming attributes */
} else if( ad->ad_type->sat_flags & SLAP_AT_ORDERED_VAL ) {
return LDAP_INVALID_SYNTAX;
- /* AVA is binary encoded, don't muck with it */
} else if( flags & SLAP_LDAPDN_PRETTY ) {
transf = ad->ad_type->sat_syntax->ssyn_pretty;
if( !transf ) {
@@ -381,6 +378,10 @@ LDAPRDN_rewrite( LDAPRDN rdn, unsigned flags, void *ctx )
ava->la_value = bv;
ava->la_flags |= LDAP_AVA_FREE_VALUE;
}
+ /* reject empty values */
+ if (!ava->la_value.bv_len) {
+ return LDAP_INVALID_SYNTAX;
+ }
}
rc = LDAP_SUCCESS;
diff --git a/external/bsd/openldap/dist/servers/slapd/entry.c b/external/bsd/openldap/dist/servers/slapd/entry.c
index 87b0109342bf..e41da571c0a6 100644
--- a/external/bsd/openldap/dist/servers/slapd/entry.c
+++ b/external/bsd/openldap/dist/servers/slapd/entry.c
@@ -1,10 +1,10 @@
-/* $NetBSD: entry.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: entry.c,v 1.1.1.3 2010/12/12 15:22:29 adam Exp $ */
/* entry.c - routines for dealing with entries */
-/* OpenLDAP: pkg/ldap/servers/slapd/entry.c,v 1.148.2.12 2009/08/14 21:04:55 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/entry.c,v 1.148.2.14 2010/04/16 15:03:36 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -822,6 +822,35 @@ int entry_header(EntryHeader *eh)
return LDAP_SUCCESS;
}
+int
+entry_decode_dn( EntryHeader *eh, struct berval *dn, struct berval *ndn )
+{
+ int i;
+ unsigned char *ptr = (unsigned char *)eh->bv.bv_val;
+
+ assert( dn != NULL || ndn != NULL );
+
+ ptr = (unsigned char *)eh->data;
+ i = entry_getlen(&ptr);
+ if ( dn != NULL ) {
+ dn->bv_val = (char *) ptr;
+ dn->bv_len = i;
+ }
+
+ if ( ndn != NULL ) {
+ ptr += i + 1;
+ i = entry_getlen(&ptr);
+ ndn->bv_val = (char *) ptr;
+ ndn->bv_len = i;
+ }
+
+ Debug( LDAP_DEBUG_TRACE,
+ "entry_decode_dn: \"%s\"\n",
+ dn ? dn->bv_val : ndn->bv_val, 0, 0 );
+
+ return 0;
+}
+
#ifdef SLAP_ZONE_ALLOC
int entry_decode(EntryHeader *eh, Entry **e, void *ctx)
#else
diff --git a/external/bsd/openldap/dist/servers/slapd/extended.c b/external/bsd/openldap/dist/servers/slapd/extended.c
index 5ff7f4be0a0f..942ba6cc8708 100644
--- a/external/bsd/openldap/dist/servers/slapd/extended.c
+++ b/external/bsd/openldap/dist/servers/slapd/extended.c
@@ -1,9 +1,9 @@
-/* $NetBSD: extended.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: extended.c,v 1.1.1.3 2010/12/12 15:22:29 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/extended.c,v 1.92.2.6 2009/01/22 00:01:01 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/extended.c,v 1.92.2.7 2010/04/13 20:23:14 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/filter.c b/external/bsd/openldap/dist/servers/slapd/filter.c
index 9e1ac614129a..3a0fec6e53ae 100644
--- a/external/bsd/openldap/dist/servers/slapd/filter.c
+++ b/external/bsd/openldap/dist/servers/slapd/filter.c
@@ -1,10 +1,10 @@
-/* $NetBSD: filter.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: filter.c,v 1.1.1.3 2010/12/12 15:22:30 adam Exp $ */
/* filter.c - routines for parsing and dealing with filters */
-/* OpenLDAP: pkg/ldap/servers/slapd/filter.c,v 1.134.2.17 2009/08/13 00:48:32 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/filter.c,v 1.134.2.18 2010/04/13 20:23:14 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/filterentry.c b/external/bsd/openldap/dist/servers/slapd/filterentry.c
index a56b82a9fbd3..4916083bab2c 100644
--- a/external/bsd/openldap/dist/servers/slapd/filterentry.c
+++ b/external/bsd/openldap/dist/servers/slapd/filterentry.c
@@ -1,10 +1,10 @@
-/* $NetBSD: filterentry.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: filterentry.c,v 1.1.1.3 2010/12/12 15:22:30 adam Exp $ */
/* filterentry.c - apply a filter to an entry */
-/* OpenLDAP: pkg/ldap/servers/slapd/filterentry.c,v 1.104.2.8 2009/11/18 01:26:53 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/filterentry.c,v 1.104.2.9 2010/04/13 20:23:15 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/frontend.c b/external/bsd/openldap/dist/servers/slapd/frontend.c
index 60b1b159c740..3ba557c290a9 100644
--- a/external/bsd/openldap/dist/servers/slapd/frontend.c
+++ b/external/bsd/openldap/dist/servers/slapd/frontend.c
@@ -1,10 +1,10 @@
-/* $NetBSD: frontend.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: frontend.c,v 1.1.1.3 2010/12/12 15:22:30 adam Exp $ */
/* frontend.c - routines for dealing with frontend */
-/* OpenLDAP: pkg/ldap/servers/slapd/frontend.c,v 1.19.2.9 2009/01/22 00:01:01 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/frontend.c,v 1.19.2.10 2010/04/13 20:23:15 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/globals.c b/external/bsd/openldap/dist/servers/slapd/globals.c
index 05deeb241ca4..8f8077736c98 100644
--- a/external/bsd/openldap/dist/servers/slapd/globals.c
+++ b/external/bsd/openldap/dist/servers/slapd/globals.c
@@ -1,10 +1,10 @@
-/* $NetBSD: globals.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: globals.c,v 1.1.1.3 2010/12/12 15:22:30 adam Exp $ */
/* globals.c - various global variables */
-/* OpenLDAP: pkg/ldap/servers/slapd/globals.c,v 1.15.2.4 2009/01/22 00:01:01 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/globals.c,v 1.15.2.5 2010/04/13 20:23:15 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/index.c b/external/bsd/openldap/dist/servers/slapd/index.c
index d800eda9eba3..914a3762397c 100644
--- a/external/bsd/openldap/dist/servers/slapd/index.c
+++ b/external/bsd/openldap/dist/servers/slapd/index.c
@@ -1,10 +1,10 @@
-/* $NetBSD: index.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: index.c,v 1.1.1.3 2010/12/12 15:22:30 adam Exp $ */
/* index.c - index utilities */
-/* OpenLDAP: pkg/ldap/servers/slapd/index.c,v 1.17.2.4 2009/01/22 00:01:01 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/index.c,v 1.17.2.5 2010/04/13 20:23:15 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/init.c b/external/bsd/openldap/dist/servers/slapd/init.c
index f7e6716d74ea..ddfbd9920243 100644
--- a/external/bsd/openldap/dist/servers/slapd/init.c
+++ b/external/bsd/openldap/dist/servers/slapd/init.c
@@ -1,10 +1,10 @@
-/* $NetBSD: init.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: init.c,v 1.1.1.3 2010/12/12 15:22:31 adam Exp $ */
/* init.c - initialize various things */
-/* OpenLDAP: pkg/ldap/servers/slapd/init.c,v 1.97.2.11 2009/02/17 19:14:41 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/init.c,v 1.97.2.13 2010/04/19 16:53:02 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -63,7 +63,6 @@ BerVarray default_referral = NULL;
ldap_pvt_thread_pool_t connection_pool;
int connection_pool_max = SLAP_MAX_WORKER_THREADS;
int slap_tool_thread_max = 1;
-ldap_pvt_thread_mutex_t gmtime_mutex;
slap_counters_t slap_counters, *slap_counters_list;
@@ -147,7 +146,6 @@ slap_init( int mode, const char *name )
LDAP_STAILQ_INIT( &slapd_rq.task_list );
LDAP_STAILQ_INIT( &slapd_rq.run_list );
- ldap_pvt_thread_mutex_init( &gmtime_mutex );
slap_passwd_init();
rc = slap_sasl_init();
diff --git a/external/bsd/openldap/dist/servers/slapd/ldapsync.c b/external/bsd/openldap/dist/servers/slapd/ldapsync.c
index 6a662bfb2672..92660b72ed3e 100644
--- a/external/bsd/openldap/dist/servers/slapd/ldapsync.c
+++ b/external/bsd/openldap/dist/servers/slapd/ldapsync.c
@@ -1,10 +1,10 @@
-/* $NetBSD: ldapsync.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ldapsync.c,v 1.1.1.3 2010/12/12 15:22:31 adam Exp $ */
/* ldapsync.c -- LDAP Content Sync Routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/ldapsync.c,v 1.32.2.11 2009/07/08 03:29:16 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/ldapsync.c,v 1.32.2.13 2010/04/19 16:53:02 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 2003 IBM Corporation.
* All rights reserved.
*
@@ -47,7 +47,7 @@ slap_compose_sync_cookie(
}
if ( numcsn == 0 || rid == -1 ) {
- char cookiestr[ LDAP_LUTIL_CSNSTR_BUFSIZE + 20 ];
+ char cookiestr[ LDAP_PVT_CSNSTR_BUFSIZE + 20 ];
if ( rid == -1 ) {
cookiestr[0] = '\0';
len = 0;
@@ -291,14 +291,14 @@ slap_init_sync_cookie_ctxcsn(
struct sync_cookie *cookie
)
{
- char csnbuf[ LDAP_LUTIL_CSNSTR_BUFSIZE + 4 ];
+ char csnbuf[ LDAP_PVT_CSNSTR_BUFSIZE + 4 ];
struct berval octet_str = BER_BVNULL;
struct berval ctxcsn = BER_BVNULL;
if ( cookie == NULL )
return -1;
- octet_str.bv_len = snprintf( csnbuf, LDAP_LUTIL_CSNSTR_BUFSIZE + 4,
+ octet_str.bv_len = snprintf( csnbuf, LDAP_PVT_CSNSTR_BUFSIZE + 4,
"csn=%4d%02d%02d%02d%02d%02dZ#%06x#%02x#%06x",
1900, 1, 1, 0, 0, 0, 0, 0, 0 );
octet_str.bv_val = csnbuf;
diff --git a/external/bsd/openldap/dist/servers/slapd/limits.c b/external/bsd/openldap/dist/servers/slapd/limits.c
index 2414355f8fdb..acf90336228c 100644
--- a/external/bsd/openldap/dist/servers/slapd/limits.c
+++ b/external/bsd/openldap/dist/servers/slapd/limits.c
@@ -1,10 +1,10 @@
-/* $NetBSD: limits.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: limits.c,v 1.1.1.3 2010/12/12 15:22:32 adam Exp $ */
/* limits.c - routines to handle regex-based size and time limits */
-/* OpenLDAP: pkg/ldap/servers/slapd/limits.c,v 1.73.2.11 2009/06/02 23:03:46 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/limits.c,v 1.73.2.12 2010/04/13 20:23:16 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/lock.c b/external/bsd/openldap/dist/servers/slapd/lock.c
index bf4d463d3ef0..83b284852a51 100644
--- a/external/bsd/openldap/dist/servers/slapd/lock.c
+++ b/external/bsd/openldap/dist/servers/slapd/lock.c
@@ -1,10 +1,10 @@
-/* $NetBSD: lock.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: lock.c,v 1.1.1.3 2010/12/12 15:22:32 adam Exp $ */
/* lock.c - routines to open and apply an advisory lock to a file */
-/* OpenLDAP: pkg/ldap/servers/slapd/lock.c,v 1.32.2.4 2009/01/22 00:01:01 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/lock.c,v 1.32.2.5 2010/04/13 20:23:16 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/main.c b/external/bsd/openldap/dist/servers/slapd/main.c
index 6e0400710ef6..5f0fecbe4a3e 100644
--- a/external/bsd/openldap/dist/servers/slapd/main.c
+++ b/external/bsd/openldap/dist/servers/slapd/main.c
@@ -1,9 +1,9 @@
-/* $NetBSD: main.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: main.c,v 1.1.1.4 2010/12/12 15:22:32 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/main.c,v 1.239.2.20 2009/10/30 17:52:53 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/main.c,v 1.239.2.21 2010/04/13 20:23:16 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/matchedValues.c b/external/bsd/openldap/dist/servers/slapd/matchedValues.c
index 5ad9539e4f00..cc008fb89faa 100644
--- a/external/bsd/openldap/dist/servers/slapd/matchedValues.c
+++ b/external/bsd/openldap/dist/servers/slapd/matchedValues.c
@@ -1,9 +1,9 @@
-/* $NetBSD: matchedValues.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: matchedValues.c,v 1.1.1.3 2010/12/12 15:22:32 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/matchedValues.c,v 1.28.2.4 2009/01/22 00:01:01 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/matchedValues.c,v 1.28.2.5 2010/04/13 20:23:16 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/modify.c b/external/bsd/openldap/dist/servers/slapd/modify.c
index 28c496248c0f..1f62c6d1c591 100644
--- a/external/bsd/openldap/dist/servers/slapd/modify.c
+++ b/external/bsd/openldap/dist/servers/slapd/modify.c
@@ -1,9 +1,9 @@
-/* $NetBSD: modify.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modify.c,v 1.1.1.3 2010/12/12 15:22:33 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/modify.c,v 1.276.2.13 2009/08/13 00:45:33 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/modify.c,v 1.276.2.15 2010/04/19 16:53:02 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -850,21 +850,11 @@ slap_sort_vals(
*/
void slap_timestamp( time_t *tm, struct berval *bv )
{
- struct tm *ltm;
-#ifdef HAVE_GMTIME_R
- struct tm ltm_buf;
+ struct tm ltm;
- ltm = gmtime_r( tm, <m_buf );
-#else
- ldap_pvt_thread_mutex_lock( &gmtime_mutex );
- ltm = gmtime( tm );
-#endif
+ ldap_pvt_gmtime( tm, <m );
- bv->bv_len = lutil_gentime( bv->bv_val, bv->bv_len, ltm );
-
-#ifndef HAVE_GMTIME_R
- ldap_pvt_thread_mutex_unlock( &gmtime_mutex );
-#endif
+ bv->bv_len = lutil_gentime( bv->bv_val, bv->bv_len, <m );
}
/* Called for all modify and modrdn ops. If the current op was replicated
@@ -878,7 +868,7 @@ void slap_mods_opattrs(
struct berval name, timestamp, csn = BER_BVNULL;
struct berval nname;
char timebuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
- char csnbuf[ LDAP_LUTIL_CSNSTR_BUFSIZE ];
+ char csnbuf[ LDAP_PVT_CSNSTR_BUFSIZE ];
Modifications *mod, **modtail, *modlast;
int gotcsn = 0, gotmname = 0, gotmtime = 0;
diff --git a/external/bsd/openldap/dist/servers/slapd/modrdn.c b/external/bsd/openldap/dist/servers/slapd/modrdn.c
index 1d606196ac38..27e8d51755f7 100644
--- a/external/bsd/openldap/dist/servers/slapd/modrdn.c
+++ b/external/bsd/openldap/dist/servers/slapd/modrdn.c
@@ -1,9 +1,9 @@
-/* $NetBSD: modrdn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: modrdn.c,v 1.1.1.3 2010/12/12 15:22:33 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/modrdn.c,v 1.170.2.6 2009/01/22 00:01:01 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/modrdn.c,v 1.170.2.8 2010/06/10 17:48:07 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -447,12 +447,19 @@ slap_modrdn2mods(
mod_tmp->sml_values[1].bv_val = NULL;
if( desc->ad_type->sat_equality->smr_normalize) {
mod_tmp->sml_nvalues = ( BerVarray )ch_malloc( 2 * sizeof( struct berval ) );
- (void) (*desc->ad_type->sat_equality->smr_normalize)(
+ rs->sr_err = desc->ad_type->sat_equality->smr_normalize(
SLAP_MR_EQUALITY|SLAP_MR_VALUE_OF_ASSERTION_SYNTAX,
desc->ad_type->sat_syntax,
desc->ad_type->sat_equality,
&mod_tmp->sml_values[0],
&mod_tmp->sml_nvalues[0], NULL );
+ if (rs->sr_err != LDAP_SUCCESS) {
+ ch_free(mod_tmp->sml_nvalues);
+ ch_free(mod_tmp->sml_values[0].bv_val);
+ ch_free(mod_tmp->sml_values);
+ ch_free(mod_tmp);
+ goto done;
+ }
mod_tmp->sml_nvalues[1].bv_val = NULL;
} else {
mod_tmp->sml_nvalues = NULL;
diff --git a/external/bsd/openldap/dist/servers/slapd/mods.c b/external/bsd/openldap/dist/servers/slapd/mods.c
index 3e45cf08add4..707f63344cfc 100644
--- a/external/bsd/openldap/dist/servers/slapd/mods.c
+++ b/external/bsd/openldap/dist/servers/slapd/mods.c
@@ -1,9 +1,9 @@
-/* $NetBSD: mods.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: mods.c,v 1.1.1.3 2010/12/12 15:22:33 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/mods.c,v 1.59.2.9 2009/02/22 22:45:32 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/mods.c,v 1.59.2.10 2010/04/13 20:23:16 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/module.c b/external/bsd/openldap/dist/servers/slapd/module.c
index 5743b0d42df5..7df6962f34d0 100644
--- a/external/bsd/openldap/dist/servers/slapd/module.c
+++ b/external/bsd/openldap/dist/servers/slapd/module.c
@@ -1,9 +1,9 @@
-/* $NetBSD: module.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: module.c,v 1.1.1.3 2010/12/12 15:22:34 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/module.c,v 1.29.2.6 2009/04/29 00:35:33 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/module.c,v 1.29.2.7 2010/04/13 20:23:16 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/mr.c b/external/bsd/openldap/dist/servers/slapd/mr.c
index d82a1ed73689..db294dab2fca 100644
--- a/external/bsd/openldap/dist/servers/slapd/mr.c
+++ b/external/bsd/openldap/dist/servers/slapd/mr.c
@@ -1,10 +1,10 @@
-/* $NetBSD: mr.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: mr.c,v 1.1.1.3 2010/12/12 15:22:34 adam Exp $ */
/* mr.c - routines to manage matching rule definitions */
-/* OpenLDAP: pkg/ldap/servers/slapd/mr.c,v 1.64.2.5 2009/01/22 00:01:01 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/mr.c,v 1.64.2.6 2010/04/13 20:23:17 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/mra.c b/external/bsd/openldap/dist/servers/slapd/mra.c
index c7e0bbc66c87..7d0ebb253a0c 100644
--- a/external/bsd/openldap/dist/servers/slapd/mra.c
+++ b/external/bsd/openldap/dist/servers/slapd/mra.c
@@ -1,10 +1,10 @@
-/* $NetBSD: mra.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: mra.c,v 1.1.1.3 2010/12/12 15:22:34 adam Exp $ */
/* mra.c - routines for dealing with extensible matching rule assertions */
-/* OpenLDAP: pkg/ldap/servers/slapd/mra.c,v 1.45.2.4 2009/01/22 00:01:01 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/mra.c,v 1.45.2.5 2010/04/13 20:23:17 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/nt_svc.c b/external/bsd/openldap/dist/servers/slapd/nt_svc.c
index 25ec158fd029..43a9e4f9d3ec 100644
--- a/external/bsd/openldap/dist/servers/slapd/nt_svc.c
+++ b/external/bsd/openldap/dist/servers/slapd/nt_svc.c
@@ -1,9 +1,9 @@
-/* $NetBSD: nt_svc.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: nt_svc.c,v 1.1.1.3 2010/12/12 15:22:34 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/nt_svc.c,v 1.27.2.4 2009/01/22 00:01:02 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/nt_svc.c,v 1.27.2.5 2010/04/13 20:23:17 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/oc.c b/external/bsd/openldap/dist/servers/slapd/oc.c
index 93e9ce43d6dd..4a292b29f714 100644
--- a/external/bsd/openldap/dist/servers/slapd/oc.c
+++ b/external/bsd/openldap/dist/servers/slapd/oc.c
@@ -1,10 +1,10 @@
-/* $NetBSD: oc.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: oc.c,v 1.1.1.3 2010/12/12 15:22:34 adam Exp $ */
/* oc.c - object class routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/oc.c,v 1.77.2.11 2009/10/30 18:06:26 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/oc.c,v 1.77.2.12 2010/04/13 20:23:17 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/oidm.c b/external/bsd/openldap/dist/servers/slapd/oidm.c
index 73a59bb78877..37545cf607a5 100644
--- a/external/bsd/openldap/dist/servers/slapd/oidm.c
+++ b/external/bsd/openldap/dist/servers/slapd/oidm.c
@@ -1,10 +1,10 @@
-/* $NetBSD: oidm.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: oidm.c,v 1.1.1.3 2010/12/12 15:22:34 adam Exp $ */
/* oidm.c - object identifier macro routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/oidm.c,v 1.21.2.4 2009/01/22 00:01:02 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/oidm.c,v 1.21.2.5 2010/04/13 20:23:17 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/operation.c b/external/bsd/openldap/dist/servers/slapd/operation.c
index 7493ca833489..ec082d8a5f94 100644
--- a/external/bsd/openldap/dist/servers/slapd/operation.c
+++ b/external/bsd/openldap/dist/servers/slapd/operation.c
@@ -1,10 +1,10 @@
-/* $NetBSD: operation.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: operation.c,v 1.1.1.3 2010/12/12 15:22:34 adam Exp $ */
/* operation.c - routines to deal with pending ldap operations */
-/* OpenLDAP: pkg/ldap/servers/slapd/operation.c,v 1.75.2.10 2009/01/22 00:01:02 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/operation.c,v 1.75.2.11 2010/04/13 20:23:17 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/operational.c b/external/bsd/openldap/dist/servers/slapd/operational.c
index 64d2e03f3cb4..bf21dbf97510 100644
--- a/external/bsd/openldap/dist/servers/slapd/operational.c
+++ b/external/bsd/openldap/dist/servers/slapd/operational.c
@@ -1,9 +1,9 @@
-/* $NetBSD: operational.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: operational.c,v 1.1.1.3 2010/12/12 15:22:34 adam Exp $ */
/* operational.c - routines to deal with on-the-fly operational attrs */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/Makefile.in b/external/bsd/openldap/dist/servers/slapd/overlays/Makefile.in
index 27e55e3722b1..99e023bbd063 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for overlays
-# OpenLDAP: pkg/ldap/servers/slapd/overlays/Makefile.in,v 1.41.2.9 2009/07/22 20:02:22 quanah Exp
+# OpenLDAP: pkg/ldap/servers/slapd/overlays/Makefile.in,v 1.41.2.10 2010/04/13 20:23:44 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2003-2009 The OpenLDAP Foundation.
+## Copyright 2003-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/accesslog.c b/external/bsd/openldap/dist/servers/slapd/overlays/accesslog.c
index 3ec2240521ab..f5daaa73a948 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/accesslog.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/accesslog.c
@@ -1,10 +1,10 @@
-/* $NetBSD: accesslog.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: accesslog.c,v 1.1.1.3 2010/12/12 15:23:32 adam Exp $ */
/* accesslog.c - log operations for audit/history purposes */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/accesslog.c,v 1.37.2.25 2009/11/24 05:50:11 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/accesslog.c,v 1.37.2.30 2010/04/19 20:37:53 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* Portions copyright 2004-2005 Symas Corporation.
* All rights reserved.
*
@@ -584,8 +584,8 @@ log_old_lookup( Operation *op, SlapReply *rs )
if ( a ) {
ber_len_t len = a->a_nvals[0].bv_len;
/* Paranoid len check, normalized CSNs are always the same length */
- if ( len > LDAP_LUTIL_CSNSTR_BUFSIZE )
- len = LDAP_LUTIL_CSNSTR_BUFSIZE;
+ if ( len > LDAP_PVT_CSNSTR_BUFSIZE )
+ len = LDAP_PVT_CSNSTR_BUFSIZE;
if ( memcmp( a->a_nvals[0].bv_val, pd->csn.bv_val, len ) > 0 ) {
AC_MEMCPY( pd->csn.bv_val, a->a_nvals[0].bv_val, len );
pd->csn.bv_len = len;
@@ -618,7 +618,7 @@ accesslog_purge( void *ctx, void *arg )
AttributeAssertion ava = ATTRIBUTEASSERTION_INIT;
purge_data pd = {0};
char timebuf[LDAP_LUTIL_GENTIME_BUFSIZE];
- char csnbuf[LDAP_LUTIL_CSNSTR_BUFSIZE];
+ char csnbuf[LDAP_PVT_CSNSTR_BUFSIZE];
time_t old = slap_get_time();
connection_fake_init( &conn, &opbuf, ctx );
@@ -666,6 +666,7 @@ accesslog_purge( void *ctx, void *arg )
op->o_tag = LDAP_REQ_DELETE;
op->o_callback = &nullsc;
op->o_csn = pd.csn;
+ op->o_dont_replicate = 1;
for (i=0; io_req_dn = pd.dn[i];
@@ -1263,7 +1264,7 @@ static Entry *accesslog_entry( Operation *op, SlapReply *rs, int logop,
}
rdn.bv_len = snprintf( rdn.bv_val, sizeof( rdnbuf ), "%lu", op->o_connid );
- if ( rdn.bv_len >= 0 || rdn.bv_len < sizeof( rdnbuf ) ) {
+ if ( rdn.bv_len < sizeof( rdnbuf ) ) {
attr_merge_one( e, ad_reqSession, &rdn, NULL );
} /* else? */
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/auditlog.c b/external/bsd/openldap/dist/servers/slapd/overlays/auditlog.c
index c32e12519323..427b4df2c306 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/auditlog.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/auditlog.c
@@ -1,10 +1,10 @@
-/* $NetBSD: auditlog.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: auditlog.c,v 1.1.1.3 2010/12/12 15:23:32 adam Exp $ */
/* auditlog.c - log modifications for audit/history purposes */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/auditlog.c,v 1.7.2.9 2009/09/29 21:43:53 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/auditlog.c,v 1.7.2.10 2010/04/13 20:23:44 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* Portions copyright 2004-2005 Symas Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/collect.c b/external/bsd/openldap/dist/servers/slapd/overlays/collect.c
index a2a1f90c601d..6376a1f81a3e 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/collect.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/collect.c
@@ -1,10 +1,10 @@
-/* $NetBSD: collect.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: collect.c,v 1.1.1.3 2010/12/12 15:23:32 adam Exp $ */
/* collect.c - Demonstration of overlay code */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/collect.c,v 1.5.2.10 2009/06/19 21:51:22 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/collect.c,v 1.5.2.12 2010/04/14 17:26:11 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 2003 Howard Chu.
* All rights reserved.
*
@@ -388,10 +388,18 @@ collect_response( Operation *op, SlapReply *rs )
* don't modify it directly. Make a copy and
* work with that instead.
*/
- if ( !( rs->sr_flags & REP_ENTRY_MODIFIABLE )) {
- rs->sr_entry = entry_dup( rs->sr_entry );
- rs->sr_flags |= REP_ENTRY_MODIFIABLE |
- REP_ENTRY_MUSTBEFREED;
+ if ( !( rs->sr_flags & REP_ENTRY_MODIFIABLE ) ) {
+ Entry *e;
+
+ e = entry_dup( rs->sr_entry );
+ if ( rs->sr_flags & REP_ENTRY_MUSTRELEASE ) {
+ overlay_entry_release_ov( op, rs->sr_entry, 0, on );
+ rs->sr_flags &= ~REP_ENTRY_MUSTRELEASE;
+ } else if ( rs->sr_flags & REP_ENTRY_MUSTBEFREED ) {
+ entry_free( rs->sr_entry );
+ }
+ rs->sr_entry = e;
+ rs->sr_flags |= REP_ENTRY_MODIFIABLE|REP_ENTRY_MUSTBEFREED;
}
/* Loop for each attribute in this collectinfo */
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/dds.c b/external/bsd/openldap/dist/servers/slapd/overlays/dds.c
index 71b6ab410fe7..5d5307042522 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/dds.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/dds.c
@@ -1,9 +1,9 @@
-/* $NetBSD: dds.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: dds.c,v 1.1.1.3 2010/12/12 15:23:33 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/dds.c,v 1.7.2.14 2009/11/18 01:25:49 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/dds.c,v 1.7.2.16 2010/04/15 19:59:56 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* Portions Copyright 2005-2006 SysNet s.n.c.
* All rights reserved.
*
@@ -1823,6 +1823,12 @@ slap_exop_refresh(
op->o_req_dn = op->o_req_ndn;
op->o_bd = select_backend( &op->o_req_ndn, 0 );
+ if ( op->o_bd == NULL ) {
+ send_ldap_error( op, rs, LDAP_NO_SUCH_OBJECT,
+ "no global superior knowledge" );
+ goto done;
+ }
+
if ( !SLAP_DYNAMIC( op->o_bd ) ) {
send_ldap_error( op, rs, LDAP_UNAVAILABLE_CRITICAL_EXTENSION,
"backend does not support dynamic directory services" );
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/deref.c b/external/bsd/openldap/dist/servers/slapd/overlays/deref.c
index 04358e5330b3..2e018f05e424 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/deref.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/deref.c
@@ -1,10 +1,10 @@
-/* $NetBSD: deref.c,v 1.1.1.1 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: deref.c,v 1.1.1.2 2010/12/12 15:23:34 adam Exp $ */
/* deref.c - dereference overlay */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/deref.c,v 1.7.2.4 2009/04/29 01:55:18 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/deref.c,v 1.7.2.5 2010/04/13 20:23:44 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 2008 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/dyngroup.c b/external/bsd/openldap/dist/servers/slapd/overlays/dyngroup.c
index 69cf22400e9b..fc7575287ab5 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/dyngroup.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/dyngroup.c
@@ -1,10 +1,10 @@
-/* $NetBSD: dyngroup.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: dyngroup.c,v 1.1.1.3 2010/12/12 15:23:34 adam Exp $ */
/* dyngroup.c - Demonstration of overlay code */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/dyngroup.c,v 1.10.2.4 2009/01/22 00:01:12 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/dyngroup.c,v 1.10.2.5 2010/04/13 20:23:44 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Copyright 2003 by Howard Chu.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/dynlist.c b/external/bsd/openldap/dist/servers/slapd/overlays/dynlist.c
index a5745247bd86..46c2212bacab 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/dynlist.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/dynlist.c
@@ -1,10 +1,10 @@
-/* $NetBSD: dynlist.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: dynlist.c,v 1.1.1.4 2010/12/12 15:23:35 adam Exp $ */
/* dynlist.c - dynamic list overlay */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/dynlist.c,v 1.20.2.30 2009/12/08 22:55:13 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/dynlist.c,v 1.20.2.33 2010/04/14 22:42:53 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 2004-2005 Pierangelo Masarati.
* Portions Copyright 2008 Emmanuel Dreyfus.
* All rights reserved.
@@ -110,46 +110,12 @@ dynlist_is_dynlist_next( Operation *op, SlapReply *rs, dynlist_info_t *old_dli )
for ( ; dli; dli = dli->dli_next ) {
if ( dli->dli_lud != NULL ) {
/* check base and scope */
- if ( !BER_BVISNULL( &dli->dli_uri_nbase ) ) {
- int d = rs->sr_entry->e_nname.bv_len - dli->dli_uri_nbase.bv_len;
-
- if ( d < 0 ) {
- continue;
- }
-
- if ( !dnIsSuffix( &rs->sr_entry->e_nname, &dli->dli_uri_nbase ) ) {
- continue;
- }
-
- switch ( dli->dli_lud->lud_scope ) {
- case LDAP_SCOPE_BASE:
- if ( d != 0 ) {
- continue;
- }
- break;
-
- case LDAP_SCOPE_ONELEVEL: {
- struct berval pdn;
-
- dnParent( &rs->sr_entry->e_nname, &pdn );
- if ( pdn.bv_len != dli->dli_uri_nbase.bv_len ) {
- continue;
- }
- } break;
-
- case LDAP_SCOPE_SUBORDINATE:
- if ( d == 0 ) {
- continue;
- }
- break;
-
- case LDAP_SCOPE_SUBTREE:
- case LDAP_SCOPE_DEFAULT:
- break;
-
- default:
- continue;
- }
+ if ( !BER_BVISNULL( &dli->dli_uri_nbase )
+ && !dnIsSuffixScope( &rs->sr_entry->e_nname,
+ &dli->dli_uri_nbase,
+ dli->dli_lud->lud_scope ) )
+ {
+ continue;
}
/* check filter */
@@ -467,6 +433,7 @@ dynlist_prepare_entry( Operation *op, SlapReply *rs, dynlist_info_t *dli )
if ( !( rs->sr_flags & REP_ENTRY_MODIFIABLE ) ) {
e = entry_dup( rs->sr_entry );
e_flags |= ( REP_ENTRY_MODIFIABLE | REP_ENTRY_MUSTBEFREED );
+ e_flags &= ~REP_ENTRY_MUSTRELEASE;
} else {
e = rs->sr_entry;
}
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/memberof.c b/external/bsd/openldap/dist/servers/slapd/overlays/memberof.c
index dc3b9b6f4d06..a27247bcbb2f 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/memberof.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/memberof.c
@@ -1,7 +1,7 @@
-/* $NetBSD: memberof.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: memberof.c,v 1.1.1.4 2010/12/12 15:23:36 adam Exp $ */
/* memberof.c - back-reference for group membership */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/memberof.c,v 1.2.2.20 2009/11/17 17:37:39 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/memberof.c,v 1.2.2.21 2010/04/15 20:11:24 quanah Exp */
/* This work is part of OpenLDAP Software .
*
* Copyright 2005-2007 Pierangelo Masarati
@@ -582,6 +582,7 @@ memberof_op_add( Operation *op, SlapReply *rs )
sizeof( struct berval ) * ( j - i ) );
}
i--;
+ a->a_numvals--;
}
}
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/overlays.c b/external/bsd/openldap/dist/servers/slapd/overlays/overlays.c
index 269bb29bca59..39bc7b1317cb 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/overlays.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/overlays.c
@@ -1,10 +1,10 @@
-/* $NetBSD: overlays.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: overlays.c,v 1.1.1.3 2010/12/12 15:23:36 adam Exp $ */
/* overlays.c - Static overlay framework */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/overlays.c,v 1.24.2.4 2009/01/22 00:01:12 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/overlays.c,v 1.24.2.5 2010/04/13 20:23:44 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Copyright 2003 by Howard Chu.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/pcache.c b/external/bsd/openldap/dist/servers/slapd/overlays/pcache.c
index 02cb48503899..e5da32246c3a 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/pcache.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/pcache.c
@@ -1,9 +1,9 @@
-/* $NetBSD: pcache.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: pcache.c,v 1.1.1.4 2010/12/12 15:23:39 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/pcache.c,v 1.88.2.47 2009/11/23 16:24:55 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/pcache.c,v 1.88.2.52 2010/04/15 19:59:56 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 2003 IBM Corporation.
* Portions Copyright 2003-2009 Symas Corporation.
* All rights reserved.
@@ -3020,14 +3020,24 @@ pcache_op_search(
pbi->bi_cq = answerable;
op->o_bd = &cm->db;
-#if 0
if ( cm->response_cb == PCACHE_RESPONSE_CB_TAIL ) {
+ slap_callback cb;
/* The cached entry was already processed by any
* other overlays, so don't let it get processed again.
+ *
+ * This loop removes over_back_response from the stack.
*/
- op->o_callback = NULL;
+ if ( overlay_callback_after_backover( op, &cb, 0) == 0 ) {
+ slap_callback **scp;
+ for ( scp = &op->o_callback; *scp != NULL;
+ scp = &(*scp)->sc_next ) {
+ if ( (*scp)->sc_next == &cb ) {
+ *scp = cb.sc_next;
+ break;
+ }
+ }
+ }
}
-#endif
i = cm->db.bd_info->bi_op_search( op, rs );
}
ldap_pvt_thread_rdwr_runlock(&answerable->rwlock);
@@ -5103,6 +5113,10 @@ pcache_exop_query_delete(
op->o_req_dn = op->o_req_ndn;
op->o_bd = select_backend( &op->o_req_ndn, 0 );
+ if ( op->o_bd == NULL ) {
+ send_ldap_error( op, rs, LDAP_NO_SUCH_OBJECT,
+ "no global superior knowledge" );
+ }
rs->sr_err = backend_check_restrictions( op, rs,
(struct berval *)&pcache_exop_QUERY_DELETE );
if ( rs->sr_err != LDAP_SUCCESS ) {
@@ -5221,6 +5235,20 @@ pcache_op_extended( Operation *op, SlapReply *rs )
return SLAP_CB_CONTINUE;
}
+static int
+pcache_entry_release( Operation *op, Entry *e, int rw )
+{
+ slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
+ cache_manager *cm = on->on_bi.bi_private;
+ BackendDB *db = op->o_bd;
+ int rc;
+
+ op->o_bd = &cm->db;
+ rc = be_entry_release_rw( op, e, rw );
+ op->o_bd = db;
+ return rc;
+}
+
#ifdef PCACHE_MONITOR
static int
@@ -5607,6 +5635,7 @@ pcache_initialize()
#endif /* PCACHE_CONTROL_PRIVDB */
pcache.on_bi.bi_extended = pcache_op_extended;
+ pcache.on_bi.bi_entry_release_rw = pcache_entry_release;
pcache.on_bi.bi_chk_controls = pcache_chk_controls;
pcache.on_bi.bi_cf_ocs = pcocs;
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/ppolicy.c b/external/bsd/openldap/dist/servers/slapd/overlays/ppolicy.c
index f5e7abb3df18..f5629b04fe29 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/ppolicy.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/ppolicy.c
@@ -1,9 +1,9 @@
-/* $NetBSD: ppolicy.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: ppolicy.c,v 1.1.1.4 2010/12/12 15:23:40 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/ppolicy.c,v 1.75.2.28 2009/08/25 23:07:41 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/ppolicy.c,v 1.75.2.31 2010/06/10 17:37:40 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* Portions Copyright 2004-2005 Howard Chu, Symas Corporation.
* Portions Copyright 2004 Hewlett-Packard Company.
* All rights reserved.
@@ -855,6 +855,7 @@ free_pwd_history_list( pw_hist **l )
typedef struct ppbind {
slap_overinst *on;
int send_ctrl;
+ int set_restrict;
LDAPControl **oldctrls;
Modifications *mod;
LDAPPasswordPolicyError pErr;
@@ -1023,8 +1024,10 @@ ppolicy_bind_response( Operation *op, SlapReply *rs )
* that we are disallowed from doing anything
* other than change password.
*/
- ber_dupbv( &pwcons[op->o_conn->c_conn_idx].dn,
- &op->o_conn->c_ndn );
+ if ( ppb->set_restrict ) {
+ ber_dupbv( &pwcons[op->o_conn->c_conn_idx].dn,
+ &op->o_conn->c_ndn );
+ }
ppb->pErr = PP_changeAfterReset;
@@ -1212,6 +1215,7 @@ ppolicy_bind( Operation *op, SlapReply *rs )
ppb = (ppbind *)(cb+1);
ppb->on = on;
ppb->pErr = PP_noError;
+ ppb->set_restrict = 1;
/* Setup a callback so we can munge the result */
@@ -1234,7 +1238,6 @@ ppolicy_bind( Operation *op, SlapReply *rs )
be_entry_release_r( op, e );
if ( rc ) {
- /* This will be the Draft 8 response, Unwilling is bogus */
ppb->pErr = PP_accountLocked;
send_ldap_error( op, rs, LDAP_INVALID_CREDENTIALS, NULL );
return rs->sr_err;
@@ -1302,6 +1305,88 @@ ppolicy_restrict(
return SLAP_CB_CONTINUE;
}
+static int
+ppolicy_compare_response(
+ Operation *op,
+ SlapReply *rs )
+{
+ /* map compare responses to bind responses */
+ if ( rs->sr_err == LDAP_COMPARE_TRUE )
+ rs->sr_err = LDAP_SUCCESS;
+ else if ( rs->sr_err == LDAP_COMPARE_FALSE )
+ rs->sr_err = LDAP_INVALID_CREDENTIALS;
+
+ ppolicy_bind_response( op, rs );
+
+ /* map back to compare */
+ if ( rs->sr_err == LDAP_SUCCESS )
+ rs->sr_err = LDAP_COMPARE_TRUE;
+ else if ( rs->sr_err == LDAP_INVALID_CREDENTIALS )
+ rs->sr_err = LDAP_COMPARE_FALSE;
+
+ return SLAP_CB_CONTINUE;
+}
+
+static int
+ppolicy_compare(
+ Operation *op,
+ SlapReply *rs )
+{
+ slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
+
+ if ( ppolicy_restrict( op, rs ) != SLAP_CB_CONTINUE )
+ return rs->sr_err;
+
+ /* Did we receive a password policy request control?
+ * Are we testing the userPassword?
+ */
+ if ( op->o_ctrlflag[ppolicy_cid] &&
+ op->orc_ava->aa_desc == slap_schema.si_ad_userPassword ) {
+ Entry *e;
+ int rc;
+ ppbind *ppb;
+ slap_callback *cb;
+
+ op->o_bd->bd_info = (BackendInfo *)on->on_info;
+ rc = be_entry_get_rw( op, &op->o_req_ndn, NULL, NULL, 0, &e );
+
+ if ( rc != LDAP_SUCCESS ) {
+ return SLAP_CB_CONTINUE;
+ }
+
+ cb = op->o_tmpcalloc( sizeof(ppbind)+sizeof(slap_callback),
+ 1, op->o_tmpmemctx );
+ ppb = (ppbind *)(cb+1);
+ ppb->on = on;
+ ppb->pErr = PP_noError;
+ ppb->send_ctrl = 1;
+ /* failures here don't lockout the connection */
+ ppb->set_restrict = 0;
+
+ /* Setup a callback so we can munge the result */
+
+ cb->sc_response = ppolicy_compare_response;
+ cb->sc_next = op->o_callback->sc_next;
+ cb->sc_private = ppb;
+ op->o_callback->sc_next = cb;
+
+ op->o_bd->bd_info = (BackendInfo *)on;
+ ppolicy_get( op, e, &ppb->pp );
+
+ rc = account_locked( op, e, &ppb->pp, &ppb->mod );
+
+ op->o_bd->bd_info = (BackendInfo *)on->on_info;
+ be_entry_release_r( op, e );
+
+ if ( rc ) {
+ ppb->pErr = PP_accountLocked;
+ send_ldap_error( op, rs, LDAP_COMPARE_FALSE, NULL );
+ return rs->sr_err;
+ }
+ }
+ return SLAP_CB_CONTINUE;
+}
+
static int
ppolicy_add(
Operation *op,
@@ -2147,7 +2232,7 @@ ppolicy_db_init(
if ( cr ){
snprintf( cr->msg, sizeof(cr->msg),
"slapo-ppolicy cannot be global" );
- fprintf( stderr, "%s\n", cr->msg );
+ Debug( LDAP_DEBUG_ANY, "%s\n", cr->msg, 0, 0 );
}
return 1;
}
@@ -2164,7 +2249,7 @@ ppolicy_db_init(
snprintf( cr->msg, sizeof(cr->msg),
"User Schema load failed for attribute \"%s\". Error code %d: %s",
pwd_UsSchema[i].def, code, err );
- fprintf( stderr, "%s\n", cr->msg );
+ Debug( LDAP_DEBUG_ANY, "%s\n", cr->msg, 0, 0 );
}
return code;
}
@@ -2257,7 +2342,7 @@ int ppolicy_initialize()
SLAP_CTRL_ADD|SLAP_CTRL_BIND|SLAP_CTRL_MODIFY|SLAP_CTRL_HIDE, extops,
ppolicy_parseCtrl, &ppolicy_cid );
if ( code != LDAP_SUCCESS ) {
- fprintf( stderr, "Failed to register control %d\n", code );
+ Debug( LDAP_DEBUG_ANY, "Failed to register control %d\n", code, 0, 0 );
return code;
}
@@ -2270,7 +2355,7 @@ int ppolicy_initialize()
ppolicy.on_bi.bi_op_add = ppolicy_add;
ppolicy.on_bi.bi_op_bind = ppolicy_bind;
- ppolicy.on_bi.bi_op_compare = ppolicy_restrict;
+ ppolicy.on_bi.bi_op_compare = ppolicy_compare;
ppolicy.on_bi.bi_op_delete = ppolicy_restrict;
ppolicy.on_bi.bi_op_modify = ppolicy_modify;
ppolicy.on_bi.bi_op_search = ppolicy_restrict;
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/refint.c b/external/bsd/openldap/dist/servers/slapd/overlays/refint.c
index 45a842c09179..a1d8051297e2 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/refint.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/refint.c
@@ -1,10 +1,10 @@
-/* $NetBSD: refint.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: refint.c,v 1.1.1.4 2010/12/12 15:23:40 adam Exp $ */
/* refint.c - referential integrity module */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/refint.c,v 1.19.2.12 2009/06/04 23:27:42 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/refint.c,v 1.19.2.15 2010/06/17 20:08:31 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* Portions Copyright 2004 Symas Corporation.
* All rights reserved.
*
@@ -78,7 +78,6 @@ typedef struct refint_q {
} refint_q;
typedef struct refint_data_s {
- const char *message; /* breadcrumbs */
struct refint_attrs_s *attrs; /* list of known attrs */
BerValue dn; /* basedn in parent, */
BerValue nothing; /* the nothing value, if needed */
@@ -212,21 +211,17 @@ refint_cf_gen(ConfigArgs *c)
rc = 0;
break;
case REFINT_NOTHING:
- if ( dd->nothing.bv_val )
- ber_memfree ( dd->nothing.bv_val );
- if ( dd->nnothing.bv_val )
- ber_memfree ( dd->nnothing.bv_val );
- dd->nothing.bv_len = 0;
- dd->nnothing.bv_len = 0;
+ ch_free( dd->nothing.bv_val );
+ ch_free( dd->nnothing.bv_val );
+ BER_BVZERO( &dd->nothing );
+ BER_BVZERO( &dd->nnothing );
rc = 0;
break;
case REFINT_MODIFIERSNAME:
- if ( dd->refint_dn.bv_val )
- ber_memfree ( dd->refint_dn.bv_val );
- if ( dd->refint_ndn.bv_val )
- ber_memfree ( dd->refint_ndn.bv_val );
- dd->refint_dn.bv_len = 0;
- dd->refint_ndn.bv_len = 0;
+ ch_free( dd->refint_dn.bv_val );
+ ch_free( dd->refint_ndn.bv_val );
+ BER_BVZERO( &dd->refint_dn );
+ BER_BVZERO( &dd->refint_ndn );
rc = 0;
break;
default:
@@ -258,22 +253,26 @@ refint_cf_gen(ConfigArgs *c)
}
break;
case REFINT_NOTHING:
- if ( dd->nothing.bv_val )
- ber_memfree ( dd->nothing.bv_val );
- if ( dd->nnothing.bv_val )
- ber_memfree ( dd->nnothing.bv_val );
- dd->nothing = c->value_dn;
- dd->nnothing = c->value_ndn;
- rc = 0;
+ if ( !BER_BVISNULL( &c->value_ndn )) {
+ ch_free ( dd->nothing.bv_val );
+ ch_free ( dd->nnothing.bv_val );
+ dd->nothing = c->value_dn;
+ dd->nnothing = c->value_ndn;
+ rc = 0;
+ } else {
+ rc = ARG_BAD_CONF;
+ }
break;
case REFINT_MODIFIERSNAME:
- if ( dd->refint_dn.bv_val )
- ber_memfree ( dd->refint_dn.bv_val );
- if ( dd->refint_ndn.bv_val )
- ber_memfree ( dd->refint_ndn.bv_val );
- dd->refint_dn = c->value_dn;
- dd->refint_ndn = c->value_ndn;
- rc = 0;
+ if ( !BER_BVISNULL( &c->value_ndn )) {
+ ch_free( dd->refint_dn.bv_val );
+ ch_free( dd->refint_ndn.bv_val );
+ dd->refint_dn = c->value_dn;
+ dd->refint_ndn = c->value_ndn;
+ rc = 0;
+ } else {
+ rc = ARG_BAD_CONF;
+ }
break;
default:
abort ();
@@ -301,7 +300,6 @@ refint_db_init(
slap_overinst *on = (slap_overinst *)be->bd_info;
refint_data *id = ch_calloc(1,sizeof(refint_data));
- id->message = "_init";
on->on_bi.bi_private = id;
ldap_pvt_thread_mutex_init( &id->qmutex );
return(0);
@@ -337,7 +335,6 @@ refint_open(
{
slap_overinst *on = (slap_overinst *)be->bd_info;
refint_data *id = on->on_bi.bi_private;
- id->message = "_open";
if ( BER_BVISNULL( &id->dn )) {
if ( BER_BVISNULL( &be->be_nsuffix[0] ))
@@ -356,7 +353,6 @@ refint_open(
** foreach configured attribute:
** free it;
** free our basedn;
-** (do not) free id->message;
** reset on_bi.bi_private;
** free our config data;
**
@@ -371,7 +367,6 @@ refint_close(
slap_overinst *on = (slap_overinst *) be->bd_info;
refint_data *id = on->on_bi.bi_private;
refint_attrs *ii, *ij;
- id->message = "_close";
for(ii = id->attrs; ii; ii = ij) {
ij = ii->next;
@@ -872,8 +867,6 @@ refint_response(
BackendDB *db = NULL;
refint_attrs *ip;
- id->message = "_refint_response";
-
/* If the main op failed or is not a Delete or ModRdn, ignore it */
if (( op->o_tag != LDAP_REQ_DELETE && op->o_tag != LDAP_REQ_MODRDN ) ||
rs->sr_err != LDAP_SUCCESS )
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/retcode.c b/external/bsd/openldap/dist/servers/slapd/overlays/retcode.c
index e1d7687ee773..4e2bc8f487c4 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/retcode.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/retcode.c
@@ -1,10 +1,10 @@
-/* $NetBSD: retcode.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: retcode.c,v 1.1.1.3 2010/12/12 15:23:41 adam Exp $ */
/* retcode.c - customizable response for client testing purposes */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/retcode.c,v 1.18.2.11 2009/11/22 19:39:43 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/retcode.c,v 1.18.2.12 2010/04/13 20:23:45 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* Portions Copyright 2005 Pierangelo Masarati
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/rwm.c b/external/bsd/openldap/dist/servers/slapd/overlays/rwm.c
index 79210a63ed17..b43b2035943c 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/rwm.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/rwm.c
@@ -1,10 +1,10 @@
-/* $NetBSD: rwm.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: rwm.c,v 1.1.1.3 2010/12/12 15:23:42 adam Exp $ */
/* rwm.c - rewrite/remap operations */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/rwm.c,v 1.70.2.28 2009/05/01 19:51:07 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/rwm.c,v 1.70.2.36 2010/06/10 17:37:40 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 2003 Pierangelo Masarati.
* All rights reserved.
*
@@ -106,9 +106,9 @@ rwm_op_rollback( Operation *op, SlapReply *rs, rwm_op_state *ros )
}
break;
case LDAP_REQ_SEARCH:
- ch_free( ros->mapped_attrs );
+ op->o_tmpfree( ros->mapped_attrs, op->o_tmpmemctx );
filter_free_x( op, op->ors_filter, 1 );
- ch_free( op->ors_filterstr.bv_val );
+ op->o_tmpfree( op->ors_filterstr.bv_val, op->o_tmpmemctx );
op->ors_attrs = ros->ors_attrs;
op->ors_filter = ros->ors_filter;
op->ors_filterstr = ros->ors_filterstr;
@@ -124,7 +124,7 @@ rwm_op_rollback( Operation *op, SlapReply *rs, rwm_op_state *ros )
#if 0
ldap_pvt_thread_mutex_lock( &op->o_conn->c_mutex );
/* too late, c_mutex released */
- fprintf( stderr, "*** DN: \"%s\" => \"%s\"\n",
+ Debug( LDAP_DEBUG_ANY, "*** DN: \"%s\" => \"%s\"\n",
op->o_conn->c_ndn.bv_val,
op->o_req_ndn.bv_val );
ber_bvreplace( &op->o_conn->c_ndn,
@@ -953,7 +953,7 @@ rwm_op_search( Operation *op, SlapReply *rs )
op->ors_filter = f;
op->ors_filterstr = fstr;
- rc = rwm_map_attrnames( &rwmap->rwm_at, &rwmap->rwm_oc,
+ rc = rwm_map_attrnames( op, &rwmap->rwm_at, &rwmap->rwm_oc,
op->ors_attrs, &an, RWM_MAP );
if ( rc != LDAP_SUCCESS ) {
text = "attribute list mapping error";
@@ -980,7 +980,7 @@ error_return:;
}
if ( !BER_BVISNULL( &fstr ) ) {
- ch_free( fstr.bv_val );
+ op->o_tmpfree( fstr.bv_val, op->o_tmpmemctx );
}
rwm_op_rollback( op, rs, &roc->ros );
@@ -1507,7 +1507,16 @@ rwm_send_entry( Operation *op, SlapReply *rs )
(void)rwm_attrs( op, rs, &e->e_attrs, 1 );
if ( rs->sr_flags & REP_ENTRY_MUSTRELEASE ) {
- overlay_entry_release_ov( op, rs->sr_entry, 0, on );
+ /* ITS#6423: REP_ENTRY_MUSTRELEASE incompatible
+ * with REP_ENTRY_MODIFIABLE */
+ if ( rs->sr_entry == e ) {
+ rc = 1;
+ goto fail;
+ }
+
+ op->o_bd->bd_info = (BackendInfo *)on->on_info;
+ be_entry_release_r( op, rs->sr_entry );
+ op->o_bd->bd_info = (BackendInfo *)on;
}
rs->sr_entry = e;
@@ -1619,12 +1628,12 @@ rwm_suffixmassage_config(
*/
if ( argc == 2 ) {
if ( be->be_suffix == NULL ) {
- fprintf( stderr, "%s: line %d: "
+ Debug( LDAP_DEBUG_ANY, "%s: line %d: "
" \"suffixMassage []"
" \" without "
" part requires database "
"suffix be defined first.\n",
- fname, lineno );
+ fname, lineno, 0 );
return 1;
}
bvnc = be->be_suffix[ 0 ];
@@ -1635,22 +1644,22 @@ rwm_suffixmassage_config(
massaged = 2;
} else {
- fprintf( stderr, "%s: line %d: syntax is"
+ Debug( LDAP_DEBUG_ANY, "%s: line %d: syntax is"
" \"suffixMassage []"
" \"\n",
- fname, lineno );
+ fname, lineno, 0 );
return 1;
}
if ( dnPrettyNormal( NULL, &bvnc, &pvnc, &nvnc, NULL ) != LDAP_SUCCESS ) {
- fprintf( stderr, "%s: line %d: suffix DN %s is invalid\n",
+ Debug( LDAP_DEBUG_ANY, "%s: line %d: suffix DN %s is invalid\n",
fname, lineno, bvnc.bv_val );
return 1;
}
ber_str2bv( argv[ massaged ], 0, 0, &brnc );
if ( dnPrettyNormal( NULL, &brnc, &prnc, &nrnc, NULL ) != LDAP_SUCCESS ) {
- fprintf( stderr, "%s: line %d: suffix DN %s is invalid\n",
+ Debug( LDAP_DEBUG_ANY, "%s: line %d: suffix DN %s is invalid\n",
fname, lineno, brnc.bv_val );
free( nvnc.bv_val );
free( pvnc.bv_val );
@@ -1769,9 +1778,9 @@ rwm_db_config(
} else if ( strcasecmp( argv[0], "t-f-support" ) == 0 ) {
if ( argc != 2 ) {
- fprintf( stderr,
+ Debug( LDAP_DEBUG_ANY,
"%s: line %d: \"t-f-support {no|yes|discover}\" needs 1 argument.\n",
- fname, lineno );
+ fname, lineno, 0 );
return( 1 );
}
@@ -1783,17 +1792,17 @@ rwm_db_config(
/* TODO: not implemented yet */
} else if ( strcasecmp( argv[ 1 ], "discover" ) == 0 ) {
- fprintf( stderr,
+ Debug( LDAP_DEBUG_ANY,
"%s: line %d: \"discover\" not supported yet "
"in \"t-f-support {no|yes|discover}\".\n",
- fname, lineno );
+ fname, lineno, 0 );
return( 1 );
#if 0
rwmap->rwm_flags |= RWM_F_SUPPORT_T_F_DISCOVER;
#endif
} else {
- fprintf( stderr,
+ Debug( LDAP_DEBUG_ANY,
"%s: line %d: unknown value \"%s\" for \"t-f-support {no|yes|discover}\".\n",
fname, lineno, argv[ 1 ] );
return 1;
@@ -1801,9 +1810,9 @@ rwm_db_config(
} else if ( strcasecmp( argv[0], "normalize-mapped-attrs" ) == 0 ) {
if ( argc !=2 ) {
- fprintf( stderr,
+ Debug( LDAP_DEBUG_ANY,
"%s: line %d: \"normalize-mapped-attrs {no|yes}\" needs 1 argument.\n",
- fname, lineno );
+ fname, lineno, 0 );
return( 1 );
}
@@ -1880,6 +1889,7 @@ static ConfigTable rwmcfg[] = {
2, 4, 0, ARG_MAGIC|RWM_CF_MAP, rwm_cf_gen,
"( OLcfgOvAt:16.3 NAME 'olcRwmMap' "
"DESC 'maps attributes/objectClasses' "
+ "EQUALITY caseIgnoreMatch "
"SYNTAX OMsDirectoryString "
"X-ORDERED 'VALUES' )",
NULL, NULL },
@@ -1919,7 +1929,7 @@ static ConfigOCs rwmocs[] = {
};
static void
-slap_rewrite_unparse( BerVarray in, BerVarray *out )
+slap_bv_x_ordered_unparse( BerVarray in, BerVarray *out )
{
int i;
BerVarray bva = NULL;
@@ -1959,8 +1969,8 @@ slap_rewrite_unparse( BerVarray in, BerVarray *out )
}
static int
-rwm_bva_rewrite_add(
- struct ldaprwmap *rwmap,
+rwm_bva_add(
+ BerVarray *bva,
int idx,
char **argv )
{
@@ -1977,14 +1987,34 @@ rwm_bva_rewrite_add(
bv.bv_val[ bv.bv_len - 1 ] = '"';
if ( idx == -1 ) {
- ber_bvarray_add( &rwmap->rwm_bva_rewrite, &bv );
+ ber_bvarray_add( bva, &bv );
} else {
- rwmap->rwm_bva_rewrite[ idx ] = bv;
+ (*bva)[ idx ] = bv;
}
+
+ return 0;
}
- return 0;
+ return -1;
+}
+
+static int
+rwm_bva_rewrite_add(
+ struct ldaprwmap *rwmap,
+ int idx,
+ char **argv )
+{
+ return rwm_bva_add( &rwmap->rwm_bva_rewrite, idx, argv );
+}
+
+static int
+rwm_bva_map_add(
+ struct ldaprwmap *rwmap,
+ int idx,
+ char **argv )
+{
+ return rwm_bva_add( &rwmap->rwm_bva_map, idx, argv );
}
static int
@@ -2036,7 +2066,7 @@ rwm_cf_gen( ConfigArgs *c )
rc = 1;
} else {
- slap_rewrite_unparse( rwmap->rwm_bva_rewrite, &c->rvalue_vals );
+ slap_bv_x_ordered_unparse( rwmap->rwm_bva_rewrite, &c->rvalue_vals );
if ( !c->rvalue_vals ) {
rc = 1;
}
@@ -2060,7 +2090,10 @@ rwm_cf_gen( ConfigArgs *c )
rc = 1;
} else {
- value_add( &c->rvalue_vals, rwmap->rwm_bva_map );
+ slap_bv_x_ordered_unparse( rwmap->rwm_bva_map, &c->rvalue_vals );
+ if ( !c->rvalue_vals ) {
+ rc = 1;
+ }
}
break;
@@ -2083,13 +2116,12 @@ rwm_cf_gen( ConfigArgs *c )
switch ( c->type ) {
case RWM_CF_REWRITE:
if ( c->valx >= 0 ) {
- ConfigArgs ca = { 0 };
int i;
for ( i = 0; !BER_BVISNULL( &rwmap->rwm_bva_rewrite[ i ] ); i++ )
/* count'em */ ;
- if ( i >= c->valx ) {
+ if ( c->valx >= i ) {
rc = 1;
break;
}
@@ -2108,6 +2140,8 @@ rwm_cf_gen( ConfigArgs *c )
for ( i = 0; !BER_BVISNULL( &rwmap->rwm_bva_rewrite[ i ] ); i++ )
{
+ ConfigArgs ca = { 0 };
+
ca.line = rwmap->rwm_bva_rewrite[ i ].bv_val;
ca.argc = 0;
config_fp_parse_line( &ca );
@@ -2122,6 +2156,7 @@ rwm_cf_gen( ConfigArgs *c )
}
ch_free( ca.tline );
+ ch_free( ca.argv );
assert( rc == 0 );
}
@@ -2143,8 +2178,74 @@ rwm_cf_gen( ConfigArgs *c )
case RWM_CF_MAP:
if ( c->valx >= 0 ) {
- /* single modification is not allowed */
- rc = 1;
+ struct ldapmap rwm_oc = rwmap->rwm_oc;
+ struct ldapmap rwm_at = rwmap->rwm_at;
+ char *argv[5];
+ int cnt = 0;
+
+ if ( rwmap->rwm_bva_map ) {
+ for ( ; !BER_BVISNULL( &rwmap->rwm_bva_map[ cnt ] ); cnt++ )
+ /* count */ ;
+ }
+
+ if ( c->valx >= cnt ) {
+ rc = 1;
+ break;
+ }
+
+ memset( &rwmap->rwm_oc, 0, sizeof( rwmap->rwm_oc ) );
+ memset( &rwmap->rwm_at, 0, sizeof( rwmap->rwm_at ) );
+
+ /* re-parse all mappings except the one
+ * that needs to be eliminated */
+ argv[0] = "map";
+ for ( cnt = 0; !BER_BVISNULL( &rwmap->rwm_bva_map[ cnt ] ); cnt++ ) {
+ ConfigArgs ca = { 0 };
+
+ if ( cnt == c->valx ) {
+ continue;
+ }
+
+ ca.line = rwmap->rwm_bva_map[ cnt ].bv_val;
+ ca.argc = 0;
+ config_fp_parse_line( &ca );
+
+ argv[1] = ca.argv[0];
+ argv[2] = ca.argv[1];
+ argv[3] = ca.argv[2];
+ argv[4] = ca.argv[3];
+
+ rc = rwm_m_config( &db, c->fname, c->lineno, ca.argc + 1, argv );
+
+ ch_free( ca.tline );
+ ch_free( ca.argv );
+
+ /* in case of failure, restore
+ * the existing mapping */
+ if ( rc ) {
+ avl_free( rwmap->rwm_oc.remap, rwm_mapping_dst_free );
+ avl_free( rwmap->rwm_oc.map, rwm_mapping_free );
+ avl_free( rwmap->rwm_at.remap, rwm_mapping_dst_free );
+ avl_free( rwmap->rwm_at.map, rwm_mapping_free );
+ rwmap->rwm_oc = rwm_oc;
+ rwmap->rwm_at = rwm_at;
+ break;
+ }
+ }
+
+ /* in case of success, destroy the old mapping
+ * and eliminate the deleted one */
+ if ( rc == 0 ) {
+ avl_free( rwm_oc.remap, rwm_mapping_dst_free );
+ avl_free( rwm_oc.map, rwm_mapping_free );
+ avl_free( rwm_at.remap, rwm_mapping_dst_free );
+ avl_free( rwm_at.map, rwm_mapping_free );
+
+ ber_memfree( rwmap->rwm_bva_map[ c->valx ].bv_val );
+ for ( cnt = c->valx; !BER_BVISNULL( &rwmap->rwm_bva_map[ cnt ] ); cnt++ ) {
+ rwmap->rwm_bva_map[ cnt ] = rwmap->rwm_bva_map[ cnt + 1 ];
+ }
+ }
} else {
avl_free( rwmap->rwm_oc.remap, rwm_mapping_dst_free );
@@ -2184,7 +2285,6 @@ rwm_cf_gen( ConfigArgs *c )
case RWM_CF_REWRITE:
if ( c->valx >= 0 ) {
struct rewrite_info *rwm_rw = rwmap->rwm_rw;
- ConfigArgs ca = { 0 };
int i, last;
for ( last = 0; rwmap->rwm_bva_rewrite && !BER_BVISNULL( &rwmap->rwm_bva_rewrite[ last ] ); last++ )
@@ -2198,6 +2298,8 @@ rwm_cf_gen( ConfigArgs *c )
rc = rwm_info_init( &rwmap->rwm_rw );
for ( i = 0; i < c->valx; i++ ) {
+ ConfigArgs ca = { 0 };
+
ca.line = rwmap->rwm_bva_rewrite[ i ].bv_val;
ca.argc = 0;
config_fp_parse_line( &ca );
@@ -2217,6 +2319,7 @@ rwm_cf_gen( ConfigArgs *c )
ca.argv[ 0 ] = argv0;
ch_free( ca.tline );
+ ch_free( ca.argv );
assert( rc == 0 );
}
@@ -2245,6 +2348,8 @@ rwm_cf_gen( ConfigArgs *c )
for ( i = c->valx; rwmap->rwm_bva_rewrite && !BER_BVISNULL( &rwmap->rwm_bva_rewrite[ i ] ); i++ )
{
+ ConfigArgs ca = { 0 };
+
ca.line = rwmap->rwm_bva_rewrite[ i ].bv_val;
ca.argc = 0;
config_fp_parse_line( &ca );
@@ -2264,6 +2369,7 @@ rwm_cf_gen( ConfigArgs *c )
ca.argv[ 0 ] = argv0;
ch_free( ca.tline );
+ ch_free( ca.argv );
assert( rc == 0 );
}
@@ -2320,7 +2426,126 @@ rwm_cf_gen( ConfigArgs *c )
case RWM_CF_MAP:
if ( c->valx >= 0 ) {
- return 1;
+ struct ldapmap rwm_oc = rwmap->rwm_oc;
+ struct ldapmap rwm_at = rwmap->rwm_at;
+ char *argv[5];
+ int cnt = 0;
+
+ if ( rwmap->rwm_bva_map ) {
+ for ( ; !BER_BVISNULL( &rwmap->rwm_bva_map[ cnt ] ); cnt++ )
+ /* count */ ;
+ }
+
+ if ( c->valx >= cnt ) {
+ c->valx = cnt;
+ }
+
+ memset( &rwmap->rwm_oc, 0, sizeof( rwmap->rwm_oc ) );
+ memset( &rwmap->rwm_at, 0, sizeof( rwmap->rwm_at ) );
+
+ /* re-parse all mappings, including the one
+ * that needs to be added */
+ argv[0] = "map";
+ for ( cnt = 0; cnt < c->valx; cnt++ ) {
+ ConfigArgs ca = { 0 };
+
+ ca.line = rwmap->rwm_bva_map[ cnt ].bv_val;
+ ca.argc = 0;
+ config_fp_parse_line( &ca );
+
+ argv[1] = ca.argv[0];
+ argv[2] = ca.argv[1];
+ argv[3] = ca.argv[2];
+ argv[4] = ca.argv[3];
+
+ rc = rwm_m_config( &db, c->fname, c->lineno, ca.argc + 1, argv );
+
+ ch_free( ca.tline );
+ ch_free( ca.argv );
+
+ /* in case of failure, restore
+ * the existing mapping */
+ if ( rc ) {
+ goto rwmmap_fail;
+ }
+ }
+
+ argv0 = c->argv[0];
+ c->argv[0] = "map";
+ rc = rwm_m_config( &db, c->fname, c->lineno, c->argc, c->argv );
+ c->argv[0] = argv0;
+ if ( rc ) {
+ goto rwmmap_fail;
+ }
+
+ if ( rwmap->rwm_bva_map ) {
+ for ( ; !BER_BVISNULL( &rwmap->rwm_bva_map[ cnt ] ); cnt++ ) {
+ ConfigArgs ca = { 0 };
+
+ ca.line = rwmap->rwm_bva_map[ cnt ].bv_val;
+ ca.argc = 0;
+ config_fp_parse_line( &ca );
+
+ argv[1] = ca.argv[0];
+ argv[2] = ca.argv[1];
+ argv[3] = ca.argv[2];
+ argv[4] = ca.argv[3];
+
+ rc = rwm_m_config( &db, c->fname, c->lineno, ca.argc + 1, argv );
+
+ ch_free( ca.tline );
+ ch_free( ca.argv );
+
+ /* in case of failure, restore
+ * the existing mapping */
+ if ( rc ) {
+ goto rwmmap_fail;
+ }
+ }
+ }
+
+ /* in case of success, destroy the old mapping
+ * and add the new one */
+ if ( rc == 0 ) {
+ BerVarray tmp;
+ struct berval bv, *bvp = &bv;
+
+ if ( rwm_bva_add( &bvp, 0, &c->argv[ idx0 ] ) ) {
+ rc = 1;
+ goto rwmmap_fail;
+ }
+
+ tmp = ber_memrealloc( rwmap->rwm_bva_map,
+ sizeof( struct berval )*( cnt + 2 ) );
+ if ( tmp == NULL ) {
+ ber_memfree( bv.bv_val );
+ rc = 1;
+ goto rwmmap_fail;
+ }
+ rwmap->rwm_bva_map = tmp;
+ BER_BVZERO( &rwmap->rwm_bva_map[ cnt + 1 ] );
+
+ avl_free( rwm_oc.remap, rwm_mapping_dst_free );
+ avl_free( rwm_oc.map, rwm_mapping_free );
+ avl_free( rwm_at.remap, rwm_mapping_dst_free );
+ avl_free( rwm_at.map, rwm_mapping_free );
+
+ for ( ; cnt-- > c->valx; ) {
+ rwmap->rwm_bva_map[ cnt + 1 ] = rwmap->rwm_bva_map[ cnt ];
+ }
+ rwmap->rwm_bva_map[ c->valx ] = bv;
+
+ } else {
+rwmmap_fail:;
+ avl_free( rwmap->rwm_oc.remap, rwm_mapping_dst_free );
+ avl_free( rwmap->rwm_oc.map, rwm_mapping_free );
+ avl_free( rwmap->rwm_at.remap, rwm_mapping_dst_free );
+ avl_free( rwmap->rwm_at.map, rwm_mapping_free );
+ rwmap->rwm_oc = rwm_oc;
+ rwmap->rwm_at = rwm_at;
+ }
+
+ break;
}
argv0 = c->argv[ 0 ];
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/rwm.h b/external/bsd/openldap/dist/servers/slapd/overlays/rwm.h
index db76372f40a0..adc2214359fd 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/rwm.h
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/rwm.h
@@ -1,10 +1,10 @@
-/* $NetBSD: rwm.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: rwm.h,v 1.1.1.3 2010/12/12 15:23:42 adam Exp $ */
/* rwm.h - dn rewrite/attribute mapping header file */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/rwm.h,v 1.15.2.6 2009/05/01 19:18:10 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/rwm.h,v 1.15.2.8 2010/04/19 19:31:17 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Howard Chu.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
@@ -122,15 +122,18 @@ rwm_map_filter(
struct ldapmap *oc_map,
struct berval *f );
+#if 0 /* unused! */
int
rwm_map_attrs(
struct ldapmap *at_map,
AttributeName *a,
int remap,
char ***mapped_attrs );
+#endif
int
rwm_map_attrnames(
+ Operation *op,
struct ldapmap *at_map,
struct ldapmap *oc_map,
AttributeName *an,
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/rwmconf.c b/external/bsd/openldap/dist/servers/slapd/overlays/rwmconf.c
index 1bbd2a1d51ee..e255af36c73b 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/rwmconf.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/rwmconf.c
@@ -1,10 +1,10 @@
-/* $NetBSD: rwmconf.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: rwmconf.c,v 1.1.1.3 2010/12/12 15:23:43 adam Exp $ */
/* rwmconf.c - rewrite/map configuration file routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/rwmconf.c,v 1.25.2.5 2009/01/22 00:01:13 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/rwmconf.c,v 1.25.2.7 2010/06/10 17:37:40 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Howard Chu.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
@@ -52,9 +52,9 @@ rwm_map_config(
int rc = 0;
if ( argc < 3 || argc > 4 ) {
- fprintf( stderr,
+ Debug( LDAP_DEBUG_ANY,
"%s: line %d: syntax is \"map {objectclass | attribute} [ | *] { | *}\"\n",
- fname, lineno );
+ fname, lineno, 0 );
return 1;
}
@@ -66,10 +66,10 @@ rwm_map_config(
map = at_map;
} else {
- fprintf( stderr, "%s: line %d: syntax is "
+ Debug( LDAP_DEBUG_ANY, "%s: line %d: syntax is "
"\"map {objectclass | attribute} [ | *] "
"{ | *}\"\n",
- fname, lineno );
+ fname, lineno, 0 );
return 1;
}
@@ -100,18 +100,18 @@ rwm_map_config(
&& ( strcasecmp( src, "objectclass" ) == 0
|| strcasecmp( dst, "objectclass" ) == 0 ) )
{
- fprintf( stderr,
+ Debug( LDAP_DEBUG_ANY,
"%s: line %d: objectclass attribute cannot be mapped\n",
- fname, lineno );
+ fname, lineno, 0 );
return 1;
}
mapping = (struct ldapmapping *)ch_calloc( 2,
sizeof(struct ldapmapping) );
if ( mapping == NULL ) {
- fprintf( stderr,
+ Debug( LDAP_DEBUG_ANY,
"%s: line %d: out of memory\n",
- fname, lineno );
+ fname, lineno, 0 );
return 1;
}
ber_str2bv( src, 0, 1, &mapping[0].m_src );
@@ -129,7 +129,7 @@ rwm_map_config(
if ( src[0] != '\0' ) {
mapping[0].m_src_oc = oc_bvfind( &mapping[0].m_src );
if ( mapping[0].m_src_oc == NULL ) {
- fprintf( stderr,
+ Debug( LDAP_DEBUG_ANY,
"%s: line %d: warning, source objectClass '%s' "
"should be defined in schema\n",
fname, lineno, src );
@@ -147,14 +147,14 @@ rwm_map_config(
mapping[0].m_dst_oc = oc_bvfind( &mapping[0].m_dst );
if ( mapping[0].m_dst_oc == NULL ) {
- fprintf( stderr,
+ Debug( LDAP_DEBUG_ANY,
"%s: line %d: warning, destination objectClass '%s' "
"is not defined in schema\n",
fname, lineno, dst );
mapping[0].m_dst_oc = oc_bvfind_undef( &mapping[0].m_dst );
if ( mapping[0].m_dst_oc == NULL ) {
- fprintf( stderr, "%s: line %d: unable to mimic destination objectClass '%s'\n",
+ Debug( LDAP_DEBUG_ANY, "%s: line %d: unable to mimic destination objectClass '%s'\n",
fname, lineno, dst );
goto error_return;
}
@@ -172,7 +172,7 @@ rwm_map_config(
rc = slap_bv2ad( &mapping[0].m_src,
&mapping[0].m_src_ad, &text );
if ( rc != LDAP_SUCCESS ) {
- fprintf( stderr,
+ Debug( LDAP_DEBUG_ANY,
"%s: line %d: warning, source attributeType '%s' "
"should be defined in schema\n",
fname, lineno, src );
@@ -186,9 +186,12 @@ rwm_map_config(
&mapping[0].m_src_ad, &text,
SLAP_AD_PROXIED );
if ( rc != LDAP_SUCCESS ) {
- fprintf( stderr,
- "%s: line %d: source attributeType '%s': %d (%s)\n",
- fname, lineno, src, rc, text ? text : "null" );
+ char prefix[1024];
+ snprintf( prefix, sizeof(prefix),
+ "%s: line %d: source attributeType '%s': %d",
+ fname, lineno, src, rc );
+ Debug( LDAP_DEBUG_ANY, "%s (%s)\n",
+ prefix, text ? text : "null", 0 );
goto error_return;
}
@@ -198,7 +201,7 @@ rwm_map_config(
rc = slap_bv2ad( &mapping[0].m_dst, &mapping[0].m_dst_ad, &text );
if ( rc != LDAP_SUCCESS ) {
- fprintf( stderr,
+ Debug( LDAP_DEBUG_ANY,
"%s: line %d: warning, destination attributeType '%s' "
"is not defined in schema\n",
fname, lineno, dst );
@@ -207,9 +210,12 @@ rwm_map_config(
&mapping[0].m_dst_ad, &text,
SLAP_AD_PROXIED );
if ( rc != LDAP_SUCCESS ) {
- fprintf( stderr,
- "%s: line %d: destination attributeType '%s': %d (%s)\n",
- fname, lineno, dst, rc, text ? text : "null" );
+ char prefix[1024];
+ snprintf( prefix, sizeof(prefix),
+ "%s: line %d: destination attributeType '%s': %d",
+ fname, lineno, dst, rc );
+ Debug( LDAP_DEBUG_ANY, "%s (%s)\n",
+ prefix, text ? text : "null", 0 );
goto error_return;
}
}
@@ -219,9 +225,9 @@ rwm_map_config(
if ( ( src[0] != '\0' && avl_find( map->map, (caddr_t)mapping, rwm_mapping_cmp ) != NULL)
|| avl_find( map->remap, (caddr_t)&mapping[1], rwm_mapping_cmp ) != NULL)
{
- fprintf( stderr,
+ Debug( LDAP_DEBUG_ANY,
"%s: line %d: duplicate mapping found.\n",
- fname, lineno );
+ fname, lineno, 0 );
/* FIXME: free stuff */
goto error_return;
}
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/rwmdn.c b/external/bsd/openldap/dist/servers/slapd/overlays/rwmdn.c
index 7125c2001925..4f1ffd14479c 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/rwmdn.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/rwmdn.c
@@ -1,10 +1,10 @@
-/* $NetBSD: rwmdn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: rwmdn.c,v 1.1.1.3 2010/12/12 15:23:43 adam Exp $ */
/* rwmdn.c - massages dns */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/rwmdn.c,v 1.18.2.5 2009/01/22 00:01:13 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/rwmdn.c,v 1.18.2.6 2010/04/13 20:23:46 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Howard Chu.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/rwmmap.c b/external/bsd/openldap/dist/servers/slapd/overlays/rwmmap.c
index 1be6a96c7be3..f7874111d4b0 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/rwmmap.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/rwmmap.c
@@ -1,10 +1,10 @@
-/* $NetBSD: rwmmap.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: rwmmap.c,v 1.1.1.3 2010/12/12 15:23:43 adam Exp $ */
/* rwmmap.c - rewrite/mapping routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/rwmmap.c,v 1.31.2.12 2009/02/17 19:14:42 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/rwmmap.c,v 1.31.2.15 2010/04/19 19:31:17 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* Portions Copyright 1999-2003 Howard Chu.
* Portions Copyright 2000-2003 Pierangelo Masarati.
* All rights reserved.
@@ -181,6 +181,7 @@ rwm_map( struct ldapmap *map, struct berval *s, struct berval *bv, int remap )
*/
int
rwm_map_attrnames(
+ Operation *op,
struct ldapmap *at_map,
struct ldapmap *oc_map,
AttributeName *an,
@@ -199,7 +200,8 @@ rwm_map_attrnames(
for ( i = 0; !BER_BVISNULL( &an[i].an_name ); i++ )
/* just count */ ;
- *anp = ch_malloc( ( i + 1 )* sizeof( AttributeName ) );
+ *anp = op->o_tmpalloc( ( i + 1 )* sizeof( AttributeName ),
+ op->o_tmpmemctx );
if ( *anp == NULL ) {
return LDAP_NO_MEMORY;
}
@@ -331,6 +333,7 @@ rwm_map_attrnames(
return LDAP_SUCCESS;
}
+#if 0 /* unused! */
int
rwm_map_attrs(
struct ldapmap *at_map,
@@ -380,6 +383,7 @@ rwm_map_attrs(
return LDAP_SUCCESS;
}
+#endif
static int
map_attr_value(
@@ -388,7 +392,8 @@ map_attr_value(
struct berval *mapped_attr,
struct berval *value,
struct berval *mapped_value,
- int remap )
+ int remap,
+ void *memctx )
{
struct berval vtmp = BER_BVNULL;
int freeval = 0;
@@ -436,11 +441,11 @@ map_attr_value(
} else if ( ad->ad_type->sat_equality->smr_usage & SLAP_MR_MUTATION_NORMALIZER ) {
if ( ad->ad_type->sat_equality->smr_normalize(
(SLAP_MR_DENORMALIZE|SLAP_MR_VALUE_OF_ASSERTION_SYNTAX),
- NULL, NULL, value, &vtmp, NULL ) )
+ NULL, NULL, value, &vtmp, memctx ) )
{
return -1;
}
- freeval = 1;
+ freeval = 2;
} else if ( ad == slap_schema.si_ad_objectClass
|| ad == slap_schema.si_ad_structuralObjectClass )
@@ -454,10 +459,16 @@ map_attr_value(
vtmp = *value;
}
- filter_escape_value( &vtmp, mapped_value );
+ filter_escape_value_x( &vtmp, mapped_value, memctx );
- if ( freeval ) {
+ switch ( freeval ) {
+ case 1:
ch_free( vtmp.bv_val );
+ break;
+
+ case 2:
+ ber_memfree_x( vtmp.bv_val, memctx );
+ break;
}
}
@@ -502,7 +513,7 @@ rwm_int_filter_map_rewrite(
BER_BVZERO( fstr );
if ( f == NULL ) {
- ber_dupbv( fstr, &ber_bvnone );
+ ber_dupbv_x( fstr, &ber_bvnone, op->o_tmpmemctx );
return LDAP_OTHER;
}
@@ -514,75 +525,75 @@ rwm_int_filter_map_rewrite(
case LDAP_FILTER_EQUALITY:
ad = f->f_av_desc;
if ( map_attr_value( dc, &ad, &atmp,
- &f->f_av_value, &vtmp, RWM_MAP ) )
+ &f->f_av_value, &vtmp, RWM_MAP, op->o_tmpmemctx ) )
{
goto computed;
}
fstr->bv_len = atmp.bv_len + vtmp.bv_len + STRLENOF( "(=)" );
- fstr->bv_val = ch_malloc( fstr->bv_len + 1 );
+ fstr->bv_val = op->o_tmpalloc( fstr->bv_len + 1, op->o_tmpmemctx );
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s=%s)",
atmp.bv_val, vtmp.bv_len ? vtmp.bv_val : "" );
- ch_free( vtmp.bv_val );
+ op->o_tmpfree( vtmp.bv_val, op->o_tmpmemctx );
break;
case LDAP_FILTER_GE:
ad = f->f_av_desc;
if ( map_attr_value( dc, &ad, &atmp,
- &f->f_av_value, &vtmp, RWM_MAP ) )
+ &f->f_av_value, &vtmp, RWM_MAP, op->o_tmpmemctx ) )
{
goto computed;
}
fstr->bv_len = atmp.bv_len + vtmp.bv_len + STRLENOF( "(>=)" );
- fstr->bv_val = ch_malloc( fstr->bv_len + 1 );
+ fstr->bv_val = op->o_tmpalloc( fstr->bv_len + 1, op->o_tmpmemctx );
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s>=%s)",
atmp.bv_val, vtmp.bv_len ? vtmp.bv_val : "" );
- ch_free( vtmp.bv_val );
+ op->o_tmpfree( vtmp.bv_val, op->o_tmpmemctx );
break;
case LDAP_FILTER_LE:
ad = f->f_av_desc;
if ( map_attr_value( dc, &ad, &atmp,
- &f->f_av_value, &vtmp, RWM_MAP ) )
+ &f->f_av_value, &vtmp, RWM_MAP, op->o_tmpmemctx ) )
{
goto computed;
}
fstr->bv_len = atmp.bv_len + vtmp.bv_len + STRLENOF( "(<=)" );
- fstr->bv_val = ch_malloc( fstr->bv_len + 1 );
+ fstr->bv_val = op->o_tmpalloc( fstr->bv_len + 1, op->o_tmpmemctx );
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s<=%s)",
atmp.bv_val, vtmp.bv_len ? vtmp.bv_val : "" );
- ch_free( vtmp.bv_val );
+ op->o_tmpfree( vtmp.bv_val, op->o_tmpmemctx );
break;
case LDAP_FILTER_APPROX:
ad = f->f_av_desc;
if ( map_attr_value( dc, &ad, &atmp,
- &f->f_av_value, &vtmp, RWM_MAP ) )
+ &f->f_av_value, &vtmp, RWM_MAP, op->o_tmpmemctx ) )
{
goto computed;
}
fstr->bv_len = atmp.bv_len + vtmp.bv_len + STRLENOF( "(~=)" );
- fstr->bv_val = ch_malloc( fstr->bv_len + 1 );
+ fstr->bv_val = op->o_tmpalloc( fstr->bv_len + 1, op->o_tmpmemctx );
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s~=%s)",
atmp.bv_val, vtmp.bv_len ? vtmp.bv_val : "" );
- ch_free( vtmp.bv_val );
+ op->o_tmpfree( vtmp.bv_val, op->o_tmpmemctx );
break;
case LDAP_FILTER_SUBSTRINGS:
ad = f->f_sub_desc;
if ( map_attr_value( dc, &ad, &atmp,
- NULL, NULL, RWM_MAP ) )
+ NULL, NULL, RWM_MAP, op->o_tmpmemctx ) )
{
goto computed;
}
@@ -590,7 +601,7 @@ rwm_int_filter_map_rewrite(
/* cannot be a DN ... */
fstr->bv_len = atmp.bv_len + STRLENOF( "(=*)" );
- fstr->bv_val = ch_malloc( fstr->bv_len + 128 );
+ fstr->bv_val = op->o_tmpalloc( fstr->bv_len + 128, op->o_tmpmemctx );
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s=*)",
atmp.bv_val );
@@ -598,46 +609,50 @@ rwm_int_filter_map_rewrite(
if ( !BER_BVISNULL( &f->f_sub_initial ) ) {
len = fstr->bv_len;
- filter_escape_value( &f->f_sub_initial, &vtmp );
+ filter_escape_value_x( &f->f_sub_initial, &vtmp, op->o_tmpmemctx );
fstr->bv_len += vtmp.bv_len;
- fstr->bv_val = ch_realloc( fstr->bv_val, fstr->bv_len + 1 );
+ fstr->bv_val = op->o_tmprealloc( fstr->bv_val, fstr->bv_len + 1,
+ op->o_tmpmemctx );
snprintf( &fstr->bv_val[len - 2], vtmp.bv_len + 3,
/* "(attr=" */ "%s*)",
vtmp.bv_len ? vtmp.bv_val : "" );
- ch_free( vtmp.bv_val );
+ op->o_tmpfree( vtmp.bv_val, op->o_tmpmemctx );
}
if ( f->f_sub_any != NULL ) {
for ( i = 0; !BER_BVISNULL( &f->f_sub_any[i] ); i++ ) {
len = fstr->bv_len;
- filter_escape_value( &f->f_sub_any[i], &vtmp );
+ filter_escape_value_x( &f->f_sub_any[i], &vtmp,
+ op->o_tmpmemctx );
fstr->bv_len += vtmp.bv_len + 1;
- fstr->bv_val = ch_realloc( fstr->bv_val, fstr->bv_len + 1 );
+ fstr->bv_val = op->o_tmprealloc( fstr->bv_val, fstr->bv_len + 1,
+ op->o_tmpmemctx );
snprintf( &fstr->bv_val[len - 1], vtmp.bv_len + 3,
/* "(attr=[init]*[any*]" */ "%s*)",
vtmp.bv_len ? vtmp.bv_val : "" );
- ch_free( vtmp.bv_val );
+ op->o_tmpfree( vtmp.bv_val, op->o_tmpmemctx );
}
}
if ( !BER_BVISNULL( &f->f_sub_final ) ) {
len = fstr->bv_len;
- filter_escape_value( &f->f_sub_final, &vtmp );
+ filter_escape_value_x( &f->f_sub_final, &vtmp, op->o_tmpmemctx );
fstr->bv_len += vtmp.bv_len;
- fstr->bv_val = ch_realloc( fstr->bv_val, fstr->bv_len + 1 );
+ fstr->bv_val = op->o_tmprealloc( fstr->bv_val, fstr->bv_len + 1,
+ op->o_tmpmemctx );
snprintf( &fstr->bv_val[len - 1], vtmp.bv_len + 3,
/* "(attr=[init*][any*]" */ "%s)",
vtmp.bv_len ? vtmp.bv_val : "" );
- ch_free( vtmp.bv_val );
+ op->o_tmpfree( vtmp.bv_val, op->o_tmpmemctx );
}
break;
@@ -645,13 +660,13 @@ rwm_int_filter_map_rewrite(
case LDAP_FILTER_PRESENT:
ad = f->f_desc;
if ( map_attr_value( dc, &ad, &atmp,
- NULL, NULL, RWM_MAP ) )
+ NULL, NULL, RWM_MAP, op->o_tmpmemctx ) )
{
goto computed;
}
fstr->bv_len = atmp.bv_len + STRLENOF( "(=*)" );
- fstr->bv_val = ch_malloc( fstr->bv_len + 1 );
+ fstr->bv_val = op->o_tmpalloc( fstr->bv_len + 1, op->o_tmpmemctx );
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s=*)",
atmp.bv_val );
@@ -661,7 +676,7 @@ rwm_int_filter_map_rewrite(
case LDAP_FILTER_OR:
case LDAP_FILTER_NOT:
fstr->bv_len = STRLENOF( "(%)" );
- fstr->bv_val = ch_malloc( fstr->bv_len + 128 );
+ fstr->bv_val = op->o_tmpalloc( fstr->bv_len + 128, op->o_tmpmemctx );
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%c)",
f->f_choice == LDAP_FILTER_AND ? '&' :
@@ -678,12 +693,13 @@ rwm_int_filter_map_rewrite(
}
fstr->bv_len += vtmp.bv_len;
- fstr->bv_val = ch_realloc( fstr->bv_val, fstr->bv_len + 1 );
+ fstr->bv_val = op->o_tmprealloc( fstr->bv_val, fstr->bv_len + 1,
+ op->o_tmpmemctx );
snprintf( &fstr->bv_val[len-1], vtmp.bv_len + 2,
/*"("*/ "%s)", vtmp.bv_len ? vtmp.bv_val : "" );
- ch_free( vtmp.bv_val );
+ op->o_tmpfree( vtmp.bv_val, op->o_tmpmemctx );
}
break;
@@ -692,14 +708,14 @@ rwm_int_filter_map_rewrite(
if ( f->f_mr_desc ) {
ad = f->f_mr_desc;
if ( map_attr_value( dc, &ad, &atmp,
- &f->f_mr_value, &vtmp, RWM_MAP ) )
+ &f->f_mr_value, &vtmp, RWM_MAP, op->o_tmpmemctx ) )
{
goto computed;
}
} else {
BER_BVSTR( &atmp, "" );
- filter_escape_value( &f->f_mr_value, &vtmp );
+ filter_escape_value_x( &f->f_mr_value, &vtmp, op->o_tmpmemctx );
}
@@ -707,7 +723,7 @@ rwm_int_filter_map_rewrite(
( f->f_mr_dnattrs ? STRLENOF( ":dn" ) : 0 ) +
( f->f_mr_rule_text.bv_len ? f->f_mr_rule_text.bv_len + 1 : 0 ) +
vtmp.bv_len + STRLENOF( "(:=)" );
- fstr->bv_val = ch_malloc( fstr->bv_len + 1 );
+ fstr->bv_val = op->o_tmpalloc( fstr->bv_len + 1, op->o_tmpmemctx );
snprintf( fstr->bv_val, fstr->bv_len + 1, "(%s%s%s%s:=%s)",
atmp.bv_val,
@@ -715,7 +731,7 @@ rwm_int_filter_map_rewrite(
!BER_BVISEMPTY( &f->f_mr_rule_text ) ? ":" : "",
!BER_BVISEMPTY( &f->f_mr_rule_text ) ? f->f_mr_rule_text.bv_val : "",
vtmp.bv_len ? vtmp.bv_val : "" );
- ch_free( vtmp.bv_val );
+ op->o_tmpfree( vtmp.bv_val, op->o_tmpmemctx );
break;
}
@@ -751,11 +767,11 @@ computed:;
break;
}
- ber_dupbv( fstr, tmp );
+ ber_dupbv_x( fstr, tmp, op->o_tmpmemctx );
break;
default:
- ber_dupbv( fstr, &ber_bvunknown );
+ ber_dupbv_x( fstr, &ber_bvunknown, op->o_tmpmemctx );
break;
}
@@ -791,9 +807,6 @@ rwm_filter_map_rewrite(
case REWRITE_REGEXEC_OK:
if ( !BER_BVISNULL( fstr ) ) {
fstr->bv_len = strlen( fstr->bv_val );
- if ( fstr->bv_val != ftmp.bv_val ) {
- ch_free( ftmp.bv_val );
- }
} else {
*fstr = ftmp;
@@ -802,6 +815,11 @@ rwm_filter_map_rewrite(
Debug( LDAP_DEBUG_ARGS,
"[rw] %s: \"%s\" -> \"%s\"\n",
fdc.ctx, ftmp.bv_val, fstr->bv_val );
+ if ( fstr->bv_val != ftmp.bv_val ) {
+ ber_bvreplace_x( &ftmp, fstr, op->o_tmpmemctx );
+ ch_free( fstr->bv_val );
+ *fstr = ftmp;
+ }
rc = LDAP_SUCCESS;
break;
@@ -810,6 +828,7 @@ rwm_filter_map_rewrite(
fdc.rs->sr_err = LDAP_UNWILLING_TO_PERFORM;
fdc.rs->sr_text = "Operation not allowed";
}
+ op->o_tmpfree( ftmp.bv_val, op->o_tmpmemctx );
rc = LDAP_UNWILLING_TO_PERFORM;
break;
@@ -818,6 +837,7 @@ rwm_filter_map_rewrite(
fdc.rs->sr_err = LDAP_OTHER;
fdc.rs->sr_text = "Rewrite error";
}
+ op->o_tmpfree( ftmp.bv_val, op->o_tmpmemctx );
rc = LDAP_OTHER;
break;
}
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/seqmod.c b/external/bsd/openldap/dist/servers/slapd/overlays/seqmod.c
index 8eecda7b57c9..754af389d3b2 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/seqmod.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/seqmod.c
@@ -1,9 +1,9 @@
-/* $NetBSD: seqmod.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: seqmod.c,v 1.1.1.3 2010/12/12 15:23:43 adam Exp $ */
/* seqmod.c - sequenced modifies */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/sssvlv.c b/external/bsd/openldap/dist/servers/slapd/overlays/sssvlv.c
index 9c2a8f8c7e1f..077e99d4cb63 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/sssvlv.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/sssvlv.c
@@ -1,10 +1,10 @@
-/* $NetBSD: sssvlv.c,v 1.1.1.1 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sssvlv.c,v 1.1.1.2 2010/12/12 15:23:44 adam Exp $ */
/* sssvlv.c - server side sort / virtual list view */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/sssvlv.c,v 1.9.2.4 2009/09/29 19:07:07 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/sssvlv.c,v 1.9.2.9 2010/06/10 17:37:40 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2009 The OpenLDAP Foundation.
+ * Copyright 2009-2010 The OpenLDAP Foundation.
* Portions copyright 2009 Symas Corporation.
* All rights reserved.
*
@@ -115,6 +115,7 @@ typedef struct sort_op
/* There is only one conn table for all overlay instances */
static sort_op **sort_conns;
static ldap_pvt_thread_mutex_t sort_conns_mutex;
+static int ov_count;
static const char *debug_header = "sssvlv";
static int sss_cid;
@@ -472,7 +473,9 @@ range_err:
be = op->o_bd;
for ( i=0; iavl_data;
-
+
+ if ( slapd_shutdown ) break;
+
op->o_bd = select_backend( &sn->sn_dn, 0 );
e = NULL;
rc = be_entry_get_rw( op, &sn->sn_dn, NULL, NULL, 0, &e );
@@ -504,6 +507,8 @@ static void send_page( Operation *op, SlapReply *rs, sort_op *so )
while ( cur_node && rs->sr_nentries < so->so_page_size ) {
sort_node *sn = cur_node->avl_data;
+ if ( slapd_shutdown ) break;
+
next_node = tavl_next( cur_node, TAVL_DIR_RIGHT );
op->o_bd = select_backend( &sn->sn_dn, 0 );
@@ -823,6 +828,8 @@ static int sssvlv_op_search(
so->so_vlv = op->o_ctrlflag[vlv_cid];
so->so_vlv_target = 0;
so->so_vlv_rc = 0;
+ } else {
+ so->so_vlv = SLAP_CONTROL_NONE;
}
}
so->so_vcontext = (unsigned long)so;
@@ -1167,6 +1174,7 @@ static int sssvlv_db_init(
sort_conns = ch_calloc( sizeof(sort_op *), dtblsize + 1 );
sort_conns++;
}
+ ov_count++;
return LDAP_SUCCESS;
}
@@ -1178,6 +1186,13 @@ static int sssvlv_db_destroy(
slap_overinst *on = (slap_overinst *)be->bd_info;
sssvlv_info *si = (sssvlv_info *)on->on_bi.bi_private;
+ ov_count--;
+ if ( !ov_count && sort_conns) {
+ sort_conns--;
+ ch_free(sort_conns);
+ ldap_pvt_thread_mutex_destroy( &sort_conns_mutex );
+ }
+
if ( si ) {
ch_free( si );
on->on_bi.bi_private = NULL;
@@ -1223,11 +1238,11 @@ int sssvlv_initialize()
if ( rc == LDAP_SUCCESS ) {
rc = overlay_register( &sssvlv );
if ( rc != LDAP_SUCCESS ) {
- fprintf( stderr, "Failed to register server side sort overlay\n" );
+ Debug( LDAP_DEBUG_ANY, "Failed to register server side sort overlay\n", 0, 0, 0 );
}
}
else {
- fprintf( stderr, "Failed to register control %d\n", rc );
+ Debug( LDAP_DEBUG_ANY, "Failed to register control %d\n", rc, 0, 0 );
}
return rc;
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/syncprov.c b/external/bsd/openldap/dist/servers/slapd/overlays/syncprov.c
index f6ce84389a35..d2f44e4bd69c 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/syncprov.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/syncprov.c
@@ -1,10 +1,10 @@
-/* $NetBSD: syncprov.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: syncprov.c,v 1.1.1.4 2010/12/12 15:23:46 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.147.2.70 2009/11/24 00:53:26 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.147.2.75 2010/06/10 18:50:48 quanah Exp */
/* syncprov.c - syncrepl provider */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -593,8 +593,8 @@ syncprov_findcsn( Operation *op, find_csn_t mode )
slap_callback cb = {0};
Operation fop;
SlapReply frs = { REP_RESULT };
- char buf[LDAP_LUTIL_CSNSTR_BUFSIZE + STRLENOF("(entryCSN<=)")];
- char cbuf[LDAP_LUTIL_CSNSTR_BUFSIZE];
+ char buf[LDAP_PVT_CSNSTR_BUFSIZE + STRLENOF("(entryCSN<=)")];
+ char cbuf[LDAP_PVT_CSNSTR_BUFSIZE];
struct berval maxcsn;
Filter cf;
AttributeAssertion eq = ATTRIBUTEASSERTION_INIT;
@@ -933,9 +933,9 @@ syncprov_qplay( Operation *op, syncops *so )
ldap_pvt_thread_mutex_unlock( &so->s_mutex );
if ( sr->s_mode == LDAP_SYNC_NEW_COOKIE ) {
- SlapReply rs = { REP_INTERMEDIATE };
+ SlapReply rs = { REP_INTERMEDIATE };
- rc = syncprov_sendinfo( op, &rs, LDAP_TAG_SYNC_NEW_COOKIE,
+ rc = syncprov_sendinfo( op, &rs, LDAP_TAG_SYNC_NEW_COOKIE,
&sr->s_csn, 0, NULL, 0 );
} else {
opc.sdn = sr->s_dn;
@@ -947,11 +947,11 @@ syncprov_qplay( Operation *op, syncops *so )
rc = syncprov_sendresp( op, &opc, so, sr->s_mode );
- if ( opc.se ) {
- if ( !dec_mutexint( opc.se->e_private )) {
- opc.se->e_private = NULL;
- entry_free ( opc.se );
- }
+ }
+ if ( sr->s_e ) {
+ if ( !dec_mutexint( sr->s_e->e_private )) {
+ sr->s_e->e_private = NULL;
+ entry_free ( sr->s_e );
}
}
@@ -1303,7 +1303,15 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit )
op2.o_hdr = &oh;
op2.o_extra = op->o_extra;
op2.o_callback = NULL;
- rc = test_filter( &op2, e, ss->s_op->ors_filter );
+ ldap_pvt_thread_mutex_lock( &ss->s_mutex );
+ if (ss->s_flags & PS_FIX_FILTER) {
+ /* Skip the AND/GE clause that we stuck on in front. We
+ would lose deletes/mods that happen during the refresh
+ phase otherwise (ITS#6555) */
+ op2.ors_filter = ss->s_op->ors_filter->f_and->f_next;
+ }
+ ldap_pvt_thread_mutex_unlock( &ss->s_mutex );
+ rc = test_filter( &op2, e, op2.ors_filter );
}
Debug( LDAP_DEBUG_TRACE, "syncprov_matchops: sid %03x fscope %d rc %d\n",
@@ -1415,6 +1423,7 @@ syncprov_checkpoint( Operation *op, SlapReply *rs, slap_overinst *on )
SlapReply rsm = { 0 };
slap_callback cb = {0};
BackendDB be;
+ BackendInfo *bi;
#ifdef CHECK_CSN
Syntax *syn = slap_schema.si_ad_contextCSN->ad_type->sat_syntax;
@@ -1444,6 +1453,7 @@ syncprov_checkpoint( Operation *op, SlapReply *rs, slap_overinst *on )
}
opm.o_req_dn = si->si_contextdn;
opm.o_req_ndn = si->si_contextdn;
+ bi = opm.o_bd->bd_info;
opm.o_bd->bd_info = on->on_info->oi_orig;
opm.o_managedsait = SLAP_CONTROL_NONCRITICAL;
opm.o_no_schema_check = 1;
@@ -1461,6 +1471,7 @@ syncprov_checkpoint( Operation *op, SlapReply *rs, slap_overinst *on )
if ( e == opm.ora_e )
be_entry_release_w( &opm, opm.ora_e );
}
+ opm.o_bd->bd_info = bi;
if ( mod.sml_next != NULL ) {
slap_mods_free( mod.sml_next, 1 );
@@ -1537,7 +1548,7 @@ syncprov_playlog( Operation *op, SlapReply *rs, sessionlog *sl,
slap_overinst *on = (slap_overinst *)op->o_bd->bd_info;
slog_entry *se;
int i, j, ndel, num, nmods, mmods;
- char cbuf[LDAP_LUTIL_CSNSTR_BUFSIZE];
+ char cbuf[LDAP_PVT_CSNSTR_BUFSIZE];
BerVarray uuids;
struct berval delcsn[2];
@@ -1712,7 +1723,7 @@ syncprov_op_response( Operation *op, SlapReply *rs )
if ( rs->sr_err == LDAP_SUCCESS )
{
struct berval maxcsn;
- char cbuf[LDAP_LUTIL_CSNSTR_BUFSIZE];
+ char cbuf[LDAP_PVT_CSNSTR_BUFSIZE];
int do_check = 0, have_psearches, foundit, csn_changed = 0;
ldap_pvt_thread_mutex_lock( &si->si_resp_mutex );
@@ -2862,7 +2873,7 @@ sp_cf_gen(ConfigArgs *c)
}
sl = si->si_logs;
if ( !sl ) {
- sl = ch_malloc( sizeof( sessionlog ) + LDAP_LUTIL_CSNSTR_BUFSIZE );
+ sl = ch_malloc( sizeof( sessionlog ) + LDAP_PVT_CSNSTR_BUFSIZE );
sl->sl_mincsn.bv_val = (char *)(sl+1);
sl->sl_mincsn.bv_len = 0;
sl->sl_num = 0;
@@ -2968,7 +2979,7 @@ syncprov_db_open(
/* Didn't find a contextCSN, should we generate one? */
if ( !si->si_ctxcsn ) {
- char csnbuf[ LDAP_LUTIL_CSNSTR_BUFSIZE ];
+ char csnbuf[ LDAP_PVT_CSNSTR_BUFSIZE ];
struct berval csn;
if ( SLAP_SYNC_SHADOW( op->o_bd )) {
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/translucent.c b/external/bsd/openldap/dist/servers/slapd/overlays/translucent.c
index 0a1b0cf5b27d..258381cbcc97 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/translucent.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/translucent.c
@@ -1,10 +1,10 @@
-/* $NetBSD: translucent.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: translucent.c,v 1.1.1.3 2010/12/12 15:23:46 adam Exp $ */
/* translucent.c - translucent proxy module */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/translucent.c,v 1.13.2.33 2009/12/02 19:32:38 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/translucent.c,v 1.13.2.35 2010/04/15 20:02:30 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* Portions Copyright 2005 Symas Corporation.
* All rights reserved.
*
@@ -208,6 +208,7 @@ translucent_cf_gen( ConfigArgs *c )
ch_free( (*an)[i].an_name.bv_val );
do {
(*an)[i] = (*an)[i+1];
+ i++;
} while ( !BER_BVISNULL( &(*an)[i].an_name ));
}
return 0;
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/unique.c b/external/bsd/openldap/dist/servers/slapd/overlays/unique.c
index 3a2fca646eb4..38e540bee186 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/unique.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/unique.c
@@ -1,10 +1,10 @@
-/* $NetBSD: unique.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: unique.c,v 1.1.1.4 2010/12/12 15:23:47 adam Exp $ */
/* unique.c - attribute uniqueness module */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/unique.c,v 1.20.2.17 2009/12/02 16:52:10 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/unique.c,v 1.20.2.18 2010/04/13 20:23:47 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* Portions Copyright 2004,2006-2007 Symas Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/overlays/valsort.c b/external/bsd/openldap/dist/servers/slapd/overlays/valsort.c
index c6fee223f656..a3519bf774ee 100644
--- a/external/bsd/openldap/dist/servers/slapd/overlays/valsort.c
+++ b/external/bsd/openldap/dist/servers/slapd/overlays/valsort.c
@@ -1,10 +1,10 @@
-/* $NetBSD: valsort.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: valsort.c,v 1.1.1.3 2010/12/12 15:23:47 adam Exp $ */
/* valsort.c - sort attribute values */
-/* OpenLDAP: pkg/ldap/servers/slapd/overlays/valsort.c,v 1.17.2.6 2009/01/22 00:01:13 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/overlays/valsort.c,v 1.17.2.9 2010/06/10 17:37:40 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* Portions copyright 2005 Symas Corporation.
* All rights reserved.
*
@@ -299,9 +299,19 @@ valsort_response( Operation *op, SlapReply *rs )
a = attr_find( rs->sr_entry->e_attrs, vi->vi_ad );
if ( !a ) continue;
- if (( rs->sr_flags & ( REP_ENTRY_MODIFIABLE|REP_ENTRY_MUSTBEFREED )) !=
- ( REP_ENTRY_MODIFIABLE|REP_ENTRY_MUSTBEFREED )) {
- rs->sr_entry = entry_dup( rs->sr_entry );
+ if (( rs->sr_flags & ( REP_ENTRY_MODIFIABLE|REP_ENTRY_MUSTBEFREED ) ) !=
+ ( REP_ENTRY_MODIFIABLE|REP_ENTRY_MUSTBEFREED ) )
+ {
+ Entry *e;
+
+ e = entry_dup( rs->sr_entry );
+ if ( rs->sr_flags & REP_ENTRY_MUSTRELEASE ) {
+ overlay_entry_release_ov( op, rs->sr_entry, 0, on );
+ rs->sr_flags &= ~REP_ENTRY_MUSTRELEASE;
+ } else if ( rs->sr_flags & REP_ENTRY_MUSTBEFREED ) {
+ entry_free( rs->sr_entry );
+ }
+ rs->sr_entry = e;
rs->sr_flags |= REP_ENTRY_MODIFIABLE|REP_ENTRY_MUSTBEFREED;
a = attr_find( rs->sr_entry->e_attrs, vi->vi_ad );
}
@@ -560,7 +570,7 @@ int valsort_initialize( void )
SLAP_CTRL_SEARCH | SLAP_CTRL_HIDE, NULL, valsort_parseCtrl,
&valsort_cid );
if ( rc != LDAP_SUCCESS ) {
- fprintf( stderr, "Failed to register control %d\n", rc );
+ Debug( LDAP_DEBUG_ANY, "Failed to register control %d\n", rc, 0, 0 );
return rc;
}
diff --git a/external/bsd/openldap/dist/servers/slapd/passwd.c b/external/bsd/openldap/dist/servers/slapd/passwd.c
index 7239d3aae8bd..0ad9d86d2aaa 100644
--- a/external/bsd/openldap/dist/servers/slapd/passwd.c
+++ b/external/bsd/openldap/dist/servers/slapd/passwd.c
@@ -1,10 +1,10 @@
-/* $NetBSD: passwd.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: passwd.c,v 1.1.1.3 2010/12/12 15:22:35 adam Exp $ */
/* passwd.c - password extended operation routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/passwd.c,v 1.128.2.13 2009/08/25 21:36:51 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/passwd.c,v 1.128.2.14 2010/04/13 20:23:17 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/phonetic.c b/external/bsd/openldap/dist/servers/slapd/phonetic.c
index d1deac002a30..7c4e4daa579b 100644
--- a/external/bsd/openldap/dist/servers/slapd/phonetic.c
+++ b/external/bsd/openldap/dist/servers/slapd/phonetic.c
@@ -1,10 +1,10 @@
-/* $NetBSD: phonetic.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: phonetic.c,v 1.1.1.3 2010/12/12 15:22:35 adam Exp $ */
/* phonetic.c - routines to do phonetic matching */
-/* OpenLDAP: pkg/ldap/servers/slapd/phonetic.c,v 1.22.2.4 2009/01/22 00:01:02 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/phonetic.c,v 1.22.2.5 2010/04/13 20:23:17 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/proto-slap.h b/external/bsd/openldap/dist/servers/slapd/proto-slap.h
index 9261937ab4ef..d44a698dd235 100644
--- a/external/bsd/openldap/dist/servers/slapd/proto-slap.h
+++ b/external/bsd/openldap/dist/servers/slapd/proto-slap.h
@@ -1,9 +1,9 @@
-/* $NetBSD: proto-slap.h,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: proto-slap.h,v 1.1.1.4 2010/12/12 15:22:36 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/proto-slap.h,v 1.670.2.55 2009/11/18 01:16:16 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/proto-slap.h,v 1.670.2.60 2010/04/19 16:53:02 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -430,6 +430,8 @@ LDAP_SLAPD_F (int) backend_operational LDAP_P((
SlapReply *rs
));
+LDAP_SLAPD_F (ID) backend_tool_entry_first LDAP_P(( BackendDB *be ));
+
LDAP_SLAPD_V(BackendInfo) slap_binfo[];
/*
@@ -985,6 +987,8 @@ LDAP_SLAPD_F (void) entry_partsize LDAP_P(( Entry *e, ber_len_t *len,
int *nattrs, int *nvals, int norm ));
LDAP_SLAPD_F (int) entry_header LDAP_P(( EntryHeader *eh ));
+LDAP_SLAPD_F (int) entry_decode_dn LDAP_P((
+ EntryHeader *eh, struct berval *dn, struct berval *ndn ));
#ifdef SLAP_ZONE_ALLOC
LDAP_SLAPD_F (int) entry_decode LDAP_P((
EntryHeader *eh, Entry **e, void *ctx ));
@@ -1514,6 +1518,10 @@ LDAP_SLAPD_F (int) get_alias_dn LDAP_P((
/*
* result.c
*/
+LDAP_SLAPD_F (void) rs_replace_entry LDAP_P(( Operation *op,
+ SlapReply *rs, slap_overinst *on, Entry *e ));
+LDAP_SLAPD_F (int) rs_ensure_entry_modifiable LDAP_P(( Operation *op,
+ SlapReply *rs, slap_overinst *on ));
LDAP_SLAPD_F (void) slap_send_ldap_result LDAP_P(( Operation *op, SlapReply *rs ));
LDAP_SLAPD_F (void) send_ldap_sasl LDAP_P(( Operation *op, SlapReply *rs ));
LDAP_SLAPD_F (void) send_ldap_disconnect LDAP_P(( Operation *op, SlapReply *rs ));
@@ -1980,7 +1988,10 @@ LDAP_SLAPD_V (int) slap_tool_thread_max;
LDAP_SLAPD_V (ldap_pvt_thread_mutex_t) entry2str_mutex;
-LDAP_SLAPD_V (ldap_pvt_thread_mutex_t) gmtime_mutex;
+#ifndef LDAP_DEVEL
+ /* to be removed with 2.5 */
+#define gmtime_mutex ldap_int_gmtime_mutex
+#endif /* ! LDAP_DEVEL */
LDAP_SLAPD_V (ldap_pvt_thread_mutex_t) ad_undef_mutex;
LDAP_SLAPD_V (ldap_pvt_thread_mutex_t) oc_undef_mutex;
diff --git a/external/bsd/openldap/dist/servers/slapd/referral.c b/external/bsd/openldap/dist/servers/slapd/referral.c
index 67e267eda433..1490c5a92b3a 100644
--- a/external/bsd/openldap/dist/servers/slapd/referral.c
+++ b/external/bsd/openldap/dist/servers/slapd/referral.c
@@ -1,10 +1,10 @@
-/* $NetBSD: referral.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: referral.c,v 1.1.1.3 2010/12/12 15:22:37 adam Exp $ */
/* referral.c - muck with referrals */
-/* OpenLDAP: pkg/ldap/servers/slapd/referral.c,v 1.28.2.6 2009/01/22 00:01:02 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/referral.c,v 1.28.2.7 2010/04/13 20:23:18 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/result.c b/external/bsd/openldap/dist/servers/slapd/result.c
index bf02f707c1b4..2a0e23971748 100644
--- a/external/bsd/openldap/dist/servers/slapd/result.c
+++ b/external/bsd/openldap/dist/servers/slapd/result.c
@@ -1,10 +1,10 @@
-/* $NetBSD: result.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: result.c,v 1.1.1.4 2010/12/12 15:22:38 adam Exp $ */
/* result.c - routines to send ldap results, errors, and referrals */
-/* OpenLDAP: pkg/ldap/servers/slapd/result.c,v 1.289.2.31 2009/11/22 16:29:34 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/result.c,v 1.289.2.33 2010/04/14 17:28:47 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -134,6 +134,50 @@ slap_req2res( ber_tag_t tag )
return tag;
}
+#ifdef RS_ASSERT
+#elif 0 && defined LDAP_DEVEL /* FIXME: this should not crash. ITS#5340. */
+#define RS_ASSERT assert
+#else
+#define RS_ASSERT(cond) ((void) 0)
+#endif
+
+/* Set rs->sr_entry after obyeing and clearing sr_flags & REP_ENTRY_MASK. */
+void
+rs_replace_entry( Operation *op, SlapReply *rs, slap_overinst *on, Entry *e )
+{
+ slap_mask_t e_flags = rs->sr_flags & REP_ENTRY_MUSTFLUSH;
+
+ if ( e_flags && rs->sr_entry != NULL ) {
+ RS_ASSERT( e_flags != REP_ENTRY_MUSTFLUSH );
+ if ( !(e_flags & REP_ENTRY_MUSTRELEASE) ) {
+ entry_free( rs->sr_entry );
+ } else if ( on != NULL ) {
+ overlay_entry_release_ov( op, rs->sr_entry, 0, on );
+ } else {
+ be_entry_release_rw( op, rs->sr_entry, 0 );
+ }
+ }
+ rs->sr_flags &= ~REP_ENTRY_MASK;
+ rs->sr_entry = e;
+}
+
+/*
+ * Ensure rs->sr_entry is modifiable, by duplicating it if necessary.
+ * Obey sr_flags. Set REP_ENTRY_.
+ * Return nonzero if rs->sr_entry was replaced.
+ */
+int
+rs_ensure_entry_modifiable( Operation *op, SlapReply *rs, slap_overinst *on )
+{
+ if ( rs->sr_flags & REP_ENTRY_MODIFIABLE ) {
+ RS_ASSERT((rs->sr_flags & REP_ENTRY_MUSTFLUSH)==REP_ENTRY_MUSTBEFREED);
+ return 0;
+ }
+ rs_replace_entry( op, rs, on, entry_dup( rs->sr_entry ));
+ rs->sr_flags |= REP_ENTRY_MODIFIABLE | REP_ENTRY_MUSTBEFREED;
+ return 1;
+}
+
static long send_ldap_ber(
Operation *op,
BerElement *ber )
diff --git a/external/bsd/openldap/dist/servers/slapd/root_dse.c b/external/bsd/openldap/dist/servers/slapd/root_dse.c
index 967a7d615206..13f5f9a39eff 100644
--- a/external/bsd/openldap/dist/servers/slapd/root_dse.c
+++ b/external/bsd/openldap/dist/servers/slapd/root_dse.c
@@ -1,10 +1,10 @@
-/* $NetBSD: root_dse.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: root_dse.c,v 1.1.1.3 2010/12/12 15:22:38 adam Exp $ */
/* root_dse.c - Provides the Root DSA-Specific Entry */
-/* OpenLDAP: pkg/ldap/servers/slapd/root_dse.c,v 1.113.2.11 2009/07/08 00:28:21 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/root_dse.c,v 1.113.2.12 2010/04/13 20:23:18 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/sasl.c b/external/bsd/openldap/dist/servers/slapd/sasl.c
index 0010fca99f09..25826be18be6 100644
--- a/external/bsd/openldap/dist/servers/slapd/sasl.c
+++ b/external/bsd/openldap/dist/servers/slapd/sasl.c
@@ -1,9 +1,9 @@
-/* $NetBSD: sasl.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sasl.c,v 1.1.1.3 2010/12/12 15:22:39 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/sasl.c,v 1.239.2.20 2009/12/02 16:57:37 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/sasl.c,v 1.239.2.23 2010/04/15 18:41:32 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -260,7 +260,11 @@ sasl_ap_lookup( Operation *op, SlapReply *rs )
return LDAP_SUCCESS;
}
+#if SASL_VERSION_FULL >= 0x020118
+static int
+#else
static void
+#endif
slap_auxprop_lookup(
void *glob_context,
sasl_server_params_t *sparams,
@@ -273,6 +277,7 @@ slap_auxprop_lookup(
int i, doit = 0;
Connection *conn = NULL;
lookup_info sl;
+ int rc = LDAP_SUCCESS;
sl.list = sparams->utils->prop_get( sparams->propctx );
sl.sparams = sparams;
@@ -401,13 +406,17 @@ slap_auxprop_lookup(
op->ors_slimit = 1;
op->ors_filter = &generic_filter;
op->ors_filterstr = generic_filterstr;
+ op->o_authz = conn->c_authz;
/* FIXME: we want all attributes, right? */
op->ors_attrs = NULL;
- op->o_bd->be_search( op, &rs );
+ rc = op->o_bd->be_search( op, &rs );
}
}
}
+#if SASL_VERSION_FULL >= 0x020118
+ return rc != LDAP_SUCCESS ? SASL_FAIL : SASL_OK;
+#endif
}
#if SASL_VERSION_FULL >= 0x020110
diff --git a/external/bsd/openldap/dist/servers/slapd/saslauthz.c b/external/bsd/openldap/dist/servers/slapd/saslauthz.c
index 58674d6377cb..1e62353f0950 100644
--- a/external/bsd/openldap/dist/servers/slapd/saslauthz.c
+++ b/external/bsd/openldap/dist/servers/slapd/saslauthz.c
@@ -1,9 +1,9 @@
-/* $NetBSD: saslauthz.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: saslauthz.c,v 1.1.1.3 2010/12/12 15:22:40 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/saslauthz.c,v 1.163.2.11 2009/01/22 00:01:03 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/saslauthz.c,v 1.163.2.12 2010/04/13 20:23:18 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 2000 Mark Adamson, Carnegie Mellon.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/schema.c b/external/bsd/openldap/dist/servers/slapd/schema.c
index fd8cda7a248d..62db12a6028f 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema.c
+++ b/external/bsd/openldap/dist/servers/slapd/schema.c
@@ -1,10 +1,10 @@
-/* $NetBSD: schema.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: schema.c,v 1.1.1.3 2010/12/12 15:22:40 adam Exp $ */
/* schema.c - routines to manage schema definitions */
-/* OpenLDAP: pkg/ldap/servers/slapd/schema.c,v 1.105.2.5 2009/01/22 00:01:03 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/schema.c,v 1.105.2.6 2010/04/13 20:23:18 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/README b/external/bsd/openldap/dist/servers/slapd/schema/README
index c97b4dbd3061..4ebbd8d093bd 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/README
+++ b/external/bsd/openldap/dist/servers/slapd/schema/README
@@ -34,7 +34,7 @@ convert schema files in general.
This notice applies to all files in this directory.
-Copyright 1998-2009 The OpenLDAP Foundation, Redwood City, California, USA
+Copyright 1998-2010 The OpenLDAP Foundation, Redwood City, California, USA
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -77,4 +77,4 @@ PURPOSE.
---
-OpenLDAP: pkg/ldap/servers/slapd/schema/README,v 1.29.2.4 2009/01/22 00:01:13 kurt Exp
+OpenLDAP: pkg/ldap/servers/slapd/schema/README,v 1.29.2.5 2010/04/13 20:23:47 kurt Exp
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/collective.schema b/external/bsd/openldap/dist/servers/slapd/schema/collective.schema
index cbb7f27d32d7..d0177742df9e 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/collective.schema
+++ b/external/bsd/openldap/dist/servers/slapd/schema/collective.schema
@@ -1,8 +1,8 @@
# collective.schema -- Collective attribute schema
-# OpenLDAP: pkg/ldap/servers/slapd/schema/collective.schema,v 1.12.2.4 2009/01/22 00:01:13 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/collective.schema,v 1.12.2.5 2010/04/13 20:23:47 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/corba.schema b/external/bsd/openldap/dist/servers/slapd/schema/corba.schema
index 73cf250fc461..4a015c3e6723 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/corba.schema
+++ b/external/bsd/openldap/dist/servers/slapd/schema/corba.schema
@@ -1,10 +1,10 @@
# corba.schema -- Corba Object Schema
# depends upon core.schema
-# OpenLDAP: pkg/ldap/servers/slapd/schema/corba.schema,v 1.7.2.4 2009/01/22 00:01:13 kurt Exp
-# OpenLDAP: pkg/ldap/servers/slapd/schema/corba.schema,v 1.7.2.4 2009/01/22 00:01:13 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/corba.schema,v 1.7.2.5 2010/04/13 20:23:47 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/corba.schema,v 1.7.2.5 2010/04/13 20:23:47 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/core.ldif b/external/bsd/openldap/dist/servers/slapd/schema/core.ldif
index 1cc0e25f7fee..572e1c0109b3 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/core.ldif
+++ b/external/bsd/openldap/dist/servers/slapd/schema/core.ldif
@@ -1,8 +1,8 @@
# OpenLDAP Core schema
-# OpenLDAP: pkg/ldap/servers/slapd/schema/core.ldif,v 1.2.2.6 2009/01/22 00:01:13 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/core.ldif,v 1.2.2.7 2010/04/13 20:23:47 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/core.schema b/external/bsd/openldap/dist/servers/slapd/schema/core.schema
index af8614513b2a..f0fcd161709a 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/core.schema
+++ b/external/bsd/openldap/dist/servers/slapd/schema/core.schema
@@ -1,8 +1,8 @@
# OpenLDAP Core schema
-# OpenLDAP: pkg/ldap/servers/slapd/schema/core.schema,v 1.88.2.7 2009/01/22 00:01:13 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/core.schema,v 1.88.2.8 2010/04/13 20:23:48 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/cosine.ldif b/external/bsd/openldap/dist/servers/slapd/schema/cosine.ldif
index 81f0702300c7..75d1ae8836f6 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/cosine.ldif
+++ b/external/bsd/openldap/dist/servers/slapd/schema/cosine.ldif
@@ -1,8 +1,8 @@
# RFC1274: Cosine and Internet X.500 schema
-# OpenLDAP: pkg/ldap/servers/slapd/schema/cosine.ldif,v 1.1.2.4 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/cosine.ldif,v 1.1.2.5 2010/04/13 20:23:48 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/cosine.schema b/external/bsd/openldap/dist/servers/slapd/schema/cosine.schema
index 3d2ef39732ce..7036d2925b15 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/cosine.schema
+++ b/external/bsd/openldap/dist/servers/slapd/schema/cosine.schema
@@ -1,8 +1,8 @@
# RFC1274: Cosine and Internet X.500 schema
-# OpenLDAP: pkg/ldap/servers/slapd/schema/cosine.schema,v 1.23.2.4 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/cosine.schema,v 1.23.2.5 2010/04/13 20:23:48 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/duaconf.schema b/external/bsd/openldap/dist/servers/slapd/schema/duaconf.schema
index d5745d30a1b0..e1dc1e31d52a 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/duaconf.schema
+++ b/external/bsd/openldap/dist/servers/slapd/schema/duaconf.schema
@@ -1,7 +1,7 @@
-# OpenLDAP: pkg/ldap/servers/slapd/schema/duaconf.schema,v 1.5.2.4 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/duaconf.schema,v 1.5.2.5 2010/04/13 20:23:48 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/dyngroup.schema b/external/bsd/openldap/dist/servers/slapd/schema/dyngroup.schema
index 86f33a437329..666a14ccd403 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/dyngroup.schema
+++ b/external/bsd/openldap/dist/servers/slapd/schema/dyngroup.schema
@@ -1,8 +1,8 @@
# dyngroup.schema -- Dynamic Group schema
-# OpenLDAP: pkg/ldap/servers/slapd/schema/dyngroup.schema,v 1.6.2.5 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/dyngroup.schema,v 1.6.2.6 2010/04/13 20:23:48 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/inetorgperson.ldif b/external/bsd/openldap/dist/servers/slapd/schema/inetorgperson.ldif
index e84357143dea..21acb161211d 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/inetorgperson.ldif
+++ b/external/bsd/openldap/dist/servers/slapd/schema/inetorgperson.ldif
@@ -1,8 +1,8 @@
# InetOrgPerson (RFC2798)
-# OpenLDAP: pkg/ldap/servers/slapd/schema/inetorgperson.ldif,v 1.1.2.4 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/inetorgperson.ldif,v 1.1.2.5 2010/04/13 20:23:48 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/inetorgperson.schema b/external/bsd/openldap/dist/servers/slapd/schema/inetorgperson.schema
index 1c60b4cf94ba..e28fdd32dd24 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/inetorgperson.schema
+++ b/external/bsd/openldap/dist/servers/slapd/schema/inetorgperson.schema
@@ -1,8 +1,8 @@
# inetorgperson.schema -- InetOrgPerson (RFC2798)
-# OpenLDAP: pkg/ldap/servers/slapd/schema/inetorgperson.schema,v 1.18.2.4 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/inetorgperson.schema,v 1.18.2.5 2010/04/13 20:23:48 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/java.schema b/external/bsd/openldap/dist/servers/slapd/schema/java.schema
index c906c7297e29..3dcc9a26999a 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/java.schema
+++ b/external/bsd/openldap/dist/servers/slapd/schema/java.schema
@@ -1,8 +1,8 @@
# java.schema -- Java Object Schema
-# OpenLDAP: pkg/ldap/servers/slapd/schema/java.schema,v 1.7.2.4 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/java.schema,v 1.7.2.5 2010/04/13 20:23:48 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/misc.schema b/external/bsd/openldap/dist/servers/slapd/schema/misc.schema
index a6c4feac422f..701f16068dbd 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/misc.schema
+++ b/external/bsd/openldap/dist/servers/slapd/schema/misc.schema
@@ -1,8 +1,8 @@
# misc.schema -- assorted schema definitions
-# OpenLDAP: pkg/ldap/servers/slapd/schema/misc.schema,v 1.30.2.4 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/misc.schema,v 1.30.2.5 2010/04/13 20:23:48 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/nis.ldif b/external/bsd/openldap/dist/servers/slapd/schema/nis.ldif
index b9ae5efd9d6b..67c58b7d38f3 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/nis.ldif
+++ b/external/bsd/openldap/dist/servers/slapd/schema/nis.ldif
@@ -1,8 +1,8 @@
# NIS (RFC2307)
-# OpenLDAP: pkg/ldap/servers/slapd/schema/nis.ldif,v 1.1.2.4 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/nis.ldif,v 1.1.2.5 2010/04/13 20:23:48 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/nis.schema b/external/bsd/openldap/dist/servers/slapd/schema/nis.schema
index d690a96f0461..03e4fe697264 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/nis.schema
+++ b/external/bsd/openldap/dist/servers/slapd/schema/nis.schema
@@ -1,7 +1,7 @@
-# OpenLDAP: pkg/ldap/servers/slapd/schema/nis.schema,v 1.15.2.4 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/nis.schema,v 1.15.2.5 2010/04/13 20:23:48 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/openldap.ldif b/external/bsd/openldap/dist/servers/slapd/schema/openldap.ldif
index 3aacb8fd4b88..9da94b6047dd 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/openldap.ldif
+++ b/external/bsd/openldap/dist/servers/slapd/schema/openldap.ldif
@@ -1,7 +1,7 @@
-# OpenLDAP: pkg/ldap/servers/slapd/schema/openldap.ldif,v 1.2.2.5 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/openldap.ldif,v 1.2.2.6 2010/04/13 20:23:49 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/openldap.schema b/external/bsd/openldap/dist/servers/slapd/schema/openldap.schema
index 84a4e00ab07f..34064c459f45 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/openldap.schema
+++ b/external/bsd/openldap/dist/servers/slapd/schema/openldap.schema
@@ -1,7 +1,7 @@
-# OpenLDAP: pkg/ldap/servers/slapd/schema/openldap.schema,v 1.24.2.5 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/openldap.schema,v 1.24.2.6 2010/04/13 20:23:49 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/pmi.schema b/external/bsd/openldap/dist/servers/slapd/schema/pmi.schema
index 4a102d791deb..4dc81983e5be 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/pmi.schema
+++ b/external/bsd/openldap/dist/servers/slapd/schema/pmi.schema
@@ -1,8 +1,8 @@
# OpenLDAP X.509 PMI schema
-# OpenLDAP: pkg/ldap/servers/slapd/schema/pmi.schema,v 1.1.2.2 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/pmi.schema,v 1.1.2.3 2010/04/13 20:23:49 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema/ppolicy.schema b/external/bsd/openldap/dist/servers/slapd/schema/ppolicy.schema
index 4e3f2a1a8369..7462c1ee97d8 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema/ppolicy.schema
+++ b/external/bsd/openldap/dist/servers/slapd/schema/ppolicy.schema
@@ -1,7 +1,7 @@
-# OpenLDAP: pkg/ldap/servers/slapd/schema/ppolicy.schema,v 1.7.2.4 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/schema/ppolicy.schema,v 1.7.2.5 2010/04/13 20:23:49 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2004-2009 The OpenLDAP Foundation.
+## Copyright 2004-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema_check.c b/external/bsd/openldap/dist/servers/slapd/schema_check.c
index b63bd881d3c7..214407502077 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema_check.c
+++ b/external/bsd/openldap/dist/servers/slapd/schema_check.c
@@ -1,10 +1,10 @@
-/* $NetBSD: schema_check.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: schema_check.c,v 1.1.1.3 2010/12/12 15:22:40 adam Exp $ */
/* schema_check.c - routines to enforce schema definitions */
-/* OpenLDAP: pkg/ldap/servers/slapd/schema_check.c,v 1.103.2.11 2009/05/06 19:06:16 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/schema_check.c,v 1.103.2.12 2010/04/13 20:23:19 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schema_init.c b/external/bsd/openldap/dist/servers/slapd/schema_init.c
index e7c2bae689bf..6e7efd853043 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema_init.c
+++ b/external/bsd/openldap/dist/servers/slapd/schema_init.c
@@ -1,10 +1,10 @@
-/* $NetBSD: schema_init.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: schema_init.c,v 1.1.1.4 2010/12/12 15:22:44 adam Exp $ */
/* schema_init.c - init builtin schema */
-/* OpenLDAP: pkg/ldap/servers/slapd/schema_init.c,v 1.386.2.37 2009/11/17 17:18:11 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/schema_init.c,v 1.386.2.40 2010/06/10 17:48:07 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -328,9 +328,12 @@ certificateListValidate( Syntax *syntax, struct berval *in )
/* revokedCertificates - Sequence of Sequence, Optional */
if ( tag == LBER_SEQUENCE ) {
ber_len_t seqlen;
- if ( ber_peek_tag( ber, &seqlen ) == LBER_SEQUENCE ) {
- /* Should NOT be empty */
- ber_skip_data( ber, len );
+ ber_tag_t stag;
+ stag = ber_peek_tag( ber, &seqlen );
+ if ( stag == LBER_SEQUENCE || !len ) {
+ /* RFC5280 requires non-empty, but X.509(2005) allows empty. */
+ if ( len )
+ ber_skip_data( ber, len );
tag = ber_skip_tag( ber, &len );
}
}
@@ -1734,8 +1737,9 @@ UTF8StringNormalize(
? LDAP_UTF8_APPROX : 0;
val = UTF8bvnormalize( val, &tmp, flags, ctx );
+ /* out of memory or syntax error, the former is unlikely */
if( val == NULL ) {
- return LDAP_OTHER;
+ return LDAP_INVALID_SYNTAX;
}
/* collapse spaces (in place) */
diff --git a/external/bsd/openldap/dist/servers/slapd/schema_prep.c b/external/bsd/openldap/dist/servers/slapd/schema_prep.c
index 58aa044e0855..6912eb70e6c0 100644
--- a/external/bsd/openldap/dist/servers/slapd/schema_prep.c
+++ b/external/bsd/openldap/dist/servers/slapd/schema_prep.c
@@ -1,10 +1,10 @@
-/* $NetBSD: schema_prep.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: schema_prep.c,v 1.1.1.4 2010/12/12 15:22:45 adam Exp $ */
/* schema_prep.c - load builtin schema */
-/* OpenLDAP: pkg/ldap/servers/slapd/schema_prep.c,v 1.169.2.13 2009/04/27 22:50:10 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/schema_prep.c,v 1.169.2.14 2010/04/13 20:23:19 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/schemaparse.c b/external/bsd/openldap/dist/servers/slapd/schemaparse.c
index 044da03c946d..355fb03fae43 100644
--- a/external/bsd/openldap/dist/servers/slapd/schemaparse.c
+++ b/external/bsd/openldap/dist/servers/slapd/schemaparse.c
@@ -1,10 +1,10 @@
-/* $NetBSD: schemaparse.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: schemaparse.c,v 1.1.1.3 2010/12/12 15:22:45 adam Exp $ */
/* schemaparse.c - routines to parse config file objectclass definitions */
-/* OpenLDAP: pkg/ldap/servers/slapd/schemaparse.c,v 1.80.2.7 2009/01/22 00:01:03 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/schemaparse.c,v 1.80.2.8 2010/04/13 20:23:19 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/search.c b/external/bsd/openldap/dist/servers/slapd/search.c
index aeeba40eab89..1f55b21ef5f6 100644
--- a/external/bsd/openldap/dist/servers/slapd/search.c
+++ b/external/bsd/openldap/dist/servers/slapd/search.c
@@ -1,9 +1,9 @@
-/* $NetBSD: search.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: search.c,v 1.1.1.3 2010/12/12 15:22:45 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/search.c,v 1.181.2.10 2009/11/17 16:28:25 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/search.c,v 1.181.2.11 2010/04/13 20:23:19 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/sets.c b/external/bsd/openldap/dist/servers/slapd/sets.c
index 37a7451c83a9..30d05f768671 100644
--- a/external/bsd/openldap/dist/servers/slapd/sets.c
+++ b/external/bsd/openldap/dist/servers/slapd/sets.c
@@ -1,9 +1,9 @@
-/* $NetBSD: sets.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sets.c,v 1.1.1.4 2010/12/12 15:22:45 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/sets.c,v 1.28.2.13 2009/01/22 00:01:03 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/sets.c,v 1.28.2.14 2010/04/13 20:23:19 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2000-2009 The OpenLDAP Foundation.
+ * Copyright 2000-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/sets.h b/external/bsd/openldap/dist/servers/slapd/sets.h
index d74bd429fc09..db180302cb05 100644
--- a/external/bsd/openldap/dist/servers/slapd/sets.h
+++ b/external/bsd/openldap/dist/servers/slapd/sets.h
@@ -1,9 +1,9 @@
-/* $NetBSD: sets.h,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sets.h,v 1.1.1.4 2010/12/12 15:22:45 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/sets.h,v 1.21.2.5 2009/01/22 00:01:03 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/sets.h,v 1.21.2.6 2010/04/13 20:23:20 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/shell-backends/Makefile.in b/external/bsd/openldap/dist/servers/slapd/shell-backends/Makefile.in
index af0b755e2faa..cb0981ff3d73 100644
--- a/external/bsd/openldap/dist/servers/slapd/shell-backends/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/shell-backends/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for shell-backends
-# OpenLDAP: pkg/ldap/servers/slapd/shell-backends/Makefile.in,v 1.14.2.4 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/shell-backends/Makefile.in,v 1.14.2.5 2010/04/13 20:23:49 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/shell-backends/passwd-shell.c b/external/bsd/openldap/dist/servers/slapd/shell-backends/passwd-shell.c
index 48cafe83a494..16fa23523ae4 100644
--- a/external/bsd/openldap/dist/servers/slapd/shell-backends/passwd-shell.c
+++ b/external/bsd/openldap/dist/servers/slapd/shell-backends/passwd-shell.c
@@ -1,10 +1,10 @@
-/* $NetBSD: passwd-shell.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: passwd-shell.c,v 1.1.1.3 2010/12/12 15:23:50 adam Exp $ */
/* passwd-shell.c - passwd(5) shell-based backend for slapd(8) */
-/* OpenLDAP: pkg/ldap/servers/slapd/shell-backends/passwd-shell.c,v 1.14.2.5 2009/01/22 00:01:14 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/shell-backends/passwd-shell.c,v 1.14.2.6 2010/04/13 20:23:49 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/shell-backends/shellutil.c b/external/bsd/openldap/dist/servers/slapd/shell-backends/shellutil.c
index 599b14e0b5b6..a066656b47ca 100644
--- a/external/bsd/openldap/dist/servers/slapd/shell-backends/shellutil.c
+++ b/external/bsd/openldap/dist/servers/slapd/shell-backends/shellutil.c
@@ -1,10 +1,10 @@
-/* $NetBSD: shellutil.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: shellutil.c,v 1.1.1.3 2010/12/12 15:23:50 adam Exp $ */
/* shellutil.c - common routines useful when building shell-based backends */
-/* OpenLDAP: pkg/ldap/servers/slapd/shell-backends/shellutil.c,v 1.17.2.4 2009/01/22 00:01:14 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/shell-backends/shellutil.c,v 1.17.2.5 2010/04/13 20:23:49 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/shell-backends/shellutil.h b/external/bsd/openldap/dist/servers/slapd/shell-backends/shellutil.h
index 3be59f353df0..39d96f26618b 100644
--- a/external/bsd/openldap/dist/servers/slapd/shell-backends/shellutil.h
+++ b/external/bsd/openldap/dist/servers/slapd/shell-backends/shellutil.h
@@ -1,10 +1,10 @@
-/* $NetBSD: shellutil.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: shellutil.h,v 1.1.1.3 2010/12/12 15:23:51 adam Exp $ */
/* shellutil.h */
-/* OpenLDAP: pkg/ldap/servers/slapd/shell-backends/shellutil.h,v 1.11.2.4 2009/01/22 00:01:14 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/shell-backends/shellutil.h,v 1.11.2.5 2010/04/13 20:23:49 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/sl_malloc.c b/external/bsd/openldap/dist/servers/slapd/sl_malloc.c
index 2a6a4af8db11..2fc651cae0bb 100644
--- a/external/bsd/openldap/dist/servers/slapd/sl_malloc.c
+++ b/external/bsd/openldap/dist/servers/slapd/sl_malloc.c
@@ -1,10 +1,10 @@
-/* $NetBSD: sl_malloc.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: sl_malloc.c,v 1.1.1.3 2010/12/12 15:22:45 adam Exp $ */
/* sl_malloc.c - malloc routines using a per-thread slab */
-/* OpenLDAP: pkg/ldap/servers/slapd/sl_malloc.c,v 1.39.2.10 2009/11/18 01:22:22 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/sl_malloc.c,v 1.39.2.13 2010/04/19 20:58:45 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -368,7 +368,7 @@ slap_sl_malloc(
}
} else {
Debug( LDAP_DEBUG_TRACE,
- "slap_sl_malloc of %lu bytes failed, using ch_malloc\n",
+ "sl_malloc %lu: ch_malloc\n",
(long)size, 0, 0);
return (void*)ch_malloc(size);
}
diff --git a/external/bsd/openldap/dist/servers/slapd/slap.h b/external/bsd/openldap/dist/servers/slapd/slap.h
index e2a941a774c7..3959ac73af04 100644
--- a/external/bsd/openldap/dist/servers/slapd/slap.h
+++ b/external/bsd/openldap/dist/servers/slapd/slap.h
@@ -1,10 +1,10 @@
-/* $NetBSD: slap.h,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slap.h,v 1.1.1.4 2010/12/12 15:22:47 adam Exp $ */
/* slap.h - stand alone ldap server include file */
-/* OpenLDAP: pkg/ldap/servers/slapd/slap.h,v 1.764.2.59 2009/12/12 06:18:53 hyc Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slap.h,v 1.764.2.68 2010/04/16 20:03:05 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -67,6 +67,9 @@ LDAP_BEGIN_DECL
#define SLAP_CONTROL_X_SESSION_TRACKING
#define SLAP_CONTROL_X_WHATFAILED
#define SLAP_CONFIG_DELETE
+#ifndef SLAP_SCHEMA_EXPOSE
+#define SLAP_SCHEMA_EXPOSE
+#endif
#endif
#define LDAP_DYNAMIC_OBJECTS
@@ -414,7 +417,7 @@ struct Syntax {
#define SLAP_SYNTAX_BLOB 0x0001U /* syntax treated as blob (audio) */
#define SLAP_SYNTAX_BINARY 0x0002U /* binary transfer required (certificate) */
#define SLAP_SYNTAX_BER 0x0004U /* stored in BER encoding (certificate) */
-#ifdef LDAP_DEVEL
+#ifdef SLAP_SCHEMA_EXPOSE
#define SLAP_SYNTAX_HIDE 0x0000U /* publish everything */
#else
#define SLAP_SYNTAX_HIDE 0x8000U /* hide (do not publish) */
@@ -521,7 +524,7 @@ struct MatchingRule {
slap_mask_t smr_usage;
-#ifdef LDAP_DEVEL
+#ifdef SLAP_SCHEMA_EXPOSE
#define SLAP_MR_HIDE 0x0000U
#else
#define SLAP_MR_HIDE 0x8000U
@@ -692,7 +695,7 @@ struct AttributeType {
#define SLAP_AT_NONE 0x0000U
#define SLAP_AT_ABSTRACT 0x0100U /* cannot be instantiated */
#define SLAP_AT_FINAL 0x0200U /* cannot be subtyped */
-#ifdef LDAP_DEVEL
+#ifdef SLAP_SCHEMA_EXPOSE
#define SLAP_AT_HIDE 0x0000U /* publish everything */
#else
#define SLAP_AT_HIDE 0x8000U /* hide attribute */
@@ -790,7 +793,7 @@ struct ObjectClass {
#define SLAP_OC__MASK 0x00FF
#define SLAP_OC__END 0x0100
#define SLAP_OC_OPERATIONAL 0x4000
-#ifdef LDAP_DEVEL
+#ifdef SLAP_SCHEMA_EXPOSE
#define SLAP_OC_HIDE 0x0000
#else
#define SLAP_OC_HIDE 0x8000
@@ -1284,7 +1287,9 @@ typedef enum slap_style_e {
ACL_STYLE_SELF,
ACL_STYLE_IP,
ACL_STYLE_IPV6,
- ACL_STYLE_PATH
+ ACL_STYLE_PATH,
+
+ ACL_STYLE_NONE
} slap_style_t;
typedef struct AuthorizationInformation {
@@ -1589,6 +1594,12 @@ LDAP_SLAPD_V (int) slapMode;
#define SB_TLS_ON 1
#define SB_TLS_CRITICAL 2
+typedef struct slap_keepalive {
+ int sk_idle;
+ int sk_probes;
+ int sk_interval;
+} slap_keepalive;
+
typedef struct slap_bindconf {
struct berval sb_uri;
int sb_version;
@@ -1603,6 +1614,7 @@ typedef struct slap_bindconf {
struct berval sb_realm;
struct berval sb_authcId;
struct berval sb_authzId;
+ slap_keepalive sb_keepalive;
#ifdef HAVE_TLS
void *sb_tls_ctx;
char *sb_tls_cert;
@@ -1787,6 +1799,7 @@ struct BackendDB {
#define be_entry_open bd_info->bi_tool_entry_open
#define be_entry_close bd_info->bi_tool_entry_close
#define be_entry_first bd_info->bi_tool_entry_first
+#define be_entry_first_x bd_info->bi_tool_entry_first_x
#define be_entry_next bd_info->bi_tool_entry_next
#define be_entry_reindex bd_info->bi_tool_entry_reindex
#define be_entry_get bd_info->bi_tool_entry_get
@@ -2013,7 +2026,7 @@ typedef struct req_abandon_s {
ber_int_t rs_msgid;
} req_abandon_s;
-#ifdef LDAP_DEVEL
+#ifdef SLAP_SCHEMA_EXPOSE
#define SLAP_EXOP_HIDE 0x0000
#else
#define SLAP_EXOP_HIDE 0x8000
@@ -2092,6 +2105,7 @@ struct SlapReply {
#define REP_ENTRY_MUSTBEFREED 0x0002U
#define REP_ENTRY_MUSTRELEASE 0x0004U
#define REP_ENTRY_MASK (REP_ENTRY_MODIFIABLE|REP_ENTRY_MUSTBEFREED|REP_ENTRY_MUSTRELEASE)
+#define REP_ENTRY_MUSTFLUSH (REP_ENTRY_MUSTBEFREED|REP_ENTRY_MUSTRELEASE)
#define REP_MATCHED_MUSTBEFREED 0x0010U
#define REP_MATCHED_MASK (REP_MATCHED_MUSTBEFREED)
@@ -2156,6 +2170,7 @@ typedef BI_conn_func BI_connection_destroy;
typedef int (BI_tool_entry_open) LDAP_P(( BackendDB *be, int mode ));
typedef int (BI_tool_entry_close) LDAP_P(( BackendDB *be ));
typedef ID (BI_tool_entry_first) LDAP_P(( BackendDB *be ));
+typedef ID (BI_tool_entry_first_x) LDAP_P(( BackendDB *be, struct berval *base, int scope, Filter *f ));
typedef ID (BI_tool_entry_next) LDAP_P(( BackendDB *be ));
typedef Entry* (BI_tool_entry_get) LDAP_P(( BackendDB *be, ID id ));
typedef ID (BI_tool_entry_put) LDAP_P(( BackendDB *be, Entry *e,
@@ -2255,7 +2270,8 @@ struct BackendInfo {
/* hooks for slap tools */
BI_tool_entry_open *bi_tool_entry_open;
BI_tool_entry_close *bi_tool_entry_close;
- BI_tool_entry_first *bi_tool_entry_first;
+ BI_tool_entry_first *bi_tool_entry_first; /* deprecated */
+ BI_tool_entry_first_x *bi_tool_entry_first_x;
BI_tool_entry_next *bi_tool_entry_next;
BI_tool_entry_get *bi_tool_entry_get;
BI_tool_entry_put *bi_tool_entry_put;
@@ -2971,7 +2987,7 @@ struct Listener {
/* number of response controls supported */
#define SLAP_MAX_RESPONSE_CONTROLS 6
-#ifdef LDAP_DEVEL
+#ifdef SLAP_SCHEMA_EXPOSE
#define SLAP_CTRL_HIDE 0x00000000U
#else
#define SLAP_CTRL_HIDE 0x80000000U
diff --git a/external/bsd/openldap/dist/servers/slapd/slapacl.c b/external/bsd/openldap/dist/servers/slapd/slapacl.c
index 6aab1067ed18..39c4a4128bb1 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapacl.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapacl.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapacl.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapacl.c,v 1.1.1.3 2010/12/12 15:22:47 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapacl.c,v 1.24.2.10 2009/07/22 20:28:46 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapacl.c,v 1.24.2.11 2010/04/13 20:23:20 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* Portions Copyright 2004 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/slapadd.c b/external/bsd/openldap/dist/servers/slapd/slapadd.c
index 020504475c5f..bc4fa9403a6e 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapadd.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapadd.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapadd.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapadd.c,v 1.1.1.3 2010/12/12 15:22:48 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapadd.c,v 1.36.2.15 2009/11/18 01:16:17 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapadd.c,v 1.36.2.17 2010/04/19 16:53:02 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 1998-2003 Kurt D. Zeilenga.
* Portions Copyright 2003 IBM Corporation.
* All rights reserved.
@@ -42,8 +42,8 @@
#include "slapcommon.h"
-static char csnbuf[ LDAP_LUTIL_CSNSTR_BUFSIZE ];
-static char maxcsnbuf[ LDAP_LUTIL_CSNSTR_BUFSIZE * ( SLAP_SYNC_SID_MAX + 1 ) ];
+static char csnbuf[ LDAP_PVT_CSNSTR_BUFSIZE ];
+static char maxcsnbuf[ LDAP_PVT_CSNSTR_BUFSIZE * ( SLAP_SYNC_SID_MAX + 1 ) ];
int
slapadd( int argc, char **argv )
@@ -122,7 +122,7 @@ slapadd( int argc, char **argv )
if ( update_ctxcsn ) {
maxcsn[ 0 ].bv_val = maxcsnbuf;
for ( sid = 1; sid <= SLAP_SYNC_SID_MAX; sid++ ) {
- maxcsn[ sid ].bv_val = maxcsn[ sid - 1 ].bv_val + LDAP_LUTIL_CSNSTR_BUFSIZE;
+ maxcsn[ sid ].bv_val = maxcsn[ sid - 1 ].bv_val + LDAP_PVT_CSNSTR_BUFSIZE;
maxcsn[ sid ].bv_len = 0;
}
}
@@ -295,7 +295,7 @@ slapadd( int argc, char **argv )
nvals[1].bv_len = 0;
nvals[1].bv_val = NULL;
- csn.bv_len = lutil_csnstr( csnbuf, sizeof( csnbuf ), csnsid, 0 );
+ csn.bv_len = ldap_pvt_csnstr( csnbuf, sizeof( csnbuf ), csnsid, 0 );
csn.bv_val = csnbuf;
timestamp.bv_val = timebuf;
diff --git a/external/bsd/openldap/dist/servers/slapd/slapauth.c b/external/bsd/openldap/dist/servers/slapd/slapauth.c
index 7ded581a8f36..c45d6ed263fd 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapauth.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapauth.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapauth.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapauth.c,v 1.1.1.3 2010/12/12 15:22:48 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapauth.c,v 1.10.2.6 2009/07/22 20:28:47 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapauth.c,v 1.10.2.7 2010/04/13 20:23:20 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* Portions Copyright 2004 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/slapcat.c b/external/bsd/openldap/dist/servers/slapd/slapcat.c
index 4bcdf9c63a4a..90e6ad571568 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapcat.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapcat.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapcat.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapcat.c,v 1.1.1.3 2010/12/12 15:22:48 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapcat.c,v 1.7.2.8 2009/01/22 00:01:03 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapcat.c,v 1.7.2.10 2010/04/14 22:59:10 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 1998-2003 Kurt D. Zeilenga.
* Portions Copyright 2003 IBM Corporation.
* All rights reserved.
@@ -49,9 +49,13 @@ slapcat( int argc, char **argv )
int rc = EXIT_SUCCESS;
Operation op = {0};
const char *progname = "slapcat";
+ int requestBSF;
+ int doBSF = 0;
slap_tool_init( progname, SLAPCAT, argc, argv );
+ requestBSF = ( sub_ndn.bv_len || filter );
+
#ifdef SIGPIPE
(void) SIGNAL( SIGPIPE, slapcat_sig );
#endif
@@ -63,7 +67,7 @@ slapcat( int argc, char **argv )
if( !be->be_entry_open ||
!be->be_entry_close ||
- !be->be_entry_first ||
+ !( be->be_entry_first_x || be->be_entry_first ) ||
!be->be_entry_next ||
!be->be_entry_get )
{
@@ -79,9 +83,22 @@ slapcat( int argc, char **argv )
}
op.o_bd = be;
- for ( id = be->be_entry_first( be );
- id != NOID;
- id = be->be_entry_next( be ) )
+ if ( !requestBSF && be->be_entry_first ) {
+ id = be->be_entry_first( be );
+
+ } else {
+ if ( be->be_entry_first_x ) {
+ id = be->be_entry_first_x( be,
+ sub_ndn.bv_len ? &sub_ndn : NULL, scope, filter );
+
+ } else {
+ assert( be->be_entry_first != NULL );
+ doBSF = 1;
+ id = be->be_entry_first( be );
+ }
+ }
+
+ for ( ; id != NOID; id = be->be_entry_next( be ) )
{
char *data;
int len;
@@ -98,20 +115,24 @@ slapcat( int argc, char **argv )
break;
}
- if( sub_ndn.bv_len && !dnIsSuffix( &e->e_nname, &sub_ndn ) ) {
- be_entry_release_r( &op, e );
- continue;
- }
-
- if( filter != NULL ) {
- int rc = test_filter( NULL, e, filter );
- if( rc != LDAP_COMPARE_TRUE ) {
+ if ( doBSF ) {
+ if ( sub_ndn.bv_len && !dnIsSuffixScope( &e->e_nname, &sub_ndn, scope ) )
+ {
be_entry_release_r( &op, e );
continue;
}
+
+
+ if ( filter != NULL ) {
+ int rc = test_filter( NULL, e, filter );
+ if ( rc != LDAP_COMPARE_TRUE ) {
+ be_entry_release_r( &op, e );
+ continue;
+ }
+ }
}
- if( verbose ) {
+ if ( verbose ) {
printf( "# id=%08lx\n", (long) id );
}
diff --git a/external/bsd/openldap/dist/servers/slapd/slapcommon.c b/external/bsd/openldap/dist/servers/slapd/slapcommon.c
index 32ae7143654c..045d54b7c0ad 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapcommon.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapcommon.c
@@ -1,10 +1,10 @@
-/* $NetBSD: slapcommon.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapcommon.c,v 1.1.1.3 2010/12/12 15:22:48 adam Exp $ */
/* slapcommon.c - common routine for the slap tools */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapcommon.c,v 1.73.2.18 2009/11/24 00:51:40 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapcommon.c,v 1.73.2.20 2010/04/14 22:59:10 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 1998-2003 Kurt D. Zeilenga.
* Portions Copyright 2003 IBM Corporation.
* All rights reserved.
@@ -82,7 +82,7 @@ usage( int tool, const char *progname )
case SLAPCAT:
options = " [-c]\n\t[-g] [-n databasenumber | -b suffix]"
- " [-l ldiffile] [-a filter] [-s subtree]\n";
+ " [-l ldiffile] [-a filter] [-s subtree] [-H url]\n";
break;
case SLAPDN:
@@ -99,7 +99,7 @@ usage( int tool, const char *progname )
case SLAPSCHEMA:
options = " [-c]\n\t[-g] [-n databasenumber | -b suffix]"
- " [-l errorfile] [-a filter] [-s subtree]\n";
+ " [-l errorfile] [-a filter] [-s subtree] [-H url]\n";
break;
}
@@ -249,13 +249,15 @@ slap_tool_init(
leakfilename = NULL;
#endif
+ scope = LDAP_SCOPE_DEFAULT;
+
switch( tool ) {
case SLAPADD:
options = "b:cd:f:F:gj:l:n:o:qsS:uvw";
break;
case SLAPCAT:
- options = "a:b:cd:f:F:gl:n:o:s:v";
+ options = "a:b:cd:f:F:gH:l:n:o:s:v";
mode |= SLAP_TOOL_READMAIN | SLAP_TOOL_READONLY;
break;
@@ -265,7 +267,7 @@ slap_tool_init(
break;
case SLAPSCHEMA:
- options = "a:b:cd:f:F:gl:n:o:s:v";
+ options = "a:b:cd:f:F:gH:l:n:o:s:v";
mode |= SLAP_TOOL_READMAIN | SLAP_TOOL_READONLY;
break;
@@ -346,6 +348,52 @@ slap_tool_init(
use_glue = 0;
break;
+ case 'H': {
+ LDAPURLDesc *ludp;
+ int rc;
+
+ rc = ldap_url_parse_ext( optarg, &ludp,
+ LDAP_PVT_URL_PARSE_NOEMPTY_HOST | LDAP_PVT_URL_PARSE_NOEMPTY_DN );
+ if ( rc != LDAP_URL_SUCCESS ) {
+ usage( tool, progname );
+ }
+
+ /* don't accept host, port, attrs, extensions */
+ if ( ldap_pvt_url_scheme2proto( ludp->lud_scheme ) != LDAP_PROTO_TCP ) {
+ usage( tool, progname );
+ }
+
+ if ( ludp->lud_host != NULL ) {
+ usage( tool, progname );
+ }
+
+ if ( ludp->lud_port != 0 ) {
+ usage( tool, progname );
+ }
+
+ if ( ludp->lud_attrs != NULL ) {
+ usage( tool, progname );
+ }
+
+ if ( ludp->lud_exts != NULL ) {
+ usage( tool, progname );
+ }
+
+ if ( ludp->lud_dn != NULL && ludp->lud_dn[0] != '\0' ) {
+ subtree = ludp->lud_dn;
+ ludp->lud_dn = NULL;
+ }
+
+ if ( ludp->lud_filter != NULL && ludp->lud_filter[0] != '\0' ) {
+ filterstr = ludp->lud_filter;
+ ludp->lud_filter = NULL;
+ }
+
+ scope = ludp->lud_scope;
+
+ ldap_free_urldesc( ludp );
+ } break;
+
case 'j': /* jump to linenumber */
if ( lutil_atoi( &jumpline, optarg ) ) {
usage( tool, progname );
@@ -745,6 +793,17 @@ get_db:
}
}
+ if ( scope != LDAP_SCOPE_DEFAULT && BER_BVISNULL( &sub_ndn ) ) {
+ if ( be && be->be_nsuffix ) {
+ ber_dupbv( &sub_ndn, be->be_nsuffix );
+
+ } else {
+ fprintf( stderr,
+ " needs a DN or a valid database\n" );
+ exit( EXIT_FAILURE );
+ }
+ }
+
startup:;
if ( be ) {
BackendDB *bdtmp;
@@ -835,3 +894,5 @@ int slap_tool_destroy( void )
}
return rc;
}
+
+
diff --git a/external/bsd/openldap/dist/servers/slapd/slapcommon.h b/external/bsd/openldap/dist/servers/slapd/slapcommon.h
index 794a7b7875ae..2a829c47087c 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapcommon.h
+++ b/external/bsd/openldap/dist/servers/slapd/slapcommon.h
@@ -1,10 +1,10 @@
-/* $NetBSD: slapcommon.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapcommon.h,v 1.1.1.3 2010/12/12 15:22:48 adam Exp $ */
/* slapcommon.h - common definitions for the slap tools */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapcommon.h,v 1.14.2.8 2009/06/02 22:36:18 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapcommon.h,v 1.14.2.10 2010/04/14 22:59:10 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -45,8 +45,9 @@ typedef struct tool_vars {
int tv_nosubordinates;
int tv_dryrun;
int tv_jumpline;
- Filter *tv_filter;
struct berval tv_sub_ndn;
+ int tv_scope;
+ Filter *tv_filter;
struct LDIFFP *tv_ldiffp;
struct berval tv_baseDN;
struct berval tv_authcDN;
@@ -78,8 +79,9 @@ extern tool_vars tool_globals;
#define continuemode tool_globals.tv_continuemode
#define nosubordinates tool_globals.tv_nosubordinates
#define dryrun tool_globals.tv_dryrun
-#define filter tool_globals.tv_filter
#define sub_ndn tool_globals.tv_sub_ndn
+#define scope tool_globals.tv_scope
+#define filter tool_globals.tv_filter
#define ldiffp tool_globals.tv_ldiffp
#define baseDN tool_globals.tv_baseDN
#define authcDN tool_globals.tv_authcDN
diff --git a/external/bsd/openldap/dist/servers/slapd/slapdn.c b/external/bsd/openldap/dist/servers/slapd/slapdn.c
index 691df33a594d..e6ce83114643 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapdn.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapdn.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapdn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapdn.c,v 1.1.1.3 2010/12/12 15:22:48 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapdn.c,v 1.8.2.4 2009/01/22 00:01:03 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapdn.c,v 1.8.2.5 2010/04/13 20:23:21 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* Portions Copyright 2004 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/slapi/Makefile.in b/external/bsd/openldap/dist/servers/slapd/slapi/Makefile.in
index d05b621da1ec..b05076f4ec8e 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapi/Makefile.in
+++ b/external/bsd/openldap/dist/servers/slapd/slapi/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for SLAPI
-# OpenLDAP: pkg/ldap/servers/slapd/slapi/Makefile.in,v 1.18.2.4 2009/01/22 00:01:14 kurt Exp
+# OpenLDAP: pkg/ldap/servers/slapd/slapi/Makefile.in,v 1.18.2.5 2010/04/13 20:23:50 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## Portions Copyright IBM Corp. 1997,2002,2003
## All rights reserved.
##
diff --git a/external/bsd/openldap/dist/servers/slapd/slapi/plugin.c b/external/bsd/openldap/dist/servers/slapd/slapi/plugin.c
index cf18573c5aea..e3ade819f57e 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapi/plugin.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapi/plugin.c
@@ -1,9 +1,9 @@
-/* $NetBSD: plugin.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: plugin.c,v 1.1.1.4 2010/12/12 15:23:51 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapi/plugin.c,v 1.43.2.7 2009/01/22 00:01:14 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapi/plugin.c,v 1.43.2.8 2010/04/13 20:23:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2002-2009 The OpenLDAP Foundation.
+ * Copyright 2002-2010 The OpenLDAP Foundation.
* Portions Copyright 1997,2002-2003 IBM Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/slapi/printmsg.c b/external/bsd/openldap/dist/servers/slapd/slapi/printmsg.c
index 19b1485d1930..7dd1417d61a0 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapi/printmsg.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapi/printmsg.c
@@ -1,9 +1,9 @@
-/* $NetBSD: printmsg.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: printmsg.c,v 1.1.1.3 2010/12/12 15:23:51 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapi/printmsg.c,v 1.15.2.4 2009/01/22 00:01:14 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapi/printmsg.c,v 1.15.2.5 2010/04/13 20:23:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2002-2009 The OpenLDAP Foundation.
+ * Copyright 2002-2010 The OpenLDAP Foundation.
* Portions Copyright 1997,2002-2003 IBM Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/slapi/proto-slapi.h b/external/bsd/openldap/dist/servers/slapd/slapi/proto-slapi.h
index b5de41050f6b..38321fcd7112 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapi/proto-slapi.h
+++ b/external/bsd/openldap/dist/servers/slapd/slapi/proto-slapi.h
@@ -1,9 +1,9 @@
-/* $NetBSD: proto-slapi.h,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: proto-slapi.h,v 1.1.1.4 2010/12/12 15:23:51 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapi/proto-slapi.h,v 1.47.2.5 2009/01/22 00:01:15 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapi/proto-slapi.h,v 1.47.2.6 2010/04/13 20:23:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2002-2009 The OpenLDAP Foundation.
+ * Copyright 2002-2010 The OpenLDAP Foundation.
* Portions Copyright 1997,2002-2003 IBM Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/slapi/slapi.h b/external/bsd/openldap/dist/servers/slapd/slapi/slapi.h
index 036e0c82fa43..88afb7b4cdc3 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapi/slapi.h
+++ b/external/bsd/openldap/dist/servers/slapd/slapi/slapi.h
@@ -1,9 +1,9 @@
-/* $NetBSD: slapi.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapi.h,v 1.1.1.3 2010/12/12 15:23:51 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapi/slapi.h,v 1.56.2.4 2009/01/22 00:01:15 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapi/slapi.h,v 1.56.2.5 2010/04/13 20:23:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2002-2009 The OpenLDAP Foundation.
+ * Copyright 2002-2010 The OpenLDAP Foundation.
* Portions Copyright 1997,2002-2003 IBM Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/slapi/slapi_dn.c b/external/bsd/openldap/dist/servers/slapd/slapi/slapi_dn.c
index 1b202ce8d8ad..751918d3fe3e 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapi/slapi_dn.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapi/slapi_dn.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapi_dn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapi_dn.c,v 1.1.1.3 2010/12/12 15:23:51 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapi/slapi_dn.c,v 1.5.2.4 2009/01/22 00:01:15 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapi/slapi_dn.c,v 1.5.2.5 2010/04/13 20:23:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2005-2009 The OpenLDAP Foundation.
+ * Copyright 2005-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/slapi/slapi_ext.c b/external/bsd/openldap/dist/servers/slapd/slapi/slapi_ext.c
index 889b196495c4..702678e6e9b8 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapi/slapi_ext.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapi/slapi_ext.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapi_ext.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapi_ext.c,v 1.1.1.3 2010/12/12 15:23:51 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapi/slapi_ext.c,v 1.16.2.4 2009/01/22 00:01:15 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapi/slapi_ext.c,v 1.16.2.5 2010/04/13 20:23:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/slapi/slapi_ops.c b/external/bsd/openldap/dist/servers/slapd/slapi/slapi_ops.c
index de759e5f9fc7..9a4524bb93aa 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapi/slapi_ops.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapi/slapi_ops.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapi_ops.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapi_ops.c,v 1.1.1.3 2010/12/12 15:23:52 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapi/slapi_ops.c,v 1.111.2.7 2009/08/25 22:44:26 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapi/slapi_ops.c,v 1.111.2.8 2010/04/13 20:23:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2002-2009 The OpenLDAP Foundation.
+ * Copyright 2002-2010 The OpenLDAP Foundation.
* Portions Copyright 1997,2002-2003 IBM Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/slapi/slapi_overlay.c b/external/bsd/openldap/dist/servers/slapd/slapi/slapi_overlay.c
index 93c13d6d4843..5dd76d0a238d 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapi/slapi_overlay.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapi/slapi_overlay.c
@@ -1,10 +1,10 @@
-/* $NetBSD: slapi_overlay.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapi_overlay.c,v 1.1.1.4 2010/12/12 15:23:52 adam Exp $ */
/* slapi_overlay.c - SLAPI overlay */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapi/slapi_overlay.c,v 1.40.2.8 2009/01/22 00:01:15 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapi/slapi_overlay.c,v 1.40.2.9 2010/04/13 20:23:50 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2001-2009 The OpenLDAP Foundation.
+ * Copyright 2001-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/slapi/slapi_pblock.c b/external/bsd/openldap/dist/servers/slapd/slapi/slapi_pblock.c
index e4223f5f65b8..528ab7e91829 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapi/slapi_pblock.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapi/slapi_pblock.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapi_pblock.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapi_pblock.c,v 1.1.1.3 2010/12/12 15:23:53 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapi/slapi_pblock.c,v 1.63.2.10 2009/07/27 20:19:19 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapi/slapi_pblock.c,v 1.63.2.11 2010/04/13 20:23:51 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2002-2009 The OpenLDAP Foundation.
+ * Copyright 2002-2010 The OpenLDAP Foundation.
* Portions Copyright 1997,2002-2003 IBM Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/slapi/slapi_utils.c b/external/bsd/openldap/dist/servers/slapd/slapi/slapi_utils.c
index 2f3328882a3f..19536c406e06 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapi/slapi_utils.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapi/slapi_utils.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapi_utils.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapi_utils.c,v 1.1.1.3 2010/12/12 15:23:54 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapi/slapi_utils.c,v 1.189.2.14 2009/06/02 23:07:29 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapi/slapi_utils.c,v 1.189.2.15 2010/04/13 20:23:51 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2002-2009 The OpenLDAP Foundation.
+ * Copyright 2002-2010 The OpenLDAP Foundation.
* Portions Copyright 1997,2002-2003 IBM Corporation.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/slapindex.c b/external/bsd/openldap/dist/servers/slapd/slapindex.c
index a122dbcecb80..bd8c1c2d50d1 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapindex.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapindex.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapindex.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapindex.c,v 1.1.1.3 2010/12/12 15:22:48 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapindex.c,v 1.3.2.5 2009/01/22 00:01:03 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapindex.c,v 1.3.2.7 2010/04/14 22:59:10 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 1998-2003 Kurt D. Zeilenga.
* All rights reserved.
*
@@ -45,7 +45,7 @@ slapindex( int argc, char **argv )
if( !be->be_entry_open ||
!be->be_entry_close ||
- !be->be_entry_first ||
+ !( be->be_entry_first || be->be_entry_first_x ) ||
!be->be_entry_next ||
!be->be_entry_reindex )
{
@@ -79,11 +79,16 @@ slapindex( int argc, char **argv )
progname );
exit( EXIT_FAILURE );
}
-
- for ( id = be->be_entry_first( be );
- id != NOID;
- id = be->be_entry_next( be ) )
- {
+
+ if ( be->be_entry_first ) {
+ id = be->be_entry_first( be );
+
+ } else {
+ assert( be->be_entry_first_x != NULL );
+ id = be->be_entry_first_x( be, NULL, LDAP_SCOPE_DEFAULT, NULL );
+ }
+
+ for ( ; id != NOID; id = be->be_entry_next( be ) ) {
int rtn;
if( verbose ) {
diff --git a/external/bsd/openldap/dist/servers/slapd/slappasswd.c b/external/bsd/openldap/dist/servers/slapd/slappasswd.c
index 3db09a806edc..25e490e6538a 100644
--- a/external/bsd/openldap/dist/servers/slapd/slappasswd.c
+++ b/external/bsd/openldap/dist/servers/slapd/slappasswd.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slappasswd.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slappasswd.c,v 1.1.1.3 2010/12/12 15:22:48 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slappasswd.c,v 1.5.2.6 2009/01/22 00:01:03 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slappasswd.c,v 1.5.2.7 2010/04/13 20:23:21 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 1998-2003 Kurt D. Zeilenga.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/slapschema.c b/external/bsd/openldap/dist/servers/slapd/slapschema.c
index bab0e96e0647..0625b654b4c3 100644
--- a/external/bsd/openldap/dist/servers/slapd/slapschema.c
+++ b/external/bsd/openldap/dist/servers/slapd/slapschema.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapschema.c,v 1.1.1.1 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapschema.c,v 1.1.1.2 2010/12/12 15:22:48 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slapschema.c,v 1.1.2.3 2009/07/22 20:28:47 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slapschema.c,v 1.1.2.5 2010/04/14 22:59:10 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 1998-2003 Kurt D. Zeilenga.
* Portions Copyright 2003 IBM Corporation.
* All rights reserved.
@@ -52,9 +52,13 @@ slapschema( int argc, char **argv )
OperationBuffer opbuf;
Operation *op = NULL;
void *thrctx;
+ int requestBSF = 0;
+ int doBSF = 0;
slap_tool_init( progname, SLAPCAT, argc, argv );
+ requestBSF = ( sub_ndn.bv_len || filter );
+
#ifdef SIGPIPE
(void) SIGNAL( SIGPIPE, slapcat_sig );
#endif
@@ -66,7 +70,7 @@ slapschema( int argc, char **argv )
if( !be->be_entry_open ||
!be->be_entry_close ||
- !be->be_entry_first ||
+ !( be->be_entry_first || be->be_entry_first_x ) ||
!be->be_entry_next ||
!be->be_entry_get )
{
@@ -87,10 +91,23 @@ slapschema( int argc, char **argv )
op->o_tmpmemctx = NULL;
op->o_bd = be;
- for ( id = be->be_entry_first( be );
- id != NOID;
- id = be->be_entry_next( be ) )
- {
+
+ if ( !requestBSF && be->be_entry_first ) {
+ id = be->be_entry_first( be );
+
+ } else {
+ if ( be->be_entry_first_x ) {
+ id = be->be_entry_first_x( be,
+ sub_ndn.bv_len ? &sub_ndn : NULL, scope, filter );
+
+ } else {
+ assert( be->be_entry_first != NULL );
+ doBSF = 1;
+ id = be->be_entry_first( be );
+ }
+ }
+
+ for ( ; id != NOID; id = be->be_entry_next( be ) ) {
Entry* e;
char textbuf[SLAP_TEXT_BUFLEN];
size_t textlen = sizeof(textbuf);
@@ -107,17 +124,21 @@ slapschema( int argc, char **argv )
break;
}
- if( sub_ndn.bv_len && !dnIsSuffix( &e->e_nname, &sub_ndn ) ) {
- be_entry_release_r( op, e );
- continue;
- }
-
- if( filter != NULL ) {
- int rc = test_filter( NULL, e, filter );
- if( rc != LDAP_COMPARE_TRUE ) {
+ if ( doBSF ) {
+ if ( sub_ndn.bv_len && !dnIsSuffixScope( &e->e_nname, &sub_ndn, scope ) )
+ {
be_entry_release_r( op, e );
continue;
}
+
+
+ if ( filter != NULL ) {
+ int rc = test_filter( NULL, e, filter );
+ if ( rc != LDAP_COMPARE_TRUE ) {
+ be_entry_release_r( op, e );
+ continue;
+ }
+ }
}
if( verbose ) {
diff --git a/external/bsd/openldap/dist/servers/slapd/slaptest.c b/external/bsd/openldap/dist/servers/slapd/slaptest.c
index 343a7af90ff0..38baea7bde0c 100644
--- a/external/bsd/openldap/dist/servers/slapd/slaptest.c
+++ b/external/bsd/openldap/dist/servers/slapd/slaptest.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slaptest.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slaptest.c,v 1.1.1.3 2010/12/12 15:22:48 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/slaptest.c,v 1.7.2.6 2009/01/22 00:01:03 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/slaptest.c,v 1.7.2.7 2010/04/13 20:23:21 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2004-2009 The OpenLDAP Foundation.
+ * Copyright 2004-2010 The OpenLDAP Foundation.
* Portions Copyright 2004 Pierangelo Masarati.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/starttls.c b/external/bsd/openldap/dist/servers/slapd/starttls.c
index e7a367bee214..a13257a988ef 100644
--- a/external/bsd/openldap/dist/servers/slapd/starttls.c
+++ b/external/bsd/openldap/dist/servers/slapd/starttls.c
@@ -1,9 +1,9 @@
-/* $NetBSD: starttls.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: starttls.c,v 1.1.1.3 2010/12/12 15:22:48 adam Exp $ */
-/* OpenLDAP: pkg/ldap/servers/slapd/starttls.c,v 1.41.2.4 2009/01/22 00:01:03 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/starttls.c,v 1.41.2.5 2010/04/13 20:23:21 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/str2filter.c b/external/bsd/openldap/dist/servers/slapd/str2filter.c
index a15cd6e868a4..f9b0ba874d74 100644
--- a/external/bsd/openldap/dist/servers/slapd/str2filter.c
+++ b/external/bsd/openldap/dist/servers/slapd/str2filter.c
@@ -1,10 +1,10 @@
-/* $NetBSD: str2filter.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: str2filter.c,v 1.1.1.3 2010/12/12 15:22:48 adam Exp $ */
/* str2filter.c - parse an RFC 4515 string filter */
-/* OpenLDAP: pkg/ldap/servers/slapd/str2filter.c,v 1.43.2.4 2009/01/22 00:01:04 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/str2filter.c,v 1.43.2.5 2010/04/13 20:23:21 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/syncrepl.c b/external/bsd/openldap/dist/servers/slapd/syncrepl.c
index 949dbf17f9fe..8d60190ab1a0 100644
--- a/external/bsd/openldap/dist/servers/slapd/syncrepl.c
+++ b/external/bsd/openldap/dist/servers/slapd/syncrepl.c
@@ -1,10 +1,10 @@
-/* $NetBSD: syncrepl.c,v 1.1.1.3 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: syncrepl.c,v 1.1.1.4 2010/12/12 15:22:51 adam Exp $ */
/* syncrepl.c -- Replication Engine which uses the LDAP Sync protocol */
-/* OpenLDAP: pkg/ldap/servers/slapd/syncrepl.c,v 1.254.2.102 2009/12/08 23:15:42 quanah Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/syncrepl.c,v 1.254.2.106 2010/06/10 17:15:14 quanah Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* Portions Copyright 2003 by IBM Corporation.
* Portions Copyright 2003-2008 by Howard Chu, Symas Corporation.
* All rights reserved.
@@ -133,6 +133,8 @@ static int syncrepl_updateCookie(
struct sync_cookie * );
static struct berval * slap_uuidstr_from_normalized(
struct berval *, struct berval *, void * );
+static int syncrepl_add_glue_ancestors(
+ Operation* op, Entry *e );
/* callback functions */
static int dn_callback( Operation *, SlapReply * );
@@ -1561,10 +1563,11 @@ static slap_verbmasks modops[] = {
{ BER_BVNULL, 0 }
};
-static Modifications *
+static int
syncrepl_accesslog_mods(
syncinfo_t *si,
- struct berval *vals
+ struct berval *vals,
+ struct Modifications **modres
)
{
char *colon;
@@ -1573,7 +1576,7 @@ syncrepl_accesslog_mods(
struct berval bv, bv2;
short op;
Modifications *mod = NULL, *modlist = NULL, **modtail;
- int i;
+ int i, rc = 0;
modtail = &modlist;
@@ -1590,7 +1593,13 @@ syncrepl_accesslog_mods(
bv.bv_len = colon - bv.bv_val;
if ( slap_bv2ad( &bv, &ad, &text ) ) {
/* Invalid */
- continue;
+ Debug( LDAP_DEBUG_ANY, "syncrepl_accesslog_mods: %s "
+ "Invalid attribute %s, %s\n",
+ si->si_ridtxt, bv.bv_val, text );
+ slap_mods_free( modlist, 1 );
+ modlist = NULL;
+ rc = -1;
+ break;
}
/* Ignore dynamically generated attrs */
@@ -1635,16 +1644,18 @@ syncrepl_accesslog_mods(
mod->sml_numvals++;
}
}
- return modlist;
+ *modres = modlist;
+ return rc;
}
-static Modifications *
+static int
syncrepl_changelog_mods(
syncinfo_t *si,
- struct berval *vals
+ struct berval *vals,
+ struct Modifications **modres
)
{
- return NULL; /* FIXME */
+ return -1; /* FIXME */
}
static int
@@ -1739,10 +1750,11 @@ syncrepl_message_to_op(
} else if ( !ber_bvstrcasecmp( &bv, &ls->ls_mod ) ) {
/* Parse attribute into modlist */
if ( si->si_syncdata == SYNCDATA_ACCESSLOG ) {
- modlist = syncrepl_accesslog_mods( si, bvals );
+ rc = syncrepl_accesslog_mods( si, bvals, &modlist );
} else {
- modlist = syncrepl_changelog_mods( si, bvals );
+ rc = syncrepl_changelog_mods( si, bvals, &modlist );
}
+ if ( rc ) goto done;
} else if ( !ber_bvstrcasecmp( &bv, &ls->ls_newRdn ) ) {
rdn = bvals[0];
} else if ( !ber_bvstrcasecmp( &bv, &ls->ls_delRdn ) ) {
@@ -2554,7 +2566,19 @@ retry_add:;
mod->sml_next = m2;
}
op->o_bd = si->si_wbe;
+retry_modrdn:;
rc = op->o_bd->be_modrdn( op, &rs_modify );
+
+ /* NOTE: noSuchObject should result because the new superior
+ * has not been added yet (ITS#6472) */
+ if ( rc == LDAP_NO_SUCH_OBJECT && !BER_BVISNULL( op->orr_nnewSup )) {
+ Operation op2 = *op;
+ rc = syncrepl_add_glue_ancestors( &op2, entry );
+ if ( rc == LDAP_SUCCESS ) {
+ goto retry_modrdn;
+ }
+ }
+
op->o_tmpfree( op->orr_nnewrdn.bv_val, op->o_tmpmemctx );
op->o_tmpfree( op->orr_newrdn.bv_val, op->o_tmpmemctx );
@@ -2880,8 +2904,8 @@ syncrepl_del_nonpresent(
return;
}
-int
-syncrepl_add_glue(
+static int
+syncrepl_add_glue_ancestors(
Operation* op,
Entry *e )
{
@@ -3015,6 +3039,34 @@ syncrepl_add_glue(
ndn.bv_len = e->e_nname.bv_len - (ndn.bv_val - e->e_nname.bv_val);
}
+ return rc;
+}
+
+int
+syncrepl_add_glue(
+ Operation* op,
+ Entry *e )
+{
+ slap_callback cb = { NULL };
+ int rc;
+ Backend *be = op->o_bd;
+ SlapReply rs_add = {REP_RESULT};
+
+ rc = syncrepl_add_glue_ancestors( op, e );
+ switch ( rc ) {
+ case LDAP_SUCCESS:
+ case LDAP_ALREADY_EXISTS:
+ break;
+
+ default:
+ return rc;
+ }
+
+ op->o_tag = LDAP_REQ_ADD;
+ op->o_callback = &cb;
+ cb.sc_response = null_callback;
+ cb.sc_private = NULL;
+
op->o_req_dn = e->e_name;
op->o_req_ndn = e->e_nname;
op->ora_e = e;
@@ -3248,10 +3300,12 @@ attr_cmp( Operation *op, Attribute *old, Attribute *new,
* Also use replace op if attr has no equality matching rule.
* (ITS#5781)
*/
- if ( nn && no < o &&
+ if ( ( nn || ( no > 0 && no < o ) ) &&
( old->a_desc == slap_schema.si_ad_objectClass ||
- !old->a_desc->ad_type->sat_equality ))
+ !old->a_desc->ad_type->sat_equality ) )
+ {
no = o;
+ }
i = j;
/* all old values were deleted, just use the replace op */
@@ -4540,9 +4594,10 @@ add_syncrepl(
return 1;
} else {
Debug( LDAP_DEBUG_CONFIG,
- "Config: ** successfully added syncrepl \"%s\"\n",
+ "Config: ** successfully added syncrepl %s \"%s\"\n",
+ si->si_ridtxt,
BER_BVISNULL( &si->si_bindconf.sb_uri ) ?
- "(null)" : si->si_bindconf.sb_uri.bv_val, 0, 0 );
+ "(null)" : si->si_bindconf.sb_uri.bv_val, 0 );
if ( c->be->be_syncinfo ) {
syncinfo_t *sip;
diff --git a/external/bsd/openldap/dist/servers/slapd/syntax.c b/external/bsd/openldap/dist/servers/slapd/syntax.c
index 900d66e250dd..c1b47cfdeebf 100644
--- a/external/bsd/openldap/dist/servers/slapd/syntax.c
+++ b/external/bsd/openldap/dist/servers/slapd/syntax.c
@@ -1,10 +1,10 @@
-/* $NetBSD: syntax.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: syntax.c,v 1.1.1.3 2010/12/12 15:22:52 adam Exp $ */
/* syntax.c - routines to manage syntax definitions */
-/* OpenLDAP: pkg/ldap/servers/slapd/syntax.c,v 1.43.2.6 2009/01/22 00:01:04 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/syntax.c,v 1.43.2.7 2010/04/13 20:23:22 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/txn.c b/external/bsd/openldap/dist/servers/slapd/txn.c
index effba8052afa..413e7e0ca516 100644
--- a/external/bsd/openldap/dist/servers/slapd/txn.c
+++ b/external/bsd/openldap/dist/servers/slapd/txn.c
@@ -1,10 +1,10 @@
-/* $NetBSD: txn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: txn.c,v 1.1.1.3 2010/12/12 15:22:52 adam Exp $ */
/* txn.c - LDAP Transactions */
-/* OpenLDAP: pkg/ldap/servers/slapd/txn.c,v 1.6.2.4 2009/01/22 00:01:04 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/txn.c,v 1.6.2.5 2010/04/13 20:23:22 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/unbind.c b/external/bsd/openldap/dist/servers/slapd/unbind.c
index 5ffc2647de0c..47d4adf4dcfa 100644
--- a/external/bsd/openldap/dist/servers/slapd/unbind.c
+++ b/external/bsd/openldap/dist/servers/slapd/unbind.c
@@ -1,10 +1,10 @@
-/* $NetBSD: unbind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: unbind.c,v 1.1.1.3 2010/12/12 15:22:52 adam Exp $ */
/* unbind.c - decode an ldap unbind operation and pass it to a backend db */
-/* OpenLDAP: pkg/ldap/servers/slapd/unbind.c,v 1.26.2.4 2009/01/22 00:01:04 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/unbind.c,v 1.26.2.5 2010/04/13 20:23:22 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/user.c b/external/bsd/openldap/dist/servers/slapd/user.c
index 3871a77962b4..954715f6c89f 100644
--- a/external/bsd/openldap/dist/servers/slapd/user.c
+++ b/external/bsd/openldap/dist/servers/slapd/user.c
@@ -1,10 +1,10 @@
-/* $NetBSD: user.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: user.c,v 1.1.1.3 2010/12/12 15:22:52 adam Exp $ */
/* user.c - set user id, group id and group access list */
-/* OpenLDAP: pkg/ldap/servers/slapd/user.c,v 1.25.2.4 2009/01/22 00:01:04 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/user.c,v 1.25.2.5 2010/04/13 20:23:22 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* Portions Copyright 1999 PM Lashley.
* All rights reserved.
*
diff --git a/external/bsd/openldap/dist/servers/slapd/value.c b/external/bsd/openldap/dist/servers/slapd/value.c
index a841fe3ff0f4..c4b497c1a1ad 100644
--- a/external/bsd/openldap/dist/servers/slapd/value.c
+++ b/external/bsd/openldap/dist/servers/slapd/value.c
@@ -1,10 +1,10 @@
-/* $NetBSD: value.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: value.c,v 1.1.1.3 2010/12/12 15:22:52 adam Exp $ */
/* value.c - routines for dealing with values */
-/* OpenLDAP: pkg/ldap/servers/slapd/value.c,v 1.96.2.8 2009/01/22 00:01:04 kurt Exp */
+/* OpenLDAP: pkg/ldap/servers/slapd/value.c,v 1.96.2.9 2010/04/13 20:23:22 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/servers/slapd/zn_malloc.c b/external/bsd/openldap/dist/servers/slapd/zn_malloc.c
index 9eba5d7344f6..409be45dbb84 100644
--- a/external/bsd/openldap/dist/servers/slapd/zn_malloc.c
+++ b/external/bsd/openldap/dist/servers/slapd/zn_malloc.c
@@ -1,10 +1,10 @@
-/* $NetBSD: zn_malloc.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: zn_malloc.c,v 1.1.1.3 2010/12/12 15:22:52 adam Exp $ */
/* zn_malloc.c - zone-based malloc routines */
-/* OpenLDAP: pkg/ldap/servers/slapd/zn_malloc.c,v 1.11.2.4 2009/01/22 00:01:04 kurt Exp*/
+/* OpenLDAP: pkg/ldap/servers/slapd/zn_malloc.c,v 1.11.2.7 2010/04/19 20:58:45 quanah Exp*/
/* This work is part of OpenLDAP Software .
*
- * Copyright 2003-2009 The OpenLDAP Foundation.
+ * Copyright 2003-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -331,7 +331,7 @@ retry:
if ( zh->zh_maxzones < zh->zh_numzones + zh->zh_deltazones ) {
ldap_pvt_thread_mutex_unlock( &zh->zh_mutex );
Debug( LDAP_DEBUG_TRACE,
- "slap_zn_malloc of %lu bytes failed, using ch_malloc\n",
+ "zn_malloc %lu: ch_malloc\n\n",
(long)size, 0, 0);
Debug(LDAP_DEBUG_NONE,
"slap_zn_malloc: returning 0x%x, 0x%x\n",
diff --git a/external/bsd/openldap/dist/tests/Makefile.in b/external/bsd/openldap/dist/tests/Makefile.in
index 3ab29112b821..b78dbb792a76 100644
--- a/external/bsd/openldap/dist/tests/Makefile.in
+++ b/external/bsd/openldap/dist/tests/Makefile.in
@@ -1,8 +1,8 @@
# Makefile.in for tests
-# OpenLDAP: pkg/ldap/tests/Makefile.in,v 1.60.2.5 2009/01/22 00:01:15 kurt Exp
+# OpenLDAP: pkg/ldap/tests/Makefile.in,v 1.60.2.7 2010/04/19 19:14:26 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -53,6 +53,10 @@ sql-yes sql-mod: FORCE
@echo "Initiating LDAP tests for SQL..."
@$(RUN) -b sql sql-all
+ldif test-ldif: FORCE
+ @echo "Initiating LDAP tests for LDIF..."
+ @$(RUN) -b ldif all
+
regressions: FORCE
@echo "Testing (available) ITS regressions"
@$(RUN) its-all
diff --git a/external/bsd/openldap/dist/tests/data/ditcontentrules.conf b/external/bsd/openldap/dist/tests/data/ditcontentrules.conf
index 256d1312c530..3d854df5c2cc 100644
--- a/external/bsd/openldap/dist/tests/data/ditcontentrules.conf
+++ b/external/bsd/openldap/dist/tests/data/ditcontentrules.conf
@@ -1,7 +1,7 @@
-# OpenLDAP: pkg/ldap/tests/data/ditcontentrules.conf,v 1.6.2.4 2009/01/22 00:01:15 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/ditcontentrules.conf,v 1.6.2.5 2010/04/13 20:23:51 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/ndb.conf b/external/bsd/openldap/dist/tests/data/ndb.conf
index 5e9b11175c0a..89db6e2bc488 100644
--- a/external/bsd/openldap/dist/tests/data/ndb.conf
+++ b/external/bsd/openldap/dist/tests/data/ndb.conf
@@ -1,8 +1,8 @@
# back-ndb boilerplate config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/ndb.conf,v 1.1.2.2 2009/01/22 00:01:15 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/ndb.conf,v 1.1.2.3 2010/04/13 20:23:51 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/regressions/its4184/its4184 b/external/bsd/openldap/dist/tests/data/regressions/its4184/its4184
index 0908119261c2..ed35585f99da 100644
--- a/external/bsd/openldap/dist/tests/data/regressions/its4184/its4184
+++ b/external/bsd/openldap/dist/tests/data/regressions/its4184/its4184
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/data/regressions/its4184/its4184,v 1.4.2.4 2009/01/22 00:01:17 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/regressions/its4184/its4184,v 1.4.2.5 2010/04/13 20:23:57 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/regressions/its4184/slapd.conf b/external/bsd/openldap/dist/tests/data/regressions/its4184/slapd.conf
index 089644b1dd2e..9f8b9c0d2d35 100644
--- a/external/bsd/openldap/dist/tests/data/regressions/its4184/slapd.conf
+++ b/external/bsd/openldap/dist/tests/data/regressions/its4184/slapd.conf
@@ -1,4 +1,4 @@
-# OpenLDAP: pkg/ldap/tests/data/regressions/its4184/slapd.conf,v 1.2.2.1 2007/09/03 21:11:24 quanah Exp
+# OpenLDAP: pkg/ldap/tests/data/regressions/its4184/slapd.conf,v 1.2.2.2 2010/04/19 19:14:30 quanah Exp
#
# ITS 4184 slapd.conf
@@ -38,7 +38,7 @@ database @BACKEND@
suffix "ou=Special,dc=example,dc=com"
subordinate
rootdn "cn=Manager,dc=example,dc=com"
-directory @TESTDIR@/db.2.a
+#~null~#directory @TESTDIR@/db.2.a
# Indices to maintain
#bdb#index default pres,eq
@@ -52,7 +52,8 @@ database @BACKEND@
suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
-directory @TESTDIR@/db.1.a
+#null#bind on
+#~null~#directory @TESTDIR@/db.1.a
# Indices to maintain
#bdb#index default pres,eq
diff --git a/external/bsd/openldap/dist/tests/data/regressions/its4326/its4326 b/external/bsd/openldap/dist/tests/data/regressions/its4326/its4326
index 935047ccad7b..b8fb7bdd6e36 100644
--- a/external/bsd/openldap/dist/tests/data/regressions/its4326/its4326
+++ b/external/bsd/openldap/dist/tests/data/regressions/its4326/its4326
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/data/regressions/its4326/its4326,v 1.2.2.4 2009/01/22 00:01:17 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/regressions/its4326/its4326,v 1.2.2.5 2010/04/13 20:23:57 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/regressions/its4326/slapd.conf b/external/bsd/openldap/dist/tests/data/regressions/its4326/slapd.conf
index 41164867730f..8afdb07b3f26 100644
--- a/external/bsd/openldap/dist/tests/data/regressions/its4326/slapd.conf
+++ b/external/bsd/openldap/dist/tests/data/regressions/its4326/slapd.conf
@@ -1,8 +1,8 @@
# proxy slapd config -- for regression of back-ldap server unavailable issue
-# OpenLDAP: pkg/ldap/tests/data/regressions/its4326/slapd.conf,v 1.2.2.4 2009/01/22 00:01:17 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/regressions/its4326/slapd.conf,v 1.2.2.5 2010/04/13 20:23:57 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/regressions/its4336/its4336 b/external/bsd/openldap/dist/tests/data/regressions/its4336/its4336
index c793daacc825..46baa916de0b 100644
--- a/external/bsd/openldap/dist/tests/data/regressions/its4336/its4336
+++ b/external/bsd/openldap/dist/tests/data/regressions/its4336/its4336
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/data/regressions/its4336/its4336,v 1.2.2.4 2009/01/22 00:01:17 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/regressions/its4336/its4336,v 1.2.2.5 2010/04/13 20:23:57 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/regressions/its4336/slapd.conf b/external/bsd/openldap/dist/tests/data/regressions/its4336/slapd.conf
index b0574ea321e4..44ec4fbfe38f 100644
--- a/external/bsd/openldap/dist/tests/data/regressions/its4336/slapd.conf
+++ b/external/bsd/openldap/dist/tests/data/regressions/its4336/slapd.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with indexing)
-# OpenLDAP: pkg/ldap/tests/data/regressions/its4336/slapd.conf,v 1.2.2.4 2009/01/22 00:01:17 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/regressions/its4336/slapd.conf,v 1.2.2.5 2010/04/13 20:23:57 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/regressions/its4337/config.out b/external/bsd/openldap/dist/tests/data/regressions/its4337/config.out
index 4fd555ff23bd..bdcbbe51b848 100644
--- a/external/bsd/openldap/dist/tests/data/regressions/its4337/config.out
+++ b/external/bsd/openldap/dist/tests/data/regressions/its4337/config.out
@@ -3,97 +3,127 @@ dn: olcDatabase={-1}frontend,cn=config
objectClass: olcDatabaseConfig
objectClass: olcFrontendConfig
olcDatabase: {-1}frontend
+olcAddContentAcl: FALSE
olcLastMod: TRUE
olcMaxDerefDepth: 0
olcReadOnly: FALSE
olcSchemaDN: cn=Subschema
+olcSyncUseSubentry: FALSE
+olcMonitoring: FALSE
dn: olcDatabase={0}config,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
+olcAccess: {0}to * by * none
+olcAddContentAcl: TRUE
olcLastMod: TRUE
olcMaxDerefDepth: 15
olcReadOnly: FALSE
olcRootDN: cn=config
olcRootPW: config
+olcSyncUseSubentry: FALSE
+olcMonitoring: FALSE
dn: olcDatabase={1}monitor,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {1}monitor
+olcAddContentAcl: FALSE
olcLastMod: TRUE
olcMaxDerefDepth: 15
olcReadOnly: FALSE
+olcSyncUseSubentry: FALSE
+olcMonitoring: FALSE
# Searching databases __after__ append...
dn: olcDatabase={-1}frontend,cn=config
objectClass: olcDatabaseConfig
objectClass: olcFrontendConfig
olcDatabase: {-1}frontend
+olcAddContentAcl: FALSE
olcLastMod: TRUE
olcMaxDerefDepth: 0
olcReadOnly: FALSE
olcSchemaDN: cn=Subschema
+olcSyncUseSubentry: FALSE
+olcMonitoring: FALSE
dn: olcDatabase={0}config,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
+olcAccess: {0}to * by * none
+olcAddContentAcl: TRUE
olcLastMod: TRUE
olcMaxDerefDepth: 15
olcReadOnly: FALSE
olcRootDN: cn=config
olcRootPW: config
+olcSyncUseSubentry: FALSE
+olcMonitoring: FALSE
dn: olcDatabase={1}monitor,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {1}monitor
+olcAddContentAcl: FALSE
olcLastMod: TRUE
olcMaxDerefDepth: 15
olcReadOnly: FALSE
+olcSyncUseSubentry: FALSE
+olcMonitoring: FALSE
dn: olcDatabase={2}bdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcBdbConfig
olcDatabase: {2}bdb
-olcSuffix: dc=com
olcDbDirectory: ./testrun/db.1.a
+olcSuffix: dc=com
# Searching databases __after__ insert...
dn: olcDatabase={-1}frontend,cn=config
objectClass: olcDatabaseConfig
objectClass: olcFrontendConfig
olcDatabase: {-1}frontend
+olcAddContentAcl: FALSE
olcLastMod: TRUE
olcMaxDerefDepth: 0
olcReadOnly: FALSE
olcSchemaDN: cn=Subschema
+olcSyncUseSubentry: FALSE
+olcMonitoring: FALSE
dn: olcDatabase={0}config,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
+olcAccess: {0}to * by * none
+olcAddContentAcl: TRUE
olcLastMod: TRUE
olcMaxDerefDepth: 15
olcReadOnly: FALSE
olcRootDN: cn=config
olcRootPW: config
+olcSyncUseSubentry: FALSE
+olcMonitoring: FALSE
dn: olcDatabase={1}bdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcBdbConfig
olcDatabase: {1}bdb
-olcSuffix: dc=org
olcDbDirectory: ./testrun/db.2.a
+olcSuffix: dc=org
dn: olcDatabase={2}monitor,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {2}monitor
+olcAddContentAcl: FALSE
olcLastMod: TRUE
olcMaxDerefDepth: 15
olcReadOnly: FALSE
+olcSyncUseSubentry: FALSE
+olcMonitoring: FALSE
dn: olcDatabase={3}bdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcBdbConfig
olcDatabase: {3}bdb
-olcSuffix: dc=com
olcDbDirectory: ./testrun/db.1.a
+olcSuffix: dc=com
diff --git a/external/bsd/openldap/dist/tests/data/regressions/its4337/its4337 b/external/bsd/openldap/dist/tests/data/regressions/its4337/its4337
index 1fd41450d490..05524970216e 100644
--- a/external/bsd/openldap/dist/tests/data/regressions/its4337/its4337
+++ b/external/bsd/openldap/dist/tests/data/regressions/its4337/its4337
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/data/regressions/its4337/its4337,v 1.1.2.4 2009/01/22 00:01:17 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/regressions/its4337/its4337,v 1.1.2.6 2010/04/19 19:14:31 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -139,9 +139,9 @@ test $KILLSERVERS != no && kill -HUP $KILLPIDS
LDIF=$ITSDIR/config.out
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/data/regressions/its4337/slapd.conf b/external/bsd/openldap/dist/tests/data/regressions/its4337/slapd.conf
index 38f5a2a1d7ad..b206d26607cf 100644
--- a/external/bsd/openldap/dist/tests/data/regressions/its4337/slapd.conf
+++ b/external/bsd/openldap/dist/tests/data/regressions/its4337/slapd.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with indexing)
-# OpenLDAP: pkg/ldap/tests/data/regressions/its4337/slapd.conf,v 1.1.2.4 2009/01/22 00:01:17 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/regressions/its4337/slapd.conf,v 1.1.2.5 2010/04/13 20:23:57 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/regressions/its4448/its4448 b/external/bsd/openldap/dist/tests/data/regressions/its4448/its4448
index 2b002187a749..febb108017cf 100644
--- a/external/bsd/openldap/dist/tests/data/regressions/its4448/its4448
+++ b/external/bsd/openldap/dist/tests/data/regressions/its4448/its4448
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/data/regressions/its4448/its4448,v 1.1.2.5 2009/12/15 20:37:40 quanah Exp
+# OpenLDAP: pkg/ldap/tests/data/regressions/its4448/its4448,v 1.1.2.7 2010/04/19 19:14:31 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -308,9 +308,9 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $METACONCURRENCYOUT > $LDIFFLT
+$LDIFFILTER < $METACONCURRENCYOUT > $LDIFFLT
echo "Comparing filter output..."
$BCMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/data/regressions/its4448/slapd-meta.conf b/external/bsd/openldap/dist/tests/data/regressions/its4448/slapd-meta.conf
index 1816c20039dc..ac08940b2695 100644
--- a/external/bsd/openldap/dist/tests/data/regressions/its4448/slapd-meta.conf
+++ b/external/bsd/openldap/dist/tests/data/regressions/its4448/slapd-meta.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/regressions/its4448/slapd-meta.conf,v 1.1.2.5 2009/12/15 20:37:40 quanah Exp
+# OpenLDAP: pkg/ldap/tests/data/regressions/its4448/slapd-meta.conf,v 1.1.2.6 2010/04/13 20:23:58 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/retcode.conf b/external/bsd/openldap/dist/tests/data/retcode.conf
index d31d4c29a6ff..5f4086b504d1 100644
--- a/external/bsd/openldap/dist/tests/data/retcode.conf
+++ b/external/bsd/openldap/dist/tests/data/retcode.conf
@@ -1,8 +1,8 @@
# slapo-retcode standard track response codes configuration example
-# OpenLDAP: pkg/ldap/tests/data/retcode.conf,v 1.5.2.4 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/retcode.conf,v 1.5.2.5 2010/04/13 20:23:51 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/slapd-2db.conf b/external/bsd/openldap/dist/tests/data/slapd-2db.conf
index 14c294b46f20..1b1f8ece5e1c 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-2db.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-2db.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with indexing)
-# OpenLDAP: pkg/ldap/tests/data/slapd-2db.conf,v 1.1.2.3 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-2db.conf,v 1.1.2.5 2010/04/19 19:14:26 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -32,8 +32,8 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "cn=Everyone,ou=Groups,dc=example,dc=com"
-directory @TESTDIR@/db.1.a
subordinate
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
@@ -43,9 +43,9 @@ subordinate
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.b
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.b
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-aci.conf b/external/bsd/openldap/dist/tests/data/slapd-aci.conf
index 9b0faf70f751..16e637b1c522 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-aci.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-aci.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with indexing)
-# OpenLDAP: pkg/ldap/tests/data/slapd-aci.conf,v 1.4.2.5 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-aci.conf,v 1.4.2.7 2010/04/19 19:14:26 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -43,9 +43,9 @@ access to dn="cn=Subschema"
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-acl.conf b/external/bsd/openldap/dist/tests/data/slapd-acl.conf
index c1e974c85241..2633cdd0bbe8 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-acl.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-acl.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-acl.conf,v 1.71.2.9 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-acl.conf,v 1.71.2.11 2010/04/19 19:14:26 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -43,9 +43,9 @@ access to *
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-cache-master.conf b/external/bsd/openldap/dist/tests/data/slapd-cache-master.conf
index 14ed12c91c4f..0512cb9e4401 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-cache-master.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-cache-master.conf
@@ -1,8 +1,8 @@
# master slapd config -- for proxy cache testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-cache-master.conf,v 1.14.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-cache-master.conf,v 1.14.2.8 2010/04/19 19:14:26 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -33,9 +33,9 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-chain1.conf b/external/bsd/openldap/dist/tests/data/slapd-chain1.conf
index 79189c392c23..0dd0b014b6bd 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-chain1.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-chain1.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-chain1.conf,v 1.9.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-chain1.conf,v 1.9.2.8 2010/04/19 19:14:26 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -51,9 +51,10 @@ chain-idassert-bind bindmethod=simple
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#null#bind on
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-chain2.conf b/external/bsd/openldap/dist/tests/data/slapd-chain2.conf
index 265c5b155733..cc1668cea358 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-chain2.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-chain2.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-chain2.conf,v 1.9.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-chain2.conf,v 1.9.2.8 2010/04/19 19:14:27 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -40,9 +40,9 @@ argsfile @TESTDIR@/slapd.2.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.2.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-component.conf b/external/bsd/openldap/dist/tests/data/slapd-component.conf
index a7747ada3510..7c2746e8bec5 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-component.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-component.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-component.conf,v 1.13.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-component.conf,v 1.13.2.8 2010/04/19 19:14:27 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -38,9 +38,9 @@ moduleload @DATADIR@/comp_libs/compmatch.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#hdb#index objectClass eq
#ndb#dbname db_1
diff --git a/external/bsd/openldap/dist/tests/data/slapd-config-undo.conf b/external/bsd/openldap/dist/tests/data/slapd-config-undo.conf
index edf0087b058f..82b5af068ca5 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-config-undo.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-config-undo.conf
@@ -7,9 +7,9 @@ include @SCHEMADIR@/core.schema
database @BACKEND@
suffix "o=undo"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,o=undo"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-dds.conf b/external/bsd/openldap/dist/tests/data/slapd-dds.conf
index 1d6a068ab886..e33933a156e9 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-dds.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-dds.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with indexing)
-# OpenLDAP: pkg/ldap/tests/data/slapd-dds.conf,v 1.2.2.7 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-dds.conf,v 1.2.2.9 2010/04/19 19:14:27 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2005-2009 The OpenLDAP Foundation.
+## Copyright 2005-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -37,9 +37,9 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryExpireTimestamp eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-deltasync-master.conf b/external/bsd/openldap/dist/tests/data/slapd-deltasync-master.conf
index 099aabb2232a..cd2b5f67576a 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-deltasync-master.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-deltasync-master.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing of Delta SYNC replication
-# OpenLDAP: pkg/ldap/tests/data/slapd-deltasync-master.conf,v 1.3.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-deltasync-master.conf,v 1.3.2.8 2010/04/19 19:14:27 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -37,8 +37,8 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "cn=log"
-directory @TESTDIR@/db.1.b
rootdn "cn=Manager,dc=example,dc=com"
+#~null~#directory @TESTDIR@/db.1.b
#bdb#index objectClass eq
#bdb#index entryUUID,entryCSN eq
#hdb#index objectClass eq
@@ -53,9 +53,9 @@ syncprov-nopresent true
rootdn "cn=Manager,dc=example,dc=com"
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-deltasync-slave.conf b/external/bsd/openldap/dist/tests/data/slapd-deltasync-slave.conf
index d9044ecb14f0..ec9df85f8710 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-deltasync-slave.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-deltasync-slave.conf
@@ -1,8 +1,8 @@
# slave slapd config -- for testing of Delta SYNC replication
-# OpenLDAP: pkg/ldap/tests/data/slapd-deltasync-slave.conf,v 1.2.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-deltasync-slave.conf,v 1.2.2.8 2010/04/19 19:14:27 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -44,9 +44,10 @@ argsfile @TESTDIR@/slapd.2.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.2.a
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
+#null#bind on
+#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-dn.conf b/external/bsd/openldap/dist/tests/data/slapd-dn.conf
index 931b04f54942..078e996ac3c8 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-dn.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-dn.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with refint overlay)
-# OpenLDAP: pkg/ldap/tests/data/slapd-dn.conf,v 1.10.2.5 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-dn.conf,v 1.10.2.7 2010/04/19 19:14:27 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2004-2009 The OpenLDAP Foundation.
+## Copyright 2004-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -35,9 +35,9 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-dnssrv.conf b/external/bsd/openldap/dist/tests/data/slapd-dnssrv.conf
index c030058aaed4..5adb0c404470 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-dnssrv.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-dnssrv.conf
@@ -1,8 +1,8 @@
# DNS SRV slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-dnssrv.conf,v 1.19.2.4 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-dnssrv.conf,v 1.19.2.5 2010/04/13 20:23:52 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/slapd-dynlist.conf b/external/bsd/openldap/dist/tests/data/slapd-dynlist.conf
index b86e19eb284c..9f90250732f0 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-dynlist.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-dynlist.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with indexing)
-# OpenLDAP: pkg/ldap/tests/data/slapd-dynlist.conf,v 1.3.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-dynlist.conf,v 1.3.2.8 2010/04/19 19:14:27 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -40,9 +40,9 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-emptydn.conf b/external/bsd/openldap/dist/tests/data/slapd-emptydn.conf
index 787a9f559839..217c12079c2e 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-emptydn.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-emptydn.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with refint overlay)
-# OpenLDAP: pkg/ldap/tests/data/slapd-emptydn.conf,v 1.8.2.5 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-emptydn.conf,v 1.8.2.7 2010/04/19 19:14:27 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2004-2009 The OpenLDAP Foundation.
+## Copyright 2004-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -40,9 +40,9 @@ access to dn.exact="cn=Subschema"
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
@@ -65,9 +65,9 @@ access to dn.subtree="dc=example,dc=com"
database @BACKEND@
suffix ""
-directory @TESTDIR@/db.2.a
rootdn "cn=Manager,c=US"
rootpw secret
+#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-glue-ldap.conf b/external/bsd/openldap/dist/tests/data/slapd-glue-ldap.conf
index 721eac1a8e48..12ef79b3b892 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-glue-ldap.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-glue-ldap.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-glue-ldap.conf,v 1.6.2.4 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-glue-ldap.conf,v 1.6.2.5 2010/04/13 20:23:53 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/slapd-glue-syncrepl1.conf b/external/bsd/openldap/dist/tests/data/slapd-glue-syncrepl1.conf
index 0f7e86e3e2b6..c963098ff0c3 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-glue-syncrepl1.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-glue-syncrepl1.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for backglue testing (with indexing)
-# OpenLDAP: pkg/ldap/tests/data/slapd-glue-syncrepl1.conf,v 1.9.2.7 2009/06/27 18:49:51 quanah Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-glue-syncrepl1.conf,v 1.9.2.9 2010/04/19 19:14:27 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -34,8 +34,8 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "ou=Information Technology Division,ou=People,dc=example,dc=com"
subordinate
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager 1,dc=example,dc=com"
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
@@ -52,8 +52,8 @@ overlay syncprov
database @BACKEND@
suffix "ou=Groups,dc=example,dc=com"
subordinate
-directory @TESTDIR@/db.1.b
rootdn "cn=Manager 1,dc=example,dc=com"
+#~null~#directory @TESTDIR@/db.1.b
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
@@ -83,9 +83,9 @@ updateref @URI2@
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.c
rootdn "cn=Manager 1,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.c
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
diff --git a/external/bsd/openldap/dist/tests/data/slapd-glue-syncrepl2.conf b/external/bsd/openldap/dist/tests/data/slapd-glue-syncrepl2.conf
index 37ca22d0a5e5..f9712174e4cd 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-glue-syncrepl2.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-glue-syncrepl2.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for backglue testing (with indexing)
-# OpenLDAP: pkg/ldap/tests/data/slapd-glue-syncrepl2.conf,v 1.9.2.7 2009/06/27 18:49:51 quanah Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-glue-syncrepl2.conf,v 1.9.2.9 2010/04/19 19:14:27 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -34,8 +34,8 @@ argsfile @TESTDIR@/slapd.2.args
database @BACKEND@
suffix "ou=Information Technology Division,ou=People,dc=example,dc=com"
subordinate
-directory @TESTDIR@/db.2.a
rootdn "cn=Manager 2,dc=example,dc=com"
+#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
@@ -66,8 +66,8 @@ updateref @URI1@
database @BACKEND@
suffix "ou=Groups,dc=example,dc=com"
subordinate
-directory @TESTDIR@/db.2.b
rootdn "cn=Manager 2,dc=example,dc=com"
+#~null~#directory @TESTDIR@/db.2.b
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
@@ -85,9 +85,9 @@ overlay syncprov
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.2.c
rootdn "cn=Manager 2,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.2.c
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
diff --git a/external/bsd/openldap/dist/tests/data/slapd-glue.conf b/external/bsd/openldap/dist/tests/data/slapd-glue.conf
index 26938ac9f454..89ae5ea4f6fd 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-glue.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-glue.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for backglue testing (with indexing)
-# OpenLDAP: pkg/ldap/tests/data/slapd-glue.conf,v 1.21.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-glue.conf,v 1.21.2.8 2010/04/19 19:14:27 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -33,8 +33,8 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "ou=Information Technology Division,ou=People,dc=example,dc=com"
subordinate
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager, dc=example,dc=com"
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
@@ -47,8 +47,8 @@ rootdn "cn=Manager, dc=example,dc=com"
database @BACKEND@
suffix "ou=Groups,dc=example,dc=com"
subordinate
-directory @TESTDIR@/db.1.b
rootdn "cn=Manager, dc=example,dc=com"
+#~null~#directory @TESTDIR@/db.1.b
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
@@ -60,9 +60,9 @@ rootdn "cn=Manager, dc=example,dc=com"
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.c
rootdn "cn=Manager, dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.c
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
#bdb#index cn,sn pres,eq,sub,subany
diff --git a/external/bsd/openldap/dist/tests/data/slapd-idassert.conf b/external/bsd/openldap/dist/tests/data/slapd-idassert.conf
index 9b1f549ac8ac..1222db6cb74b 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-idassert.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-idassert.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-idassert.conf,v 1.16.2.7 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-idassert.conf,v 1.16.2.9 2010/04/19 19:14:28 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -59,9 +59,10 @@ access to *
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#null#bind on
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
@@ -77,9 +78,9 @@ access to dn.exact="cn=Proxy,ou=Admin,dc=example,dc=com"
database @BACKEND@
suffix "dc=example,dc=it"
-directory @TESTDIR@/db.2.a
rootdn "cn=Manager,dc=example,dc=it"
rootpw secret
+#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-ldapglue.conf b/external/bsd/openldap/dist/tests/data/slapd-ldapglue.conf
index 3b7cd2aede44..eca3731e30a6 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-ldapglue.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-ldapglue.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-ldapglue.conf,v 1.12.2.7 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-ldapglue.conf,v 1.12.2.9 2010/04/19 19:14:28 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -68,9 +68,9 @@ uri "@URI2@"
# root
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-ldapgluegroups.conf b/external/bsd/openldap/dist/tests/data/slapd-ldapgluegroups.conf
index 75085747cd18..f5bb27a8265c 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-ldapgluegroups.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-ldapgluegroups.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-ldapgluegroups.conf,v 1.8.2.7 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-ldapgluegroups.conf,v 1.8.2.9 2010/04/19 19:14:28 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -50,9 +50,9 @@ access to *
# people branch
database @BACKEND@
suffix "ou=Groups,dc=example,dc=com"
-directory @TESTDIR@/db.3.a
rootdn "cn=Manager,ou=Groups,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.3.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-ldapgluepeople.conf b/external/bsd/openldap/dist/tests/data/slapd-ldapgluepeople.conf
index 360b54475aea..c4516851ac88 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-ldapgluepeople.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-ldapgluepeople.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-ldapgluepeople.conf,v 1.10.2.7 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-ldapgluepeople.conf,v 1.10.2.9 2010/04/19 19:14:28 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -51,9 +51,10 @@ access to *
# people branch
database @BACKEND@
suffix "ou=People,dc=example,dc=com"
-directory @TESTDIR@/db.2.a
rootdn "cn=Manager,ou=People,dc=example,dc=com"
rootpw secret
+#null#bind on
+#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-limits.conf b/external/bsd/openldap/dist/tests/data/slapd-limits.conf
index 5158f0326b11..0ddd7667b190 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-limits.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-limits.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-limits.conf,v 1.13.2.5 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-limits.conf,v 1.13.2.7 2010/04/19 19:14:28 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -33,9 +33,10 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
+
# Need quality indices on "uid" to check "unchecked" limits...
#bdb#index objectClass eq
#bdb#index uid eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-master.conf b/external/bsd/openldap/dist/tests/data/slapd-master.conf
index fb97c08f84de..8bbbab0f42b3 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-master.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-master.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-master.conf,v 1.47.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-master.conf,v 1.47.2.8 2010/04/19 19:14:28 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -35,9 +35,9 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#hdb#index objectClass eq
#ndb#dbname db_1
diff --git a/external/bsd/openldap/dist/tests/data/slapd-meta-target1.conf b/external/bsd/openldap/dist/tests/data/slapd-meta-target1.conf
index 581b04728942..2bc1c044dbe1 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-meta-target1.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-meta-target1.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with indexing)
-# OpenLDAP: pkg/ldap/tests/data/slapd-meta-target1.conf,v 1.1.2.4 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-meta-target1.conf,v 1.1.2.6 2010/04/19 19:14:28 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -38,9 +38,10 @@ sockbuf_max_incoming 4194303
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#null#bind on
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-meta-target2.conf b/external/bsd/openldap/dist/tests/data/slapd-meta-target2.conf
index 59c4271376d1..281386ac55a4 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-meta-target2.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-meta-target2.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-meta-target2.conf,v 1.1.2.5 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-meta-target2.conf,v 1.1.2.7 2010/04/19 19:14:28 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -43,9 +43,10 @@ idletimeout 5
database @BACKEND@
suffix "ou=Meta,dc=example,dc=com"
-directory @TESTDIR@/db.2.a
rootdn "cn=Manager,ou=Meta,dc=example,dc=com"
rootpw secret
+#null#bind on
+#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-meta.conf b/external/bsd/openldap/dist/tests/data/slapd-meta.conf
index c0f6cafb567c..c3f0cc4496e0 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-meta.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-meta.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-meta.conf,v 1.12.2.7 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-meta.conf,v 1.12.2.8 2010/04/13 20:23:54 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/slapd-nis-master.conf b/external/bsd/openldap/dist/tests/data/slapd-nis-master.conf
index 7140f7a7f265..ab3eb7c548c0 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-nis-master.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-nis-master.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing (needs updating)
-# OpenLDAP: pkg/ldap/tests/data/slapd-nis-master.conf,v 1.20.2.5 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-nis-master.conf,v 1.20.2.6 2010/04/13 20:23:54 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/slapd-passwd.conf b/external/bsd/openldap/dist/tests/data/slapd-passwd.conf
index 66b3d04d9c4d..487cba209892 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-passwd.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-passwd.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-passwd.conf,v 1.21.2.4 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-passwd.conf,v 1.21.2.5 2010/04/13 20:23:54 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/slapd-ppolicy.conf b/external/bsd/openldap/dist/tests/data/slapd-ppolicy.conf
index 9f16cbc40c20..dc5e4e8dcbef 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-ppolicy.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-ppolicy.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-ppolicy.conf,v 1.11.2.7 2009/07/01 21:01:41 quanah Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-ppolicy.conf,v 1.11.2.9 2010/04/19 19:14:28 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -33,9 +33,9 @@ include @SCHEMADIR@/ppolicy.schema
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#hdb#index objectClass eq
#ndb#dbname db_1
diff --git a/external/bsd/openldap/dist/tests/data/slapd-proxycache.conf b/external/bsd/openldap/dist/tests/data/slapd-proxycache.conf
index 3a907a02f708..d63c88836f3e 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-proxycache.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-proxycache.conf
@@ -1,8 +1,8 @@
# proxy cache slapd config
-# OpenLDAP: pkg/ldap/tests/data/slapd-proxycache.conf,v 1.24.2.9 2009/08/25 21:24:47 quanah Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-proxycache.conf,v 1.24.2.11 2010/04/19 19:14:28 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -57,7 +57,7 @@ pcachebind (&(objectclass=person)(uid=)) 1 @BTTR@ sub "ou=Alumni Association,ou
#bdb#cachesize 20
#hdb#cachesize 20
-directory @TESTDIR@/db.2.a
+#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid,mail pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-pw.conf b/external/bsd/openldap/dist/tests/data/slapd-pw.conf
index 048cc7925e5c..765873eee784 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-pw.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-pw.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-pw.conf,v 1.34.2.7 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-pw.conf,v 1.34.2.9 2010/04/19 19:14:28 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -33,9 +33,10 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#null#bind on
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-ref-slave.conf b/external/bsd/openldap/dist/tests/data/slapd-ref-slave.conf
index 2c3ab79faf09..c64c1267f4fc 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-ref-slave.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-ref-slave.conf
@@ -1,8 +1,8 @@
# slave slapd config -- for default referral testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-ref-slave.conf,v 1.40.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-ref-slave.conf,v 1.40.2.8 2010/04/19 19:14:29 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -38,9 +38,9 @@ database @BACKEND@
#hdb#cachesize 0
suffix "o=University of Mich,c=US"
-directory @TESTDIR@/db.2.a
rootdn "cn=Manager,o=University of Mich,c=US"
rootpw secret
+#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-referrals.conf b/external/bsd/openldap/dist/tests/data/slapd-referrals.conf
index 951cb7fa6f35..2d92e249d1fe 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-referrals.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-referrals.conf
@@ -1,8 +1,8 @@
# referral slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-referrals.conf,v 1.15.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-referrals.conf,v 1.15.2.8 2010/04/19 19:14:29 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -32,9 +32,9 @@ argsfile @TESTDIR@/slapd.args
database @BACKEND@
suffix "c=us"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,c=us"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#hdb#index objectClass eq
#ndb#dbname db_1
diff --git a/external/bsd/openldap/dist/tests/data/slapd-refint.conf b/external/bsd/openldap/dist/tests/data/slapd-refint.conf
index cefb2d53aae4..56619235470c 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-refint.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-refint.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with refint overlay)
-# OpenLDAP: pkg/ldap/tests/data/slapd-refint.conf,v 1.9.2.5 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-refint.conf,v 1.9.2.7 2010/04/19 19:14:29 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2004-2009 The OpenLDAP Foundation.
+## Copyright 2004-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -36,9 +36,9 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "o=refint"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,o=refint"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-relay.conf b/external/bsd/openldap/dist/tests/data/slapd-relay.conf
index 873d896324ae..939c82304b49 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-relay.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-relay.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-relay.conf,v 1.13.2.5 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-relay.conf,v 1.13.2.7 2010/04/19 19:14:29 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -41,9 +41,10 @@ argsfile @TESTDIR@/slapd.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#null#bind on
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#hdb#index objectClass eq
#ndb#dbname db_1
diff --git a/external/bsd/openldap/dist/tests/data/slapd-repl-slave-remote.conf b/external/bsd/openldap/dist/tests/data/slapd-repl-slave-remote.conf
index 5ce9aec4afcb..445f976d1e79 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-repl-slave-remote.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-repl-slave-remote.conf
@@ -1,8 +1,8 @@
# slave slapd config -- for testing of replication
-# OpenLDAP: pkg/ldap/tests/data/slapd-repl-slave-remote.conf,v 1.2.2.7 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-repl-slave-remote.conf,v 1.2.2.9 2010/04/19 19:14:29 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -50,13 +50,14 @@ access to *
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.2.a
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
# HACK: use the RootDN of the monitor database as UpdateDN so ACLs apply
# without the need to write the UpdateDN before starting replication
updatedn "cn=Monitor"
updateref @URI1@
+#null#bind on
+#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID pres,eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-retcode.conf b/external/bsd/openldap/dist/tests/data/slapd-retcode.conf
index c47898dec007..215c578bbd9e 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-retcode.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-retcode.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with indexing)
-# OpenLDAP: pkg/ldap/tests/data/slapd-retcode.conf,v 1.4.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-retcode.conf,v 1.4.2.8 2010/04/19 19:14:29 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -37,9 +37,9 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-schema.conf b/external/bsd/openldap/dist/tests/data/slapd-schema.conf
index f60afbde84f8..fb1561852493 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-schema.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-schema.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with indexing)
-# OpenLDAP: pkg/ldap/tests/data/slapd-schema.conf,v 1.35.2.7 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-schema.conf,v 1.35.2.9 2010/04/19 19:14:29 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -46,7 +46,7 @@ rootdse @DATADIR@/rootdse.ldif
database @BACKEND@
suffix "o=OpenLDAP Project,l=Internet"
-directory @TESTDIR@/db.1.a
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#hdb#index objectClass eq
#ndb#dbname db_1_a
diff --git a/external/bsd/openldap/dist/tests/data/slapd-sql-syncrepl-master.conf b/external/bsd/openldap/dist/tests/data/slapd-sql-syncrepl-master.conf
index 2b8f6bb8342d..034b44d70bbe 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-sql-syncrepl-master.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-sql-syncrepl-master.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-sql-syncrepl-master.conf,v 1.6.2.4 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-sql-syncrepl-master.conf,v 1.6.2.5 2010/04/13 20:23:55 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/slapd-sql.conf b/external/bsd/openldap/dist/tests/data/slapd-sql.conf
index a2f3b6df3bfe..350ebce6d66c 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-sql.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-sql.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-sql.conf,v 1.15.2.4 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-sql.conf,v 1.15.2.5 2010/04/13 20:23:55 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-master.conf b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-master.conf
index f571cce3205c..08353bfb47a3 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-master.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-master.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing of SYNC replication
-# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-master.conf,v 1.17.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-master.conf,v 1.17.2.8 2010/04/19 19:14:29 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -35,9 +35,9 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-multiproxy.conf b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-multiproxy.conf
index d7e2fd20c8f5..86ffef29b9b6 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-multiproxy.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-multiproxy.conf
@@ -1,8 +1,8 @@
# slave slapd config -- for testing of SYNC replication with intermediate proxy
-# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-multiproxy.conf,v 1.2.2.7 2009/03/05 22:19:39 quanah Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-multiproxy.conf,v 1.2.2.9 2010/04/19 19:14:29 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -37,9 +37,9 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist-ldap.conf b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist-ldap.conf
index 8b0e1c39708a..6e6b3e48e1c4 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist-ldap.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist-ldap.conf
@@ -1,8 +1,8 @@
# slave slapd config -- for testing of SYNC replication with intermediate proxy
-# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-slave-persist-ldap.conf,v 1.5.2.8 2009/03/11 03:09:08 quanah Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-slave-persist-ldap.conf,v 1.5.2.9 2010/04/13 20:23:55 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist1.conf b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist1.conf
index d919a1c17214..b9e280af6c11 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist1.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist1.conf
@@ -1,8 +1,8 @@
# slave slapd config -- for testing of SYNC replication
-# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-slave-persist1.conf,v 1.23.2.8 2009/03/05 22:19:39 quanah Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-slave-persist1.conf,v 1.23.2.10 2010/04/19 19:14:29 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -44,9 +44,10 @@ argsfile @TESTDIR@/slapd.4.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.4.a
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
+#null#bind on
+#~null~#directory @TESTDIR@/db.4.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist2.conf b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist2.conf
index 4be53c712d89..31723cdc187a 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist2.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist2.conf
@@ -1,5 +1,5 @@
# slave slapd config -- for testing of SYNC replication
-# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-slave-persist2.conf,v 1.15.2.3 2008/09/03 20:58:06 quanah Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-slave-persist2.conf,v 1.15.2.4 2010/04/19 19:14:29 quanah Exp
include @SCHEMADIR@/core.schema
include @SCHEMADIR@/cosine.schema
@@ -21,9 +21,9 @@ argsfile @TESTDIR@/slapd.5.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.5.a
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.5.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist3.conf b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist3.conf
index 8c0e7cec5ecf..d619e27708ba 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist3.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-persist3.conf
@@ -1,8 +1,8 @@
# slave slapd config -- for testing of SYNC replication
-# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-slave-persist3.conf,v 1.18.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-slave-persist3.conf,v 1.18.2.8 2010/04/19 19:14:29 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -33,9 +33,9 @@ argsfile @TESTDIR@/slapd.6.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.6.a
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.6.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-refresh1.conf b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-refresh1.conf
index 1f39de5117cb..c8d3a6763ca8 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-refresh1.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-refresh1.conf
@@ -1,8 +1,8 @@
# slave slapd config -- for testing of SYNC replication
-# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-slave-refresh1.conf,v 1.28.2.7 2009/03/05 22:19:39 quanah Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-slave-refresh1.conf,v 1.28.2.9 2010/04/19 19:14:30 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -35,9 +35,10 @@ argsfile @TESTDIR@/slapd.2.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.2.a
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
+#null#bind on
+#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-refresh2.conf b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-refresh2.conf
index ccc9b899fb43..dcdce9970d99 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-refresh2.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-syncrepl-slave-refresh2.conf
@@ -1,8 +1,8 @@
# slave slapd config -- for testing of SYNC replication
-# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-slave-refresh2.conf,v 1.20.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-slave-refresh2.conf,v 1.20.2.8 2010/04/19 19:14:30 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -33,9 +33,9 @@ argsfile @TESTDIR@/slapd.3.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.3.a
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.3.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#index entryUUID,entryCSN eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-translucent-local.conf b/external/bsd/openldap/dist/tests/data/slapd-translucent-local.conf
index 20d6973d19e1..e881640ede42 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-translucent-local.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-translucent-local.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with translucent overlay)
-# OpenLDAP: pkg/ldap/tests/data/slapd-translucent-local.conf,v 1.9.2.7 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-translucent-local.conf,v 1.9.2.9 2010/04/19 19:14:30 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2004-2009 The OpenLDAP Foundation.
+## Copyright 2004-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -41,9 +41,10 @@ argsfile @TESTDIR@/slapd.2.args
database @BACKEND@
suffix "o=translucent"
-directory @TESTDIR@/db.2.a
rootdn "o=translucent"
rootpw secret
+#null#bind on
+#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-translucent-remote.conf b/external/bsd/openldap/dist/tests/data/slapd-translucent-remote.conf
index 8ec0edeb3148..2a728d53825e 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-translucent-remote.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-translucent-remote.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with translucent overlay)
-# OpenLDAP: pkg/ldap/tests/data/slapd-translucent-remote.conf,v 1.6.2.5 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-translucent-remote.conf,v 1.6.2.7 2010/04/19 19:14:30 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2004-2009 The OpenLDAP Foundation.
+## Copyright 2004-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -36,9 +36,10 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "o=translucent"
-directory @TESTDIR@/db.1.a
rootdn "o=translucent"
rootpw secret
+#null#bind on
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-unique.conf b/external/bsd/openldap/dist/tests/data/slapd-unique.conf
index 6a55a04a782f..a52b421891d6 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-unique.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-unique.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with unique overlay)
-# OpenLDAP: pkg/ldap/tests/data/slapd-unique.conf,v 1.11.2.5 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-unique.conf,v 1.11.2.7 2010/04/19 19:14:30 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2004-2009 The OpenLDAP Foundation.
+## Copyright 2004-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -36,9 +36,9 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "o=unique"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,o=unique"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-valregex.conf b/external/bsd/openldap/dist/tests/data/slapd-valregex.conf
index cf1943660008..dc5e9d636c15 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-valregex.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-valregex.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-valregex.conf,v 1.1.2.2 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-valregex.conf,v 1.1.2.4 2010/04/19 19:14:30 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -43,9 +43,10 @@ access to *
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#null#bind on
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-valsort.conf b/external/bsd/openldap/dist/tests/data/slapd-valsort.conf
index 8b2efc023337..94c28fbb313c 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-valsort.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-valsort.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with unique overlay)
-# OpenLDAP: pkg/ldap/tests/data/slapd-valsort.conf,v 1.3.2.7 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-valsort.conf,v 1.3.2.9 2010/04/19 19:14:30 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2004-2009 The OpenLDAP Foundation.
+## Copyright 2004-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -34,9 +34,9 @@ argsfile @TESTDIR@/slapd.1.args
database @BACKEND@
suffix "o=valsort"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,o=valsort"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd-whoami.conf b/external/bsd/openldap/dist/tests/data/slapd-whoami.conf
index f36596549d19..a02e3104f8e5 100644
--- a/external/bsd/openldap/dist/tests/data/slapd-whoami.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd-whoami.conf
@@ -1,8 +1,8 @@
# master slapd config -- for testing
-# OpenLDAP: pkg/ldap/tests/data/slapd-whoami.conf,v 1.10.2.7 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd-whoami.conf,v 1.10.2.9 2010/04/19 19:14:30 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -53,9 +53,9 @@ access to *
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/slapd.conf b/external/bsd/openldap/dist/tests/data/slapd.conf
index c3bc6d76dfb0..2304097caa96 100644
--- a/external/bsd/openldap/dist/tests/data/slapd.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with indexing)
-# OpenLDAP: pkg/ldap/tests/data/slapd.conf,v 1.39.2.7 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd.conf,v 1.39.2.9 2010/04/19 19:14:30 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -38,9 +38,10 @@ sockbuf_max_incoming 4194303
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#null#bind on
+#~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#bdb#checkpoint 1024 5
diff --git a/external/bsd/openldap/dist/tests/data/slapd2.conf b/external/bsd/openldap/dist/tests/data/slapd2.conf
index 2015317650f4..72f11eeb81ad 100644
--- a/external/bsd/openldap/dist/tests/data/slapd2.conf
+++ b/external/bsd/openldap/dist/tests/data/slapd2.conf
@@ -1,8 +1,8 @@
# stand-alone slapd config -- for testing (with indexing)
-# OpenLDAP: pkg/ldap/tests/data/slapd2.conf,v 1.11.2.6 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/slapd2.conf,v 1.11.2.8 2010/04/19 19:14:30 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -33,9 +33,9 @@ argsfile @TESTDIR@/slapd.2.args
database @BACKEND@
suffix "dc=example,dc=com"
-directory @TESTDIR@/db.2.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
+#~null~#directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub
#hdb#index objectClass eq
diff --git a/external/bsd/openldap/dist/tests/data/test.schema b/external/bsd/openldap/dist/tests/data/test.schema
index a35300f9b400..e9b547fb59f3 100644
--- a/external/bsd/openldap/dist/tests/data/test.schema
+++ b/external/bsd/openldap/dist/tests/data/test.schema
@@ -1,8 +1,8 @@
# OpenLDAP Test schema
-# OpenLDAP: pkg/ldap/tests/data/test.schema,v 1.9.2.5 2009/01/22 00:01:16 kurt Exp
+# OpenLDAP: pkg/ldap/tests/data/test.schema,v 1.9.2.6 2010/04/13 20:23:57 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/progs/Makefile.in b/external/bsd/openldap/dist/tests/progs/Makefile.in
index 016bf818ec34..8d69c2879c0f 100644
--- a/external/bsd/openldap/dist/tests/progs/Makefile.in
+++ b/external/bsd/openldap/dist/tests/progs/Makefile.in
@@ -1,8 +1,8 @@
## Makefile.in for test programs
-# OpenLDAP: pkg/ldap/tests/progs/Makefile.in,v 1.22.2.5 2009/02/17 23:47:04 quanah Exp
+# OpenLDAP: pkg/ldap/tests/progs/Makefile.in,v 1.22.2.7 2010/04/19 19:14:31 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -14,11 +14,11 @@
## .
PROGRAMS = slapd-tester slapd-search slapd-read slapd-addel slapd-modrdn \
- slapd-modify slapd-bind
+ slapd-modify slapd-bind ldif-filter
SRCS = slapd-common.c \
slapd-tester.c slapd-search.c slapd-read.c slapd-addel.c \
- slapd-modrdn.c slapd-modify.c slapd-bind.c
+ slapd-modrdn.c slapd-modify.c slapd-bind.c ldif-filter.c
LDAP_INCDIR= ../../include
LDAP_LIBDIR= ../../libraries
@@ -54,3 +54,6 @@ slapd-modify: slapd-modify.o $(OBJS) $(XLIBS)
slapd-bind: slapd-bind.o $(OBJS) $(XLIBS)
$(LTLINK) -o $@ slapd-bind.o $(OBJS) $(LIBS)
+ldif-filter: ldif-filter.o $(XLIBS)
+ $(LTLINK) -o $@ ldif-filter.o $(LIBS)
+
diff --git a/external/bsd/openldap/dist/tests/progs/ldif-filter.c b/external/bsd/openldap/dist/tests/progs/ldif-filter.c
new file mode 100644
index 000000000000..5fe2f33a2d0a
--- /dev/null
+++ b/external/bsd/openldap/dist/tests/progs/ldif-filter.c
@@ -0,0 +1,246 @@
+/* $NetBSD: ldif-filter.c,v 1.1.1.1 2010/12/12 15:24:16 adam Exp $ */
+
+/* ldif-filter -- clean up LDIF testdata from stdin */
+/* OpenLDAP: pkg/ldap/tests/progs/ldif-filter.c,v 1.3.2.2 2010/04/19 19:14:31 quanah Exp */
+/* This work is part of OpenLDAP Software .
+ *
+ * Copyright 2009-2010 The OpenLDAP Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * .
+ */
+
+#include "portable.h"
+
+#include
+#include
+#include
+#include
+#include
+
+#define DEFAULT_SPECS "ndb=a,null=n"
+
+typedef struct { char *val; size_t len, alloc; } String;
+typedef struct { String *val; size_t len, alloc; } Strings;
+
+/* Flags and corresponding program options */
+enum { SORT_ATTRS = 1, SORT_ENTRIES = 2, NO_OUTPUT = 4, DUMMY_FLAG = 8 };
+static const char spec_options[] = "aen"; /* option index = log2(enum flag) */
+
+static const char *progname = "ldif-filter";
+static const String null_string = { NULL, 0, 0 };
+
+static void
+usage( void )
+{
+ fprintf( stderr, "\
+Usage: %s [-b backend] [-s spec[,spec]...]\n\
+Filter standard input by first matching '[]=[a][e][n]':\n\
+ - Remove LDIF comments.\n\
+ - 'a': Sort attributes in entries.\n\
+ - 'e': Sort any entries separated by just one empty line.\n\
+ - 'n': Output nothing.\n\
+ defaults to the $BACKEND environment variable.\n\
+Use specs '%s' if no spec on the command line applies.\n",
+ progname, DEFAULT_SPECS );
+ exit( EXIT_FAILURE );
+}
+
+/* Return flags from "backend=flags" in spec; nonzero if backend found */
+static unsigned
+get_flags( const char *backend, const char *spec )
+{
+ size_t len = strlen( backend );
+ unsigned flags = DUMMY_FLAG;
+ const char *tmp;
+
+ while ( '=' != *(spec += strncmp( spec, backend, len ) ? 0 : len) ) {
+ if ( (spec = strchr( spec, ',' )) == NULL ) {
+ return 0;
+ }
+ ++spec;
+ }
+ while ( *++spec && *spec != ',' ) {
+ if ( (tmp = strchr( spec_options, *spec )) == NULL ) {
+ usage();
+ }
+ flags |= 1U << (tmp - spec_options);
+ }
+ return flags;
+}
+
+#define APPEND(s /* String or Strings */, data, count, isString) do { \
+ size_t slen = (s)->len, salloc = (s)->alloc, sz = sizeof *(s)->val; \
+ if ( salloc <= slen + (count) ) { \
+ (s)->alloc = salloc += salloc + ((count)|7) + 1; \
+ (s)->val = xrealloc( (s)->val, sz * salloc ); \
+ } \
+ memcpy( (s)->val + slen, data, sz * ((count) + !!(isString)) ); \
+ (s)->len = slen + (count); \
+} while (0)
+
+static void *
+xrealloc( void *ptr, size_t len )
+{
+ if ( (ptr = realloc( ptr, len )) == NULL ) {
+ perror( progname );
+ exit( EXIT_FAILURE );
+ }
+ return ptr;
+}
+
+static int
+cmp( const void *s, const void *t )
+{
+ return strcmp( ((const String *) s)->val, ((const String *) t)->val );
+}
+
+static void
+sort_strings( Strings *ss, size_t offset )
+{
+ qsort( ss->val + offset, ss->len - offset, sizeof(*ss->val), cmp );
+}
+
+/* Build entry ss[n] from attrs ss[n...], and free the attrs */
+static void
+build_entry( Strings *ss, size_t n, unsigned flags, size_t new_len )
+{
+ String *vals = ss->val, *e = &vals[n];
+ size_t end = ss->len;
+ char *ptr;
+
+ if ( flags & SORT_ATTRS ) {
+ sort_strings( ss, n + 1 );
+ }
+ e->val = xrealloc( e->val, e->alloc = new_len + 1 );
+ ptr = e->val + e->len;
+ e->len = new_len;
+ ss->len = ++n;
+ for ( ; n < end; free( vals[n++].val )) {
+ ptr = strcpy( ptr, vals[n].val ) + vals[n].len;
+ }
+ assert( ptr == e->val + new_len );
+}
+
+/* Flush entries to stdout and free them */
+static void
+flush_entries( Strings *ss, const char *sep, unsigned flags )
+{
+ size_t i, end = ss->len;
+ const char *prefix = "";
+
+ if ( flags & SORT_ENTRIES ) {
+ sort_strings( ss, 0 );
+ }
+ for ( i = 0; i < end; i++, prefix = sep ) {
+ if ( printf( "%s%s", prefix, ss->val[i].val ) < 0 ) {
+ perror( progname );
+ exit( EXIT_FAILURE );
+ }
+ free( ss->val[i].val );
+ }
+ ss->len = 0;
+}
+
+static void
+filter_stdin( unsigned flags )
+{
+ char line[256];
+ Strings ss = { NULL, 0, 0 }; /* entries + attrs of partial entry */
+ size_t entries = 0, attrs_totlen = 0, line_len;
+ const char *entry_sep = "\n", *sep = "";
+ int comment = 0, eof = 0, eol, prev_eol = 1; /* flags */
+ String *s;
+
+ /* LDIF = Entries ss[..entries-1] + sep + attrs ss[entries..] + line */
+ for ( ; !eof || ss.len || *sep; prev_eol = eol ) {
+ if ( eof || (eof = !fgets( line, sizeof(line), stdin ))) {
+ strcpy( line, prev_eol ? "" : *sep ? sep : "\n" );
+ }
+ line_len = strlen( line );
+ eol = (line_len == 0 || line[line_len - 1] == '\n');
+
+ if ( *line == ' ' ) { /* continuation line? */
+ prev_eol = 0;
+ } else if ( prev_eol ) { /* start of logical line? */
+ comment = (*line == '#');
+ }
+ if ( comment || (flags & NO_OUTPUT) ) {
+ continue;
+ }
+
+ /* Collect attrs for partial entry in ss[entries...] */
+ if ( !prev_eol && attrs_totlen != 0 ) {
+ goto grow_attr;
+ } else if ( line_len > (*line == '\r' ? 2 : 1) ) {
+ APPEND( &ss, &null_string, 1, 0 ); /* new attr */
+ grow_attr:
+ s = &ss.val[ss.len - 1];
+ APPEND( s, line, line_len, 1 ); /* strcat to attr */
+ attrs_totlen += line_len;
+ continue;
+ }
+
+ /* Empty line - consume sep+attrs or entries+sep */
+ if ( attrs_totlen != 0 ) {
+ entry_sep = sep;
+ if ( entries == 0 )
+ fputs( sep, stdout );
+ build_entry( &ss, entries++, flags, attrs_totlen );
+ attrs_totlen = 0;
+ } else {
+ flush_entries( &ss, entry_sep, flags );
+ fputs( sep, stdout );
+ entries = 0;
+ }
+ sep = "\r\n" + 2 - line_len; /* sep = copy(line) */
+ }
+
+ free( ss.val );
+}
+
+int
+main( int argc, char **argv )
+{
+ const char *backend = getenv( "BACKEND" ), *specs = "", *tmp;
+ unsigned flags;
+ int i;
+
+ if ( argc > 0 ) {
+ progname = (tmp = strrchr( argv[0], '/' )) ? tmp+1 : argv[0];
+ }
+
+ while ( (i = getopt( argc, argv, "b:s:" )) != EOF ) {
+ switch ( i ) {
+ case 'b':
+ backend = optarg;
+ break;
+ case 's':
+ specs = optarg;
+ break;
+ default:
+ usage();
+ }
+ }
+ if ( optind < argc ) {
+ usage();
+ }
+ if ( backend == NULL ) {
+ backend = "";
+ }
+
+ flags = get_flags( backend, specs );
+ filter_stdin( flags ? flags : get_flags( backend, DEFAULT_SPECS ));
+ if ( fclose( stdout ) == EOF ) {
+ perror( progname );
+ return EXIT_FAILURE;
+ }
+
+ return EXIT_SUCCESS;
+}
diff --git a/external/bsd/openldap/dist/tests/progs/slapd-addel.c b/external/bsd/openldap/dist/tests/progs/slapd-addel.c
index 5040a1273da5..f22724631cf8 100644
--- a/external/bsd/openldap/dist/tests/progs/slapd-addel.c
+++ b/external/bsd/openldap/dist/tests/progs/slapd-addel.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapd-addel.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapd-addel.c,v 1.1.1.3 2010/12/12 15:24:16 adam Exp $ */
-/* OpenLDAP: pkg/ldap/tests/progs/slapd-addel.c,v 1.41.2.8 2009/01/22 00:01:17 kurt Exp */
+/* OpenLDAP: pkg/ldap/tests/progs/slapd-addel.c,v 1.41.2.9 2010/04/13 20:23:58 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/progs/slapd-bind.c b/external/bsd/openldap/dist/tests/progs/slapd-bind.c
index 27e6bb05f549..b87d7f67ceb1 100644
--- a/external/bsd/openldap/dist/tests/progs/slapd-bind.c
+++ b/external/bsd/openldap/dist/tests/progs/slapd-bind.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapd-bind.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapd-bind.c,v 1.1.1.3 2010/12/12 15:24:16 adam Exp $ */
-/* OpenLDAP: pkg/ldap/tests/progs/slapd-bind.c,v 1.18.2.11 2009/03/09 23:16:48 quanah Exp */
+/* OpenLDAP: pkg/ldap/tests/progs/slapd-bind.c,v 1.18.2.12 2010/04/13 20:23:58 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/progs/slapd-common.c b/external/bsd/openldap/dist/tests/progs/slapd-common.c
index aaa40803b3be..888412ed1b1c 100644
--- a/external/bsd/openldap/dist/tests/progs/slapd-common.c
+++ b/external/bsd/openldap/dist/tests/progs/slapd-common.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapd-common.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapd-common.c,v 1.1.1.3 2010/12/12 15:24:16 adam Exp $ */
-/* OpenLDAP: pkg/ldap/tests/progs/slapd-common.c,v 1.4.2.9 2009/10/30 23:59:29 quanah Exp */
+/* OpenLDAP: pkg/ldap/tests/progs/slapd-common.c,v 1.4.2.10 2010/04/13 20:23:58 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/progs/slapd-common.h b/external/bsd/openldap/dist/tests/progs/slapd-common.h
index 0fbaa24ae72d..babb617ce8f9 100644
--- a/external/bsd/openldap/dist/tests/progs/slapd-common.h
+++ b/external/bsd/openldap/dist/tests/progs/slapd-common.h
@@ -1,9 +1,9 @@
-/* $NetBSD: slapd-common.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapd-common.h,v 1.1.1.3 2010/12/12 15:24:16 adam Exp $ */
-/* OpenLDAP: pkg/ldap/tests/progs/slapd-common.h,v 1.2.2.7 2009/02/10 17:13:05 quanah Exp */
+/* OpenLDAP: pkg/ldap/tests/progs/slapd-common.h,v 1.2.2.8 2010/04/13 20:23:58 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/progs/slapd-modify.c b/external/bsd/openldap/dist/tests/progs/slapd-modify.c
index 301d4401d458..95269bf60dec 100644
--- a/external/bsd/openldap/dist/tests/progs/slapd-modify.c
+++ b/external/bsd/openldap/dist/tests/progs/slapd-modify.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapd-modify.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapd-modify.c,v 1.1.1.3 2010/12/12 15:24:16 adam Exp $ */
-/* OpenLDAP: pkg/ldap/tests/progs/slapd-modify.c,v 1.19.2.7 2009/01/22 00:01:17 kurt Exp */
+/* OpenLDAP: pkg/ldap/tests/progs/slapd-modify.c,v 1.19.2.8 2010/04/13 20:23:58 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/progs/slapd-modrdn.c b/external/bsd/openldap/dist/tests/progs/slapd-modrdn.c
index dfda7da9d53e..946eac4da76f 100644
--- a/external/bsd/openldap/dist/tests/progs/slapd-modrdn.c
+++ b/external/bsd/openldap/dist/tests/progs/slapd-modrdn.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapd-modrdn.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapd-modrdn.c,v 1.1.1.3 2010/12/12 15:24:16 adam Exp $ */
-/* OpenLDAP: pkg/ldap/tests/progs/slapd-modrdn.c,v 1.22.2.8 2009/03/05 20:30:03 quanah Exp */
+/* OpenLDAP: pkg/ldap/tests/progs/slapd-modrdn.c,v 1.22.2.9 2010/04/13 20:23:58 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/progs/slapd-read.c b/external/bsd/openldap/dist/tests/progs/slapd-read.c
index 6bc2782de78f..11bee6cb2ed4 100644
--- a/external/bsd/openldap/dist/tests/progs/slapd-read.c
+++ b/external/bsd/openldap/dist/tests/progs/slapd-read.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapd-read.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapd-read.c,v 1.1.1.3 2010/12/12 15:24:16 adam Exp $ */
-/* OpenLDAP: pkg/ldap/tests/progs/slapd-read.c,v 1.37.2.9 2009/02/10 17:13:05 quanah Exp */
+/* OpenLDAP: pkg/ldap/tests/progs/slapd-read.c,v 1.37.2.10 2010/04/13 20:23:58 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/progs/slapd-search.c b/external/bsd/openldap/dist/tests/progs/slapd-search.c
index b2c74903dc32..0e88331628a8 100644
--- a/external/bsd/openldap/dist/tests/progs/slapd-search.c
+++ b/external/bsd/openldap/dist/tests/progs/slapd-search.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapd-search.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapd-search.c,v 1.1.1.3 2010/12/12 15:24:17 adam Exp $ */
-/* OpenLDAP: pkg/ldap/tests/progs/slapd-search.c,v 1.41.2.11 2009/07/01 17:09:44 quanah Exp */
+/* OpenLDAP: pkg/ldap/tests/progs/slapd-search.c,v 1.41.2.12 2010/04/13 20:23:59 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/progs/slapd-tester.c b/external/bsd/openldap/dist/tests/progs/slapd-tester.c
index be9112ce435f..9da9ae7770f2 100644
--- a/external/bsd/openldap/dist/tests/progs/slapd-tester.c
+++ b/external/bsd/openldap/dist/tests/progs/slapd-tester.c
@@ -1,9 +1,9 @@
-/* $NetBSD: slapd-tester.c,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $ */
+/* $NetBSD: slapd-tester.c,v 1.1.1.3 2010/12/12 15:24:17 adam Exp $ */
-/* OpenLDAP: pkg/ldap/tests/progs/slapd-tester.c,v 1.46.2.9 2009/01/22 00:01:18 kurt Exp */
+/* OpenLDAP: pkg/ldap/tests/progs/slapd-tester.c,v 1.46.2.10 2010/04/13 20:23:59 kurt Exp */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1999-2009 The OpenLDAP Foundation.
+ * Copyright 1999-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/run.in b/external/bsd/openldap/dist/tests/run.in
index 7bc3950e15fa..576a34427edf 100644
--- a/external/bsd/openldap/dist/tests/run.in
+++ b/external/bsd/openldap/dist/tests/run.in
@@ -1,8 +1,8 @@
#!/bin/sh
-# OpenLDAP: pkg/ldap/tests/run.in,v 1.47.2.14 2009/08/13 00:05:07 quanah Exp
+# OpenLDAP: pkg/ldap/tests/run.in,v 1.47.2.16 2010/04/19 19:14:26 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -23,9 +23,13 @@ EGREP_CMD="@EGREP@"
export SRCDIR TOPSRCDIR LN_S EGREP_CMD
-# backends
+# backends known to ./run -b (used to deduce $BACKENDTYPE)
AC_bdb=@BUILD_BDB@
AC_hdb=@BUILD_HDB@
+AC_ldif=yes
+AC_null=@BUILD_NULL@
+
+# other backends
AC_ldap=ldap@BUILD_LDAP@
AC_meta=meta@BUILD_META@
AC_monitor=@BUILD_MONITOR@
@@ -63,7 +67,7 @@ if test "${AC_meta}" = "metamod" && test "${AC_LIBS_DYNAMIC}" = "static" ; then
AC_meta="metano"
fi
-export AC_bdb AC_hdb AC_ldap AC_meta AC_monitor AC_relay AC_sql \
+export AC_bdb AC_hdb AC_ldap AC_meta AC_monitor AC_null AC_relay AC_sql \
AC_accesslog AC_dds AC_dynlist AC_memberof AC_pcache AC_ppolicy \
AC_refint AC_retcode AC_rwm AC_unique AC_syncprov AC_translucent \
AC_valsort \
diff --git a/external/bsd/openldap/dist/tests/scripts/all b/external/bsd/openldap/dist/tests/scripts/all
index 713b3d3d8d8b..7e6d3713a19c 100644
--- a/external/bsd/openldap/dist/tests/scripts/all
+++ b/external/bsd/openldap/dist/tests/scripts/all
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/all,v 1.26.2.8 2009/08/13 00:05:07 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/all,v 1.26.2.9 2010/04/13 20:23:59 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/scripts/conf.sh b/external/bsd/openldap/dist/tests/scripts/conf.sh
index bcb2e95f67ed..7b887b9719e5 100644
--- a/external/bsd/openldap/dist/tests/scripts/conf.sh
+++ b/external/bsd/openldap/dist/tests/scripts/conf.sh
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/conf.sh,v 1.49.2.10 2009/08/25 21:24:47 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/conf.sh,v 1.49.2.12 2010/04/19 19:14:31 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -33,6 +33,8 @@ else
fi
sed -e "s/@BACKEND@/${BACKEND}/" \
-e "s/^#${BACKEND}#//" \
+ -e "/^#~/s/^#[^#]*~${BACKEND}~[^#]*#/#omit: /" \
+ -e "s/^#~[^#]*~#//" \
-e "s/@RELAY@/${RELAY}/" \
-e "s/^#relay-${RELAY}#//" \
-e "s/^#${BACKENDTYPE}#//" \
diff --git a/external/bsd/openldap/dist/tests/scripts/defines.sh b/external/bsd/openldap/dist/tests/scripts/defines.sh
index 0300658eebe9..45bc852c5671 100644
--- a/external/bsd/openldap/dist/tests/scripts/defines.sh
+++ b/external/bsd/openldap/dist/tests/scripts/defines.sh
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/defines.sh,v 1.141.2.23 2009/12/04 18:38:02 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/defines.sh,v 1.141.2.25 2010/04/19 19:14:31 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -163,7 +163,6 @@ TOOLARGS="-x $LDAP_TOOLARGS"
TOOLPROTO="-P 3"
# cmds
-LDIFFILTER=$SRCDIR/scripts/acfilter.sh
CONFFILTER=$SRCDIR/scripts/conf.sh
MONITORDATA=$SRCDIR/scripts/monitor_data.sh
@@ -192,6 +191,7 @@ LDAPWHOAMI="$CLIENTDIR/ldapwhoami $TOOLARGS"
LDAPCOMPARE="$CLIENTDIR/ldapcompare $TOOLARGS"
LDAPEXOP="$CLIENTDIR/ldapexop $TOOLARGS"
SLAPDTESTER=$PROGDIR/slapd-tester
+LDIFFILTER=$PROGDIR/ldif-filter
LVL=${SLAPD_DEBUG-0x4105}
LOCALHOST=localhost
BASEPORT=${SLAPD_BASEPORT-9010}
diff --git a/external/bsd/openldap/dist/tests/scripts/its-all b/external/bsd/openldap/dist/tests/scripts/its-all
index 6d7ec7dd1a40..ae6910fd0bc8 100644
--- a/external/bsd/openldap/dist/tests/scripts/its-all
+++ b/external/bsd/openldap/dist/tests/scripts/its-all
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/its-all,v 1.4.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/its-all,v 1.4.2.5 2010/04/13 20:23:59 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/scripts/monitor_data.sh b/external/bsd/openldap/dist/tests/scripts/monitor_data.sh
index e5a81e136d03..4a8f6f9870c8 100644
--- a/external/bsd/openldap/dist/tests/scripts/monitor_data.sh
+++ b/external/bsd/openldap/dist/tests/scripts/monitor_data.sh
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/monitor_data.sh,v 1.2.2.2 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/monitor_data.sh,v 1.2.2.3 2010/04/13 20:23:59 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/scripts/passwd-search b/external/bsd/openldap/dist/tests/scripts/passwd-search
index 0c1e14d89667..016febe8b209 100644
--- a/external/bsd/openldap/dist/tests/scripts/passwd-search
+++ b/external/bsd/openldap/dist/tests/scripts/passwd-search
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/passwd-search,v 1.12.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/passwd-search,v 1.12.2.5 2010/04/13 20:23:59 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/scripts/relay b/external/bsd/openldap/dist/tests/scripts/relay
index 49e5277791ca..8d05b22c501a 100644
--- a/external/bsd/openldap/dist/tests/scripts/relay
+++ b/external/bsd/openldap/dist/tests/scripts/relay
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/relay,v 1.13.2.6 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/relay,v 1.13.2.8 2010/04/19 19:14:31 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -344,9 +344,9 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $RELAYOUT > $LDIFFLT
+$LDIFFILTER < $RELAYOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
@@ -386,11 +386,10 @@ $LDAPCOMPARE -h $LOCALHOST -p $PORT1 \
"cn=Added User,ou=Alumni Association,ou=People,$BASEDN" \
"seeAlso:cn=All Staff,ou=Groups,$BASEDN" >> $TESTOUT 2>&1
RC=$?
-if test $RC != 6 ; then
+if test $RC != 6 && test $RC,$BACKEND != 5,null ; then
echo "Compare failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
-
diff --git a/external/bsd/openldap/dist/tests/scripts/sql-all b/external/bsd/openldap/dist/tests/scripts/sql-all
index 15e4e6be98ce..c734fb33fc77 100644
--- a/external/bsd/openldap/dist/tests/scripts/sql-all
+++ b/external/bsd/openldap/dist/tests/scripts/sql-all
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/sql-all,v 1.5.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/sql-all,v 1.5.2.5 2010/04/13 20:24:00 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/scripts/sql-test000-read b/external/bsd/openldap/dist/tests/scripts/sql-test000-read
index dc5ae7b6f8c0..84943963b6b2 100644
--- a/external/bsd/openldap/dist/tests/scripts/sql-test000-read
+++ b/external/bsd/openldap/dist/tests/scripts/sql-test000-read
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/sql-test000-read,v 1.11.2.5 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/sql-test000-read,v 1.11.2.7 2010/04/19 19:14:32 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -550,9 +550,9 @@ case $RC in
esac
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif..."
-. $LDIFFILTER < $SQLREAD > $LDIFFLT
+$LDIFFILTER < $SQLREAD > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/sql-test001-concurrency b/external/bsd/openldap/dist/tests/scripts/sql-test001-concurrency
index 541f95c9b643..d7d2f74c0dcd 100644
--- a/external/bsd/openldap/dist/tests/scripts/sql-test001-concurrency
+++ b/external/bsd/openldap/dist/tests/scripts/sql-test001-concurrency
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/sql-test001-concurrency,v 1.4.2.6 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/sql-test001-concurrency,v 1.4.2.8 2010/04/19 19:14:32 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -79,7 +79,7 @@ if test $RC != 0 ; then
fi
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $SEARCHOUT > $LDIFFLT
+$LDIFFILTER < $SEARCHOUT > $LDIFFLT
if test "${RDBMSWRITE}" != "yes"; then
echo "write test disabled for ${RDBMS}; set SLAPD_USE_SQLWRITE=yes to enable"
@@ -124,7 +124,7 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/sql-test900-write b/external/bsd/openldap/dist/tests/scripts/sql-test900-write
index a4b418e21ea0..533d36c499cb 100644
--- a/external/bsd/openldap/dist/tests/scripts/sql-test900-write
+++ b/external/bsd/openldap/dist/tests/scripts/sql-test900-write
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/sql-test900-write,v 1.12.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/sql-test900-write,v 1.12.2.6 2010/04/19 19:14:32 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -549,9 +549,9 @@ EOMODS
fi
echo "Filtering ldapsearch results..."
- . $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+ $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering modified ldif..."
- . $LDIFFILTER < $SQLWRITE > $LDIFFLT
+ $LDIFFILTER < $SQLWRITE > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/sql-test901-syncrepl b/external/bsd/openldap/dist/tests/scripts/sql-test901-syncrepl
index 1a77ffbf98e3..75389881539f 100644
--- a/external/bsd/openldap/dist/tests/scripts/sql-test901-syncrepl
+++ b/external/bsd/openldap/dist/tests/scripts/sql-test901-syncrepl
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/sql-test901-syncrepl,v 1.4.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/sql-test901-syncrepl,v 1.4.2.6 2010/04/19 19:14:32 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -122,9 +122,9 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results from master..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering ldapsearch results from slave..."
-. $LDIFFILTER < $SEARCHOUT2 > $SEARCHFLT2
+$LDIFFILTER < $SEARCHOUT2 > $SEARCHFLT2
echo "Comparing filter output..."
$CMP $SEARCHFLT $SEARCHFLT2 > $CMPOUT
@@ -620,9 +620,9 @@ EOMODS
fi
echo "Filtering ldapsearch results..."
- . $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+ $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering modified ldif..."
- . $LDIFFILTER < $SQLWRITE > $LDIFFLT
+ $LDIFFILTER < $SQLWRITE > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
@@ -668,9 +668,9 @@ EOMODS
fi
echo "Filtering ldapsearch results from master..."
- . $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+ $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering ldapsearch results from slave..."
- . $LDIFFILTER < $SEARCHOUT2 > $SEARCHFLT2
+ $LDIFFILTER < $SEARCHOUT2 > $SEARCHFLT2
echo "Comparing filter output..."
$CMP $SEARCHFLT $SEARCHFLT2 > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/start-server b/external/bsd/openldap/dist/tests/scripts/start-server
index e41d8bcedb35..811f4e834217 100644
--- a/external/bsd/openldap/dist/tests/scripts/start-server
+++ b/external/bsd/openldap/dist/tests/scripts/start-server
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/start-server,v 1.5.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/start-server,v 1.5.2.6 2010/04/19 19:14:32 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -48,9 +48,9 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/start-server-nolog b/external/bsd/openldap/dist/tests/scripts/start-server-nolog
index a674e380dab8..734bba1e4b94 100644
--- a/external/bsd/openldap/dist/tests/scripts/start-server-nolog
+++ b/external/bsd/openldap/dist/tests/scripts/start-server-nolog
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/start-server-nolog,v 1.5.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/start-server-nolog,v 1.5.2.6 2010/04/19 19:14:32 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -48,9 +48,9 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/start-server2 b/external/bsd/openldap/dist/tests/scripts/start-server2
index f5891b93e4e5..e6919fcfc72e 100644
--- a/external/bsd/openldap/dist/tests/scripts/start-server2
+++ b/external/bsd/openldap/dist/tests/scripts/start-server2
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/start-server2,v 1.5.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/start-server2,v 1.5.2.5 2010/04/13 20:24:00 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/scripts/start-server2-nolog b/external/bsd/openldap/dist/tests/scripts/start-server2-nolog
index df202e7b65dc..e324ff23240e 100644
--- a/external/bsd/openldap/dist/tests/scripts/start-server2-nolog
+++ b/external/bsd/openldap/dist/tests/scripts/start-server2-nolog
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/start-server2-nolog,v 1.5.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/start-server2-nolog,v 1.5.2.5 2010/04/13 20:24:00 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/scripts/startup_nis_ldap_server.sh b/external/bsd/openldap/dist/tests/scripts/startup_nis_ldap_server.sh
index 9ec32fbacdb7..dd9d8c1a7fb8 100644
--- a/external/bsd/openldap/dist/tests/scripts/startup_nis_ldap_server.sh
+++ b/external/bsd/openldap/dist/tests/scripts/startup_nis_ldap_server.sh
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/startup_nis_ldap_server.sh,v 1.14.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/startup_nis_ldap_server.sh,v 1.14.2.5 2010/04/13 20:24:00 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/scripts/test000-rootdse b/external/bsd/openldap/dist/tests/scripts/test000-rootdse
index 84a9ed653566..edbe21ac957c 100644
--- a/external/bsd/openldap/dist/tests/scripts/test000-rootdse
+++ b/external/bsd/openldap/dist/tests/scripts/test000-rootdse
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test000-rootdse,v 1.29.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test000-rootdse,v 1.29.2.5 2010/04/13 20:24:01 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/scripts/test001-slapadd b/external/bsd/openldap/dist/tests/scripts/test001-slapadd
index b90ed76073e7..b86581462fc9 100644
--- a/external/bsd/openldap/dist/tests/scripts/test001-slapadd
+++ b/external/bsd/openldap/dist/tests/scripts/test001-slapadd
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test001-slapadd,v 1.44.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test001-slapadd,v 1.44.2.6 2010/04/19 19:14:32 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -58,9 +58,9 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test002-populate b/external/bsd/openldap/dist/tests/scripts/test002-populate
index ccd91cf87dd8..8f7266456aeb 100644
--- a/external/bsd/openldap/dist/tests/scripts/test002-populate
+++ b/external/bsd/openldap/dist/tests/scripts/test002-populate
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test002-populate,v 1.41.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test002-populate,v 1.41.2.6 2010/04/19 19:14:32 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -65,9 +65,9 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test003-search b/external/bsd/openldap/dist/tests/scripts/test003-search
index 3ea57e169317..e6c18e1d042e 100644
--- a/external/bsd/openldap/dist/tests/scripts/test003-search
+++ b/external/bsd/openldap/dist/tests/scripts/test003-search
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test003-search,v 1.61.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test003-search,v 1.61.2.6 2010/04/19 19:14:32 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -133,9 +133,9 @@ test $KILLSERVERS != no && kill -HUP $KILLPIDS
LDIF=$SEARCHOUTMASTER
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test004-modify b/external/bsd/openldap/dist/tests/scripts/test004-modify
index 36df1886dcfd..e662edb0ce7d 100644
--- a/external/bsd/openldap/dist/tests/scripts/test004-modify
+++ b/external/bsd/openldap/dist/tests/scripts/test004-modify
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test004-modify,v 1.60.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test004-modify,v 1.60.2.6 2010/04/19 19:14:32 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -216,9 +216,9 @@ fi
LDIF=$MODIFYOUTMASTER
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test005-modrdn b/external/bsd/openldap/dist/tests/scripts/test005-modrdn
index b2af4846e5db..f4fdc903969a 100644
--- a/external/bsd/openldap/dist/tests/scripts/test005-modrdn
+++ b/external/bsd/openldap/dist/tests/scripts/test005-modrdn
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test005-modrdn,v 1.49.2.7 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test005-modrdn,v 1.49.2.9 2010/04/19 19:14:32 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -98,9 +98,9 @@ fi
LDIF=$MODRDNOUTMASTER1
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
@@ -125,9 +125,9 @@ fi
LDIF=$MODRDNOUTMASTER2
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
@@ -169,9 +169,9 @@ fi
LDIF=$MODRDNOUTMASTER0
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
@@ -209,9 +209,9 @@ fi
LDIF=$MODRDNOUTMASTER3
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test006-acls b/external/bsd/openldap/dist/tests/scripts/test006-acls
index a0c15dc62df4..770c281d9b49 100644
--- a/external/bsd/openldap/dist/tests/scripts/test006-acls
+++ b/external/bsd/openldap/dist/tests/scripts/test006-acls
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test006-acls,v 1.59.2.7 2009/01/30 19:02:54 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test006-acls,v 1.59.2.9 2010/04/19 19:14:33 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -13,11 +13,8 @@
## top-level directory of the distribution or, alternatively, at
## .
-case "$BACKEND" in
-bdb|hdb)
- ;;
-*)
- echo "Test does not support $BACKEND backend"
+case "$BACKEND" in ldif | null)
+ echo "$BACKEND backend does not support access controls, test skipped"
exit 0
esac
@@ -652,9 +649,9 @@ fi
LDIF=$ACLOUTMASTER
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test008-concurrency b/external/bsd/openldap/dist/tests/scripts/test008-concurrency
index 31f737d0f608..7d0a7bc2c3ab 100644
--- a/external/bsd/openldap/dist/tests/scripts/test008-concurrency
+++ b/external/bsd/openldap/dist/tests/scripts/test008-concurrency
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test008-concurrency,v 1.40.2.6 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test008-concurrency,v 1.40.2.8 2010/04/19 19:14:33 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -82,9 +82,9 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test009-referral b/external/bsd/openldap/dist/tests/scripts/test009-referral
index 019c407ac0af..342855d2a115 100644
--- a/external/bsd/openldap/dist/tests/scripts/test009-referral
+++ b/external/bsd/openldap/dist/tests/scripts/test009-referral
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test009-referral,v 1.38.2.5 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test009-referral,v 1.38.2.7 2010/04/19 19:14:33 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -163,9 +163,9 @@ test $KILLSERVERS != no && kill -HUP $KILLPIDS
LDIF=$SEARCHOUTMASTER
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test010-passwd b/external/bsd/openldap/dist/tests/scripts/test010-passwd
index 1288a9fdd2ea..2e47dd732aa5 100644
--- a/external/bsd/openldap/dist/tests/scripts/test010-passwd
+++ b/external/bsd/openldap/dist/tests/scripts/test010-passwd
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test010-passwd,v 1.26.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test010-passwd,v 1.26.2.5 2010/04/13 20:24:02 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/scripts/test011-glue-slapadd b/external/bsd/openldap/dist/tests/scripts/test011-glue-slapadd
index 71fb07fb988a..585299b017dd 100644
--- a/external/bsd/openldap/dist/tests/scripts/test011-glue-slapadd
+++ b/external/bsd/openldap/dist/tests/scripts/test011-glue-slapadd
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test011-glue-slapadd,v 1.11.2.4 2009/01/22 00:01:18 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test011-glue-slapadd,v 1.11.2.6 2010/04/19 19:14:33 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -56,9 +56,9 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER -s ldif=e < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIFGLUED > $LDIFFLT
+$LDIFFILTER -s ldif=e < $LDIFGLUED > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
@@ -70,6 +70,7 @@ if test $? != 0 ; then
exit 1
fi
+if test $BACKEND != null ; then
echo "Testing sizelimit..."
$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $PORT1 -s one -z 2 > $SEARCHOUT 2>&1
RC=$?
@@ -86,6 +87,7 @@ if test $RC = 0 ; then
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit 1
fi
+fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
diff --git a/external/bsd/openldap/dist/tests/scripts/test012-glue-populate b/external/bsd/openldap/dist/tests/scripts/test012-glue-populate
index a819ee2370fc..a010efeea665 100644
--- a/external/bsd/openldap/dist/tests/scripts/test012-glue-populate
+++ b/external/bsd/openldap/dist/tests/scripts/test012-glue-populate
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test012-glue-populate,v 1.9.2.4 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test012-glue-populate,v 1.9.2.6 2010/04/19 19:14:33 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -65,9 +65,9 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER -s ldif=e < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIFGLUED > $LDIFFLT
+$LDIFFILTER -s ldif=e < $LDIFGLUED > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test013-language b/external/bsd/openldap/dist/tests/scripts/test013-language
index e13c18525dd9..5d3860d40c80 100644
--- a/external/bsd/openldap/dist/tests/scripts/test013-language
+++ b/external/bsd/openldap/dist/tests/scripts/test013-language
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test013-language,v 1.16.2.4 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test013-language,v 1.16.2.6 2010/04/19 19:14:33 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -99,9 +99,9 @@ fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering language ldif ..."
-. $LDIFFILTER < $LDIFLANGOUT > $LDIFFLT
+$LDIFFILTER < $LDIFLANGOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test014-whoami b/external/bsd/openldap/dist/tests/scripts/test014-whoami
index 94765cd07810..71a334d9c1df 100644
--- a/external/bsd/openldap/dist/tests/scripts/test014-whoami
+++ b/external/bsd/openldap/dist/tests/scripts/test014-whoami
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test014-whoami,v 1.23.2.5 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test014-whoami,v 1.23.2.7 2010/04/19 19:14:33 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -437,7 +437,7 @@ RC=$?
if test $RC != 1 ; then
echo "ldapwhoami failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
BINDDN="dc=example,dc=com"
diff --git a/external/bsd/openldap/dist/tests/scripts/test015-xsearch b/external/bsd/openldap/dist/tests/scripts/test015-xsearch
index 2b4a6cf9304f..85748a2ad4dd 100644
--- a/external/bsd/openldap/dist/tests/scripts/test015-xsearch
+++ b/external/bsd/openldap/dist/tests/scripts/test015-xsearch
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test015-xsearch,v 1.23.2.4 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test015-xsearch,v 1.23.2.6 2010/04/19 19:14:33 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -229,10 +229,10 @@ LDIF=$SEARCHOUTMASTER
LDIF2=$SEARCHOUTX
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
-. $LDIFFILTER < $LDIF2 >> $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF2 >> $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test016-subref b/external/bsd/openldap/dist/tests/scripts/test016-subref
index 121e11ee4bdd..cfc9b6828fd4 100644
--- a/external/bsd/openldap/dist/tests/scripts/test016-subref
+++ b/external/bsd/openldap/dist/tests/scripts/test016-subref
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test016-subref,v 1.12.2.4 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test016-subref,v 1.12.2.6 2010/04/19 19:14:33 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -14,6 +14,7 @@
## .
RCODE=10
+test $BACKEND = null && RCODE=0
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
@@ -87,7 +88,7 @@ RC=$?
if test $RC != $RCODE ; then
echo "ldapsearch: unexpected result ($RC)! (referral expected)"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
XREFDN="$REFDN"
@@ -125,7 +126,7 @@ RC=$?
if test $RC != $RCODE ; then
echo "ldapsearch: unexpected result ($RC)! (referral expected)"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
echo "Testing one-level searching at $XREFDN..."
@@ -134,7 +135,7 @@ RC=$?
if test $RC != $RCODE ; then
echo "ldapsearch: unexpected result ($RC)! (referral expected)"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
echo "Testing subtree searching at $XREFDN..."
@@ -143,7 +144,7 @@ RC=$?
if test $RC != $RCODE ; then
echo "ldapsearch: unexpected result ($RC)! (referral expected)"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
XREFDN="uid=xxx,o=abc,$REFDN"
@@ -153,7 +154,7 @@ RC=$?
if test $RC != $RCODE ; then
echo "ldapsearch: unexpected result ($RC)! (referral expected)"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
echo "Testing one-level searching at $XREFDN..."
@@ -162,7 +163,7 @@ RC=$?
if test $RC != $RCODE ; then
echo "ldapsearch: unexpected result ($RC)! (referral expected)"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
echo "Testing subtree searching at $XREFDN..."
@@ -171,16 +172,16 @@ RC=$?
if test $RC != $RCODE ; then
echo "ldapsearch: unexpected result ($RC)! (referral expected)"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
LDIF=$SEARCHOUTMASTER
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering expected LDIF for comparison..."
-. $LDIFFILTER < $REFERRALOUT > $LDIFFLT
+$LDIFFILTER < $REFERRALOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test017-syncreplication-refresh b/external/bsd/openldap/dist/tests/scripts/test017-syncreplication-refresh
index 53a294105595..dedb8ab374be 100644
--- a/external/bsd/openldap/dist/tests/scripts/test017-syncreplication-refresh
+++ b/external/bsd/openldap/dist/tests/scripts/test017-syncreplication-refresh
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test017-syncreplication-refresh,v 1.33.2.9 2009/11/18 01:29:50 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test017-syncreplication-refresh,v 1.33.2.11 2010/04/19 19:14:33 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -307,7 +307,7 @@ RC=$?
if test $RC != 10 ; then
echo "ldapmodify should have returned referral ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
OPATTRS="entryUUID creatorsName createTimestamp modifiersName modifyTimestamp"
@@ -337,9 +337,9 @@ fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
echo "Filtering producer results..."
-. $LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $MASTEROUT > $MASTERFLT
echo "Filtering consumer results..."
-. $LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
echo "Comparing retrieved entries from producer and consumer..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test018-syncreplication-persist b/external/bsd/openldap/dist/tests/scripts/test018-syncreplication-persist
index 0026a26e7507..1c2213696461 100644
--- a/external/bsd/openldap/dist/tests/scripts/test018-syncreplication-persist
+++ b/external/bsd/openldap/dist/tests/scripts/test018-syncreplication-persist
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test018-syncreplication-persist,v 1.38.2.10 2009/03/05 23:32:21 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test018-syncreplication-persist,v 1.38.2.13 2010/04/19 19:24:42 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -13,14 +13,11 @@
## top-level directory of the distribution or, alternatively, at
## .
-if test "$BACKEND" != "bdb" && test "$BACKEND" != "hdb" && test "$BACKEND" != "ldif"; then
- echo "Test does not support $BACKEND"
- exit 0
-fi
-
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
+OPATTRS="entryUUID creatorsName createTimestamp modifiersName modifyTimestamp"
+
if test $SYNCPROV = syncprovno; then
echo "Syncrepl provider overlay not available, test skipped"
exit 0
@@ -121,6 +118,42 @@ fi
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
+echo "Using ldapsearch to read all the entries from the producer..."
+$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
+ '(objectclass=*)' '*' $OPATTRS > $MASTEROUT 2>&1
+RC=$?
+
+if test $RC != 0 ; then
+ echo "ldapsearch failed at producer ($RC)!"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit $RC
+fi
+
+echo "Using ldapsearch to read all the entries from the consumer..."
+$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT4 \
+ '(objectclass=*)' '*' $OPATTRS > $SLAVEOUT 2>&1
+RC=$?
+
+if test $RC != 0 ; then
+ echo "ldapsearch failed at consumer ($RC)!"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit $RC
+fi
+
+echo "Filtering producer results..."
+$LDIFFILTER < $MASTEROUT > $MASTERFLT
+echo "Filtering consumer results..."
+$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+
+echo "Comparing retrieved entries from producer and consumer..."
+$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+
+if test $? != 0 ; then
+ echo "test failed - producer and consumer databases differ"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit 1
+fi
+
echo "Stopping the provider, sleeping 10 seconds and restarting it..."
kill -HUP "$PID"
wait $PID
@@ -208,10 +241,32 @@ drink: Coffee
homepostaladdress: 844 Brown St. Apt. 4 $ Ann Arbor, MI 48104
description: Very odd
facsimiletelephonenumber: +1 313 555 7557
+facsimiletelephonenumber: +1 313 555 9998
+facsimiletelephonenumber: +1 313 555 9999
telephonenumber: +1 313 555 8343
mail: gjensen@mailgw.example.com
homephone: +1 313 555 8844
+# modify attribute with no matching rule (ITS#6458)
+dn: cn=Gern Jensen, ou=Information Technology Division, ou=People, dc=example,dc=com
+changetype: modify
+replace: facsimiletelephonenumber
+facsimiletelephonenumber: +1 313 555 9998
+facsimiletelephonenumber: +1 313 555 9999
+
+dn: cn=Gern Jensen, ou=Information Technology Division, ou=People, dc=example,dc=com
+changetype: modify
+replace: facsimiletelephonenumber
+facsimiletelephonenumber: +1 313 555 9998
+facsimiletelephonenumber: +1 313 555 9999
+facsimiletelephonenumber: +1 313 555 7557
+
+dn: cn=Gern Jensen, ou=Information Technology Division, ou=People, dc=example,dc=com
+changetype: modify
+replace: facsimiletelephonenumber
+facsimiletelephonenumber: +1 313 555 9998
+facsimiletelephonenumber: +1 313 555 9999
+
dn: ou=Retired, ou=People, dc=example,dc=com
changetype: add
objectclass: organizationalUnit
@@ -272,6 +327,42 @@ fi
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
+echo "Using ldapsearch to read all the entries from the producer..."
+$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
+ '(objectclass=*)' '*' $OPATTRS > $MASTEROUT 2>&1
+RC=$?
+
+if test $RC != 0 ; then
+ echo "ldapsearch failed at producer ($RC)!"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit $RC
+fi
+
+echo "Using ldapsearch to read all the entries from the consumer..."
+$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT4 \
+ '(objectclass=*)' '*' $OPATTRS > $SLAVEOUT 2>&1
+RC=$?
+
+if test $RC != 0 ; then
+ echo "ldapsearch failed at consumer ($RC)!"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit $RC
+fi
+
+echo "Filtering producer results..."
+$LDIFFILTER < $MASTEROUT > $MASTERFLT
+echo "Filtering consumer results..."
+$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+
+echo "Comparing retrieved entries from producer and consumer..."
+$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+
+if test $? != 0 ; then
+ echo "test failed - producer and consumer databases differ"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit 1
+fi
+
echo "Stopping consumer to test recovery..."
kill -HUP $SLAVEPID
wait $SLAVEPID
@@ -299,6 +390,18 @@ changetype: modify
replace: description
description: Example, Inc. itsdomain2 test domain
+# rename with a newly added newSuperior while the consumer is down (ITS#6472)
+dn: ou=New Branch,dc=example,dc=com
+changetype: add
+objectClass: organizationalUnit
+ou: New Branch
+
+dn: cn=Dorothy Stevens, ou=Alumni Association, ou=People, dc=example,dc=com
+changetype: modrdn
+newrdn: cn=Dorothy Stevens
+deleteoldrdn: 0
+newsuperior: ou=New Branch,dc=example,dc=com
+
EOMODS
RC=$?
@@ -321,6 +424,42 @@ KILLPIDS="$PID $SLAVEPID"
echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
sleep $SLEEP1
+echo "Using ldapsearch to read all the entries from the producer..."
+$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
+ '(objectclass=*)' '*' $OPATTRS > $MASTEROUT 2>&1
+RC=$?
+
+if test $RC != 0 ; then
+ echo "ldapsearch failed at producer ($RC)!"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit $RC
+fi
+
+echo "Using ldapsearch to read all the entries from the consumer..."
+$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT4 \
+ '(objectclass=*)' '*' $OPATTRS > $SLAVEOUT 2>&1
+RC=$?
+
+if test $RC != 0 ; then
+ echo "ldapsearch failed at consumer ($RC)!"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit $RC
+fi
+
+echo "Filtering producer results..."
+$LDIFFILTER < $MASTEROUT > $MASTERFLT
+echo "Filtering consumer results..."
+$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+
+echo "Comparing retrieved entries from producer and consumer..."
+$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
+
+if test $? != 0 ; then
+ echo "test failed - producer and consumer databases differ"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit 1
+fi
+
if test ! $BACKLDAP = "ldapno" ; then
echo "Try updating the consumer slapd..."
$LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT4 -w $PASSWD > \
@@ -356,8 +495,6 @@ EOMODS
sleep $SLEEP1
fi
-OPATTRS="entryUUID creatorsName createTimestamp modifiersName modifyTimestamp"
-
echo "Using ldapsearch to read all the entries from the producer..."
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
'(objectclass=*)' '*' $OPATTRS > $MASTEROUT 2>&1
@@ -380,21 +517,22 @@ if test $RC != 0 ; then
exit $RC
fi
-test $KILLSERVERS != no && kill -HUP $KILLPIDS
-
echo "Filtering producer results..."
-. $LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $MASTEROUT > $MASTERFLT
echo "Filtering consumer results..."
-. $LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
echo "Comparing retrieved entries from producer and consumer..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
if test $? != 0 ; then
echo "test failed - producer and consumer databases differ"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit 1
fi
+test $KILLSERVERS != no && kill -HUP $KILLPIDS
+
echo ">>>>> Test succeeded"
test $KILLSERVERS != no && wait
diff --git a/external/bsd/openldap/dist/tests/scripts/test019-syncreplication-cascade b/external/bsd/openldap/dist/tests/scripts/test019-syncreplication-cascade
index be25f1c2e25b..270b5b49265d 100644
--- a/external/bsd/openldap/dist/tests/scripts/test019-syncreplication-cascade
+++ b/external/bsd/openldap/dist/tests/scripts/test019-syncreplication-cascade
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test019-syncreplication-cascade,v 1.19.2.9 2009/03/05 23:32:21 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test019-syncreplication-cascade,v 1.19.2.11 2010/04/19 19:14:34 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -13,11 +13,6 @@
## top-level directory of the distribution or, alternatively, at
## .
-if test "$BACKEND" != "bdb" && test "$BACKEND" != "hdb" ; then
- echo "Test does not support $BACKEND"
- exit 0
-fi
-
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
@@ -433,17 +428,17 @@ fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
echo "Filtering master ldapsearch results..."
-. $LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $MASTEROUT > $MASTERFLT
echo "Filtering R1 slave ldapsearch results..."
-. $LDIFFILTER < $SERVER2OUT > $SERVER2FLT
+$LDIFFILTER < $SERVER2OUT > $SERVER2FLT
echo "Filtering R2 slave ldapsearch results..."
-. $LDIFFILTER < $SERVER3OUT > $SERVER3FLT
+$LDIFFILTER < $SERVER3OUT > $SERVER3FLT
echo "Filtering P1 slave ldapsearch results..."
-. $LDIFFILTER < $SERVER4OUT > $SERVER4FLT
+$LDIFFILTER < $SERVER4OUT > $SERVER4FLT
echo "Filtering P2 slave ldapsearch results..."
-. $LDIFFILTER < $SERVER5OUT > $SERVER5FLT
+$LDIFFILTER < $SERVER5OUT > $SERVER5FLT
echo "Filtering P3 slave ldapsearch results..."
-. $LDIFFILTER < $SERVER6OUT > $SERVER6FLT
+$LDIFFILTER < $SERVER6OUT > $SERVER6FLT
echo "Comparing retrieved entries from master and R1 slave..."
$CMP $MASTERFLT $SERVER2FLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test020-proxycache b/external/bsd/openldap/dist/tests/scripts/test020-proxycache
index 9f3fae116e18..d0ba4eba4298 100644
--- a/external/bsd/openldap/dist/tests/scripts/test020-proxycache
+++ b/external/bsd/openldap/dist/tests/scripts/test020-proxycache
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test020-proxycache,v 1.26.2.11 2009/08/25 21:24:47 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test020-proxycache,v 1.26.2.13 2010/04/19 19:14:34 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -33,6 +33,13 @@ if test $BACKLDAP = "ldapno" ; then
exit 0
fi
+if test $BACKEND = ldif ; then
+ # The (mail=example.com*) queries hit a sizelimit, so which
+ # entry is returned depends on the ordering in the backend.
+ echo "Test does not support $BACKEND backend, test skipped"
+ exit 0
+fi
+
mkdir -p $TESTDIR $DBDIR1 $DBDIR2
# Test proxy caching:
@@ -455,9 +462,9 @@ else
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif..."
-. $LDIFFILTER < $PROXYCACHEOUT > $LDIFFLT
+$LDIFFILTER < $PROXYCACHEOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test021-certificate b/external/bsd/openldap/dist/tests/scripts/test021-certificate
index ec7942d657f5..f2dcb82295f8 100644
--- a/external/bsd/openldap/dist/tests/scripts/test021-certificate
+++ b/external/bsd/openldap/dist/tests/scripts/test021-certificate
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test021-certificate,v 1.19.2.4 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test021-certificate,v 1.19.2.6 2010/04/19 19:14:34 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -307,9 +307,9 @@ test $KILLSERVERS != no && kill -HUP $KILLPIDS
LDIF=$CERTIFICATETLS
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test022-ppolicy b/external/bsd/openldap/dist/tests/scripts/test022-ppolicy
index 0078e8417f2a..b58c4067f998 100644
--- a/external/bsd/openldap/dist/tests/scripts/test022-ppolicy
+++ b/external/bsd/openldap/dist/tests/scripts/test022-ppolicy
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test022-ppolicy,v 1.17.2.8 2009/07/01 21:01:41 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test022-ppolicy,v 1.17.2.9 2010/04/13 20:24:03 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/scripts/test023-refint b/external/bsd/openldap/dist/tests/scripts/test023-refint
index f3636e9e78a6..e2d76b794e21 100644
--- a/external/bsd/openldap/dist/tests/scripts/test023-refint
+++ b/external/bsd/openldap/dist/tests/scripts/test023-refint
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test023-refint,v 1.10.2.6 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test023-refint,v 1.10.2.8 2010/04/19 19:14:34 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2004-2009 The OpenLDAP Foundation.
+## Copyright 2004-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -13,11 +13,6 @@
## top-level directory of the distribution or, alternatively, at
## .
-if test "$BACKEND" != "bdb" && test "$BACKEND" != "hdb" ; then
- echo "Test does not support $BACKEND"
- exit 0
-fi
-
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
@@ -194,7 +189,7 @@ if test $RC != 0 ; then
exit $RC
fi
-if test $BACKEND = "hdb" ; then
+if test $BACKEND != "bdb" ; then
$LDAPMODIFY -v -D "$REFINTDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
$TESTOUT 2>&1 << EDEL
version: 1
diff --git a/external/bsd/openldap/dist/tests/scripts/test024-unique b/external/bsd/openldap/dist/tests/scripts/test024-unique
index a95440cab483..a965dd219b3b 100644
--- a/external/bsd/openldap/dist/tests/scripts/test024-unique
+++ b/external/bsd/openldap/dist/tests/scripts/test024-unique
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test024-unique,v 1.8.2.7 2009/07/27 18:39:18 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test024-unique,v 1.8.2.9 2010/04/19 19:14:34 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2004-2009 The OpenLDAP Foundation.
+## Copyright 2004-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -21,6 +21,9 @@ if test $UNIQUE = uniqueno; then
exit 0
fi
+RCODEconstraint=19
+test $BACKEND = null && RCODEconstraint=0
+
mkdir -p $TESTDIR $DBDIR1
$SLAPPASSWD -g -n >$CONFIGPWF
@@ -107,7 +110,7 @@ employeeType: contractor
givenName: Bill
EOTUNIQ2
RC=$?
-if test $RC != 19 ; then
+if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
@@ -223,7 +226,7 @@ employeeType: contractor
givenName: Bill
EOTUNIQ2
RC=$?
-if test $RC != 19 ; then
+if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
@@ -280,7 +283,7 @@ employeeType: contractor
givenName: Bill
EOTUNIQ2
RC=$?
-if test $RC != 19 ; then
+if test $RC != $RCODEconstraint ; then
echo "olcUniqueAttribtue single deletion hit the wrong value"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
@@ -340,7 +343,7 @@ employeeType: contractor
givenName: Bill
EOTUNIQ2
RC=$?
-if test $RC != 19 ; then
+if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
@@ -505,7 +508,7 @@ cn: elvis
EOF
RC=$?
-if test $RC != 19 ; then
+if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
@@ -577,7 +580,7 @@ description: left the building
EOF
RC=$?
-if test $RC != 19 ; then
+if test $RC != $RCODEconstraint ; then
echo "unique check failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
diff --git a/external/bsd/openldap/dist/tests/scripts/test025-limits b/external/bsd/openldap/dist/tests/scripts/test025-limits
index 38a3b3171722..41f6244d1c0c 100644
--- a/external/bsd/openldap/dist/tests/scripts/test025-limits
+++ b/external/bsd/openldap/dist/tests/scripts/test025-limits
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test025-limits,v 1.19.2.6 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test025-limits,v 1.19.2.8 2010/04/19 19:14:34 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -18,6 +18,11 @@
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
+if test $BACKEND = null; then
+ echo "Limits irrelevant to $BACKEND backend, test skipped"
+ exit 0
+fi
+
mkdir -p $TESTDIR $DBDIR1
echo "Running slapadd to build slapd database..."
diff --git a/external/bsd/openldap/dist/tests/scripts/test026-dn b/external/bsd/openldap/dist/tests/scripts/test026-dn
index 11a2e4b0f6a7..081e9266629d 100644
--- a/external/bsd/openldap/dist/tests/scripts/test026-dn
+++ b/external/bsd/openldap/dist/tests/scripts/test026-dn
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test026-dn,v 1.13.2.6 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test026-dn,v 1.13.2.8 2010/04/19 19:14:34 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2004-2009 The OpenLDAP Foundation.
+## Copyright 2004-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -160,9 +160,9 @@ fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original data..."
-. $LDIFFILTER < $DNOUT > $LDIFFLT
+$LDIFFILTER < $DNOUT > $LDIFFLT
echo "Comparing ldapsearch results against original..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test027-emptydn b/external/bsd/openldap/dist/tests/scripts/test027-emptydn
index 168554d7f239..ff1b3d09ab31 100644
--- a/external/bsd/openldap/dist/tests/scripts/test027-emptydn
+++ b/external/bsd/openldap/dist/tests/scripts/test027-emptydn
@@ -1,7 +1,7 @@
#! /bin/sh
## This work is part of OpenLDAP Software .
##
-## Copyright 2004-2009 The OpenLDAP Foundation.
+## Copyright 2004-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -78,12 +78,12 @@ fi
kill -HUP $KILLPIDS
wait
-LDIFOUT=$EMPTYDNOUT1
-
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+echo "Filtering expected results..."
+$LDIFFILTER < $EMPTYDNOUT1 > $LDIFFLT
echo "Comparing ldapsearch results against original..."
-$CMP $SEARCHFLT $LDIFOUT > $CMPOUT
+$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
if test $? != 0 ; then
echo "comparison failed - empty DN write operations did not complete correctly"
@@ -154,12 +154,12 @@ fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
-LDIFOUT=$EMPTYDNOUT2
-
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+echo "Filtering expected results..."
+$LDIFFILTER < $EMPTYDNOUT2 > $LDIFFLT
echo "Comparing ldapsearch results against original..."
-$CMP $SEARCHFLT $LDIFOUT > $CMPOUT
+$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
if test $? != 0 ; then
echo "comparison failed - empty DN write operations did not complete correctly"
diff --git a/external/bsd/openldap/dist/tests/scripts/test028-idassert b/external/bsd/openldap/dist/tests/scripts/test028-idassert
index abca51b50fce..029ff9b521ca 100644
--- a/external/bsd/openldap/dist/tests/scripts/test028-idassert
+++ b/external/bsd/openldap/dist/tests/scripts/test028-idassert
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test028-idassert,v 1.12.2.4 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test028-idassert,v 1.12.2.6 2010/04/19 19:14:34 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -106,7 +106,7 @@ AUTHZID="u:it/jaj"
echo "Testing ldapwhoami as proxy US, $AUTHZID..."
$LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "cn=proxy US,ou=Admin,dc=example,dc=com" -w proxy -e\!"authzid=$AUTHZID"
RC=$?
-if test $RC != 0 ; then
+if test $RC != 0 && test $BACKEND != null ; then
echo "ldapwhoami failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
@@ -119,7 +119,7 @@ RC=$?
if test $RC != 1 ; then
echo "ldapwhoami should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
AUTHZID="u:bjensen"
@@ -129,7 +129,7 @@ RC=$?
if test $RC != 1 ; then
echo "ldapwhoami should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
echo "Testing ldapwhoami as proxy IT..."
@@ -148,7 +148,7 @@ RC=$?
if test $RC != 1 ; then
echo "ldapwhoami should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
AUTHZID="u:bjorn"
@@ -158,14 +158,14 @@ RC=$?
if test $RC != 1 ; then
echo "ldapwhoami should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
AUTHZID="dn:cn=Sandbox,ou=Admin,dc=example,dc=com"
echo "Testing ldapwhoami as proxy IT, $AUTHZID..."
$LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "cn=proxy IT,ou=Admin,dc=example,dc=com" -w proxy -e\!"authzid=$AUTHZID"
RC=$?
-if test $RC != 0 ; then
+if test $RC != 0 && test $BACKEND != null ; then
echo "ldapwhoami failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
@@ -198,19 +198,19 @@ $LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASE" \
-D "$ID" -w jaj > $SEARCHOUT 2>&1
RC=$?
-if test $RC != 0 ; then
+if test $RC != 0 && test $BACKEND != null ; then
echo "ldapsearch failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER -s ldif=e < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $IDASSERTOUT > $LDIFFLT
+$LDIFFILTER -s ldif=e < $IDASSERTOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
-
+
if test $? != 0 ; then
echo "comparison failed - search with identity assertion didn't succeed"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
@@ -232,9 +232,9 @@ if test $USE_SASL != "no" ; then
fi
echo "Filtering ldapsearch results..."
- . $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+ $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
- . $LDIFFILTER < $IDASSERTOUT > $LDIFFLT
+ $LDIFFILTER < $IDASSERTOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test029-ldapglue b/external/bsd/openldap/dist/tests/scripts/test029-ldapglue
index 048c7c15ca2b..fc532973771d 100644
--- a/external/bsd/openldap/dist/tests/scripts/test029-ldapglue
+++ b/external/bsd/openldap/dist/tests/scripts/test029-ldapglue
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test029-ldapglue,v 1.8.2.4 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test029-ldapglue,v 1.8.2.6 2010/04/19 19:14:34 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -149,9 +149,9 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER -s ldif=e < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDAPGLUEOUT > $LDIFFLT
+$LDIFFILTER -s ldif=e < $LDAPGLUEOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
@@ -174,9 +174,9 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDAPGLUEANONYMOUSOUT > $LDIFFLT
+$LDIFFILTER < $LDAPGLUEANONYMOUSOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
@@ -202,9 +202,9 @@ if test $USE_SASL != "no" ; then
fi
echo "Filtering ldapsearch results..."
- . $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+ $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
- . $LDIFFILTER < $LDAPGLUEOUT > $LDIFFLT
+ $LDIFFILTER < $LDAPGLUEOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test030-relay b/external/bsd/openldap/dist/tests/scripts/test030-relay
index e58d477cc2e0..f4453cc81ff3 100644
--- a/external/bsd/openldap/dist/tests/scripts/test030-relay
+++ b/external/bsd/openldap/dist/tests/scripts/test030-relay
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test030-relay,v 1.21.2.5 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test030-relay,v 1.21.2.6 2010/04/13 20:24:04 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/scripts/test031-component-filter b/external/bsd/openldap/dist/tests/scripts/test031-component-filter
index bcc327401989..bfcfabca1d55 100644
--- a/external/bsd/openldap/dist/tests/scripts/test031-component-filter
+++ b/external/bsd/openldap/dist/tests/scripts/test031-component-filter
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test031-component-filter,v 1.17.2.4 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test031-component-filter,v 1.17.2.6 2010/04/19 19:14:34 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -314,7 +314,7 @@ fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $COMPSEARCHOUT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test032-chain b/external/bsd/openldap/dist/tests/scripts/test032-chain
index b8c181fbd9a0..5300791d6874 100644
--- a/external/bsd/openldap/dist/tests/scripts/test032-chain
+++ b/external/bsd/openldap/dist/tests/scripts/test032-chain
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test032-chain,v 1.11.2.5 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test032-chain,v 1.11.2.7 2010/04/19 19:14:35 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -116,9 +116,9 @@ for P in $PORT1 $PORT2 ; do
fi
echo "Filtering ldapsearch results..."
- . $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+ $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
- . $LDIFFILTER < $CHAINOUT > $LDIFFLT
+ $LDIFFILTER < $CHAINOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
@@ -140,9 +140,9 @@ for P in $PORT1 $PORT2 ; do
fi
echo "Filtering ldapsearch results..."
- . $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+ $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
- . $LDIFFILTER < $CHAINREFOUT > $LDIFFLT
+ $LDIFFILTER < $CHAINREFOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
@@ -158,10 +158,10 @@ for P in $PORT1 $PORT2 ; do
> $TESTOUT 2>&1
RC=$?
- if test $RC != 6 ; then
+ if test $RC != 6 && test $RC,$BACKEND != 5,null ; then
echo "ldapcompare failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
DN="ou=Other,$BASEDN"
@@ -170,10 +170,10 @@ for P in $PORT1 $PORT2 ; do
> $TESTOUT 2>&1
RC=$?
- if test $RC != 6 ; then
+ if test $RC != 6 && test $RC,$BACKEND != 5,null ; then
echo "ldapcompare failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
fi
done
@@ -269,9 +269,9 @@ for P in $PORT1 $PORT2 ; do
fi
echo "Filtering ldapsearch results..."
- . $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+ $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
- . $LDIFFILTER < $CHAINMODOUT > $LDIFFLT
+ $LDIFFILTER < $CHAINMODOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test033-glue-syncrepl b/external/bsd/openldap/dist/tests/scripts/test033-glue-syncrepl
index 3c8e5d1363a8..be8f53cba0f9 100644
--- a/external/bsd/openldap/dist/tests/scripts/test033-glue-syncrepl
+++ b/external/bsd/openldap/dist/tests/scripts/test033-glue-syncrepl
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test033-glue-syncrepl,v 1.17.2.6 2009/03/05 22:19:39 quanah Exp */
+# OpenLDAP: pkg/ldap/tests/scripts/test033-glue-syncrepl,v 1.17.2.8 2010/04/19 19:14:35 quanah Exp */
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -13,11 +13,6 @@
## top-level directory of the distribution or, alternatively, at
## .
-case $BACKEND in bdb | hdb | ldif) : ;; *)
- echo "Test does not support $BACKEND backend, test skipped"
- exit 0
-esac
-
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
@@ -137,7 +132,7 @@ echo "Waiting $SLEEP1 seconds for shadow subtrees to sync..."
sleep $SLEEP1
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $GLUESYNCOUT > $LDIFFLT
+$LDIFFILTER < $GLUESYNCOUT > $LDIFFLT
for P in $PORT1 $PORT2 ; do
echo "Using ldapsearch to read all the entries from port $P..."
@@ -152,7 +147,7 @@ for P in $PORT1 $PORT2 ; do
fi
echo "Filtering ldapsearch results..."
- . $LDIFFILTER < "${SEARCHOUT}.${P}" > $SEARCHFLT
+ $LDIFFILTER < "${SEARCHOUT}.${P}" > $SEARCHFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
@@ -178,7 +173,7 @@ sleep 1
$LDAPSEARCH -H $URI2 -b "$BABSDN" > $TESTOUT 2>&1
RC=$?
-if test $RC = 0 ; then
+if test $RC = 0 && test $BACKEND != null ; then
echo "ldapsearch should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
diff --git a/external/bsd/openldap/dist/tests/scripts/test034-translucent b/external/bsd/openldap/dist/tests/scripts/test034-translucent
index 33d1e4f95c3a..31e7796185c0 100644
--- a/external/bsd/openldap/dist/tests/scripts/test034-translucent
+++ b/external/bsd/openldap/dist/tests/scripts/test034-translucent
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test034-translucent,v 1.8.2.7 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test034-translucent,v 1.8.2.9 2010/04/19 19:14:35 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2004-2009 The OpenLDAP Foundation.
+## Copyright 2004-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -156,8 +156,8 @@ if test $RC != 0 ; then
exit $RC
fi
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
-. $LDIFFILTER < $LDIFTRANSLUCENTDATA > $LDIFFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $LDIFTRANSLUCENTDATA > $LDIFFLT
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
if test $? != 0 ; then
@@ -185,7 +185,7 @@ $LDAPADD -v -v -v -D "$TRANSLUCENTROOT" -H $URI2 \
-w $PASSWD < $LDIFTRANSLUCENTADD > $TESTOUT 2>&1
RC=$?
-if test $RC != 32 ; then
+if test $RC != 32 && test $RC,$BACKEND != 0,null ; then
echo "ldapadd failed ($RC), expected NO SUCH OBJECT!"
grep "$FAILURE" $TESTOUT
test $KILLSERVERS != no && kill -HUP $KILLPIDS
@@ -198,7 +198,7 @@ $LDAPMODRDN -D "$TRANSLUCENTROOT" -H $URI2 -w $PASSWD > \
$TESTOUT 2>&1 'uid=fred,ou=users,o=translucent' 'uid=someguy'
RC=$?
-if test $RC != 32 ; then
+if test $RC != 32 && test $RC,$BACKEND != 0,null ; then
echo "ldapmodrdn failed ($RC), expected NO SUCH OBJECT!"
grep "$FAILURE" $TESTOUT
test $KILLSERVERS != no && kill -HUP $KILLPIDS
@@ -244,8 +244,9 @@ if test $RC != 0 ; then
exit $RC
fi
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
-$CMP $SEARCHFLT $LDIFTRANSLUCENTMERGED > $CMPOUT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $LDIFTRANSLUCENTMERGED > $LDIFFLT
+$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
if test $? != 0 ; then
echo "Comparison failed -- local data failed to merge with remote!"
diff --git a/external/bsd/openldap/dist/tests/scripts/test035-meta b/external/bsd/openldap/dist/tests/scripts/test035-meta
index 0c5747749cfc..965eb722313f 100644
--- a/external/bsd/openldap/dist/tests/scripts/test035-meta
+++ b/external/bsd/openldap/dist/tests/scripts/test035-meta
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test035-meta,v 1.14.2.6 2009/01/22 00:01:19 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test035-meta,v 1.14.2.8 2010/04/19 19:14:35 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -485,14 +485,14 @@ $LDAPSEARCH -S "" -h $LOCALHOST -p $PORT3 \
-b "$BASEDN" "(objectClass=*)" 1.1 \
>> $TESTOUT 2>&1
RC=$?
-case $RC in
- 0)
+case $RC,$BACKEND in
+ 4,* | 0,null)
+ ;;
+ 0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
- 4)
- ;;
*)
echo "Search failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
@@ -509,14 +509,14 @@ $LDAPSEARCH -S "" -h $LOCALHOST -p $PORT3 \
-b "$BASEDN" -z 2 "(objectClass=*)" 1.1 \
>> $TESTOUT 2>&1
RC=$?
-case $RC in
- 0)
+case $RC,$BACKEND in
+ 4,* | 0,null)
+ ;;
+ 0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
- 4)
- ;;
*)
echo "Search failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
@@ -525,9 +525,9 @@ case $RC in
esac
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $METAOUT > $LDIFFLT
+$LDIFFILTER < $METAOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
@@ -667,13 +667,15 @@ RC=$?
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit $RC
#fi
-case $RC in
- 0)
+case $RC,$BACKEND in
+ 0,null)
+ ;;
+ 0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
- 51)
+ 51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)
@@ -690,13 +692,15 @@ RC=$?
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit $RC
#fi
-case $RC in
- 0)
+case $RC,$BACKEND in
+ 0,null)
+ ;;
+ 0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
- 51)
+ 51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)
@@ -713,16 +717,16 @@ RC=$?
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit -1
#fi
-case $RC in
- 6)
+case $RC,$BACKEND in
+ 6,* | 5,null)
;;
- 51)
+ 51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)
echo "Compare failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
;;
esac
diff --git a/external/bsd/openldap/dist/tests/scripts/test036-meta-concurrency b/external/bsd/openldap/dist/tests/scripts/test036-meta-concurrency
index 6b8c0eb4af79..dc97c0e8e89a 100644
--- a/external/bsd/openldap/dist/tests/scripts/test036-meta-concurrency
+++ b/external/bsd/openldap/dist/tests/scripts/test036-meta-concurrency
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test036-meta-concurrency,v 1.17.2.9 2009/02/10 17:13:05 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test036-meta-concurrency,v 1.17.2.11 2010/04/19 19:14:35 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -218,9 +218,9 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $METACONCURRENCYOUT > $LDIFFLT
+$LDIFFILTER < $METACONCURRENCYOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test037-manage b/external/bsd/openldap/dist/tests/scripts/test037-manage
index 5f29811d7bcd..303350dccacc 100644
--- a/external/bsd/openldap/dist/tests/scripts/test037-manage
+++ b/external/bsd/openldap/dist/tests/scripts/test037-manage
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test037-manage,v 1.12.2.8 2009/02/22 05:50:54 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test037-manage,v 1.12.2.10 2010/04/19 19:14:35 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -201,9 +201,9 @@ fi
LDIF=$MANAGEOUT
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test038-retcode b/external/bsd/openldap/dist/tests/scripts/test038-retcode
index a25c358d9ce9..21138a2711aa 100644
--- a/external/bsd/openldap/dist/tests/scripts/test038-retcode
+++ b/external/bsd/openldap/dist/tests/scripts/test038-retcode
@@ -1,8 +1,8 @@
#! /bin/sh
-# $Header: /cvsroot/src/external/bsd/openldap/dist/tests/scripts/test038-retcode,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $
+# $Header: /cvsroot/src/external/bsd/openldap/dist/tests/scripts/test038-retcode,v 1.1.1.3 2010/12/12 15:24:24 adam Exp $
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/scripts/test039-glue-ldap-concurrency b/external/bsd/openldap/dist/tests/scripts/test039-glue-ldap-concurrency
index 31e99fc78b31..afa8aae7cd3e 100644
--- a/external/bsd/openldap/dist/tests/scripts/test039-glue-ldap-concurrency
+++ b/external/bsd/openldap/dist/tests/scripts/test039-glue-ldap-concurrency
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test039-glue-ldap-concurrency,v 1.10.2.7 2009/02/10 17:13:05 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test039-glue-ldap-concurrency,v 1.10.2.9 2010/04/19 19:14:35 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -207,9 +207,9 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $METACONCURRENCYOUT > $LDIFFLT
+$LDIFFILTER < $METACONCURRENCYOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test040-subtree-rename b/external/bsd/openldap/dist/tests/scripts/test040-subtree-rename
index 0d979370f659..26aff2cc20d2 100644
--- a/external/bsd/openldap/dist/tests/scripts/test040-subtree-rename
+++ b/external/bsd/openldap/dist/tests/scripts/test040-subtree-rename
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test040-subtree-rename,v 1.4.2.5 2009/01/22 00:01:20 kurt Exp */
+# OpenLDAP: pkg/ldap/tests/scripts/test040-subtree-rename,v 1.4.2.7 2010/04/19 19:14:35 quanah Exp */
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -16,13 +16,10 @@
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
-case $BACKEND in
-hdb | ldif)
- ;;
-*)
+if test $BACKEND = bdb ; then
echo "subtree rename not supported by back-$BACKEND"
exit 0
-esac
+fi
mkdir -p $TESTDIR $DBDIR1
@@ -194,9 +191,9 @@ test $KILLSERVERS != no && kill -HUP $KILLPIDS
LDIF=$SUBTREERENAMEOUT
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test041-aci b/external/bsd/openldap/dist/tests/scripts/test041-aci
index 0dc539117273..753ffa62bc89 100644
--- a/external/bsd/openldap/dist/tests/scripts/test041-aci
+++ b/external/bsd/openldap/dist/tests/scripts/test041-aci
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test041-aci,v 1.9.2.5 2009/01/22 00:01:20 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test041-aci,v 1.9.2.7 2010/04/19 19:14:35 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -13,11 +13,8 @@
## top-level directory of the distribution or, alternatively, at
## .
-case "$BACKEND" in
-bdb|hdb)
- ;;
-*)
- echo "Test does not support $BACKEND backend"
+case "$BACKEND" in ldif | null)
+ echo "$BACKEND backend does not support access controls, test skipped"
exit 0
;;
esac
@@ -243,9 +240,9 @@ test $KILLSERVERS != no && kill -HUP $KILLPIDS
LDIF=$ACIOUT
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test042-valsort b/external/bsd/openldap/dist/tests/scripts/test042-valsort
index 008a8066ebd1..515dc88b34da 100644
--- a/external/bsd/openldap/dist/tests/scripts/test042-valsort
+++ b/external/bsd/openldap/dist/tests/scripts/test042-valsort
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test042-valsort,v 1.4.2.6 2009/01/22 00:01:20 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test042-valsort,v 1.4.2.8 2010/04/19 19:14:35 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2004-2009 The OpenLDAP Foundation.
+## Copyright 2004-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -78,9 +78,11 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+echo "Filtering expected ldif..."
+$LDIFFILTER < $VALSORTOUT1 > $LDIFFLT
echo "Comparing filter output..."
-$CMP $SEARCHFLT $VALSORTOUT1 > $CMPOUT
+$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
if test $? != 0 ; then
echo "Comparison failed"
@@ -124,9 +126,11 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+echo "Filtering expected ldif..."
+$LDIFFILTER < $VALSORTOUT2 > $LDIFFLT
echo "Comparing filter output..."
-$CMP $SEARCHFLT $VALSORTOUT2 > $CMPOUT
+$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
if test $? != 0 ; then
echo "Comparison failed"
@@ -204,9 +208,11 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER -s ldif=e < $SEARCHOUT > $SEARCHFLT
+echo "Filtering expected ldif..."
+$LDIFFILTER -s ldif=e < $VALSORTOUT3 > $LDIFFLT
echo "Comparing filter output..."
-$CMP $SEARCHFLT $VALSORTOUT3 > $CMPOUT
+$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
if test $? != 0 ; then
echo "Comparison failed"
diff --git a/external/bsd/openldap/dist/tests/scripts/test043-delta-syncrepl b/external/bsd/openldap/dist/tests/scripts/test043-delta-syncrepl
index ae051aa5265f..a8117ec02732 100644
--- a/external/bsd/openldap/dist/tests/scripts/test043-delta-syncrepl
+++ b/external/bsd/openldap/dist/tests/scripts/test043-delta-syncrepl
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test043-delta-syncrepl,v 1.4.2.5 2009/03/05 22:19:39 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test043-delta-syncrepl,v 1.4.2.8 2010/06/10 17:28:50 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -13,11 +13,6 @@
## top-level directory of the distribution or, alternatively, at
## .
-if test "$BACKEND" != "bdb" && test "$BACKEND" != "hdb" ; then
- echo "Test does not support $BACKEND"
- exit 0
-fi
-
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
@@ -29,6 +24,11 @@ if test $ACCESSLOG = accesslogno; then
echo "Accesslog overlay not available, test skipped"
exit 0
fi
+if test $BACKEND = ldif ; then
+ # Onelevel search does not return entries in order of creation or CSN.
+ echo "$BACKEND backend unsuitable for syncprov logdb, test skipped"
+ exit 0
+fi
mkdir -p $TESTDIR $DBDIR1A $DBDIR1B $DBDIR2
@@ -339,9 +339,9 @@ fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
echo "Filtering producer results..."
-. $LDIFFILTER < $MASTEROUT | grep -iv "^auditcontext:" > $MASTERFLT
+$LDIFFILTER -s bdb=a,hdb=a < $MASTEROUT | grep -iv "^auditcontext:" > $MASTERFLT
echo "Filtering consumer results..."
-. $LDIFFILTER < $SLAVEOUT | grep -iv "^auditcontext:" > $SLAVEFLT
+$LDIFFILTER -s bdb=a,hdb=a < $SLAVEOUT | grep -iv "^auditcontext:" > $SLAVEFLT
echo "Comparing retrieved entries from producer and consumer..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test044-dynlist b/external/bsd/openldap/dist/tests/scripts/test044-dynlist
index cc31a8188898..4e0f1bdda6fc 100644
--- a/external/bsd/openldap/dist/tests/scripts/test044-dynlist
+++ b/external/bsd/openldap/dist/tests/scripts/test044-dynlist
@@ -1,7 +1,7 @@
#! /bin/sh
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -20,6 +20,12 @@ if test $DYNLIST = "dynlistno" ; then
exit 0
fi
+if test $BACKEND = ldif ; then
+ # dynlist+ldif fails because back-ldif lacks bi_op_compare()
+ echo "$BACKEND backend unsuitable for dynlist overlay, test skipped"
+ exit 0
+fi
+
mkdir -p $TESTDIR $DBDIR1
$SLAPPASSWD -g -n >$CONFIGPWF
@@ -603,9 +609,9 @@ test $KILLSERVERS != no && kill -HUP $KILLPIDS
LDIF=$DYNLISTOUT
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test045-syncreplication-proxied b/external/bsd/openldap/dist/tests/scripts/test045-syncreplication-proxied
index db41802ff1cb..39f63105dd44 100644
--- a/external/bsd/openldap/dist/tests/scripts/test045-syncreplication-proxied
+++ b/external/bsd/openldap/dist/tests/scripts/test045-syncreplication-proxied
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test045-syncreplication-proxied,v 1.14.2.9 2009/03/10 16:28:14 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test045-syncreplication-proxied,v 1.14.2.11 2010/04/19 19:14:36 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -13,10 +13,6 @@
## top-level directory of the distribution or, alternatively, at
## .
-if test "$BACKEND" != "bdb" && test "$BACKEND" != "hdb" ; then
- echo "Test does not support $BACKEND"
- exit 0
-fi
# test now handles known issues
#if test x"$PROXYSYNC" = x ; then
@@ -230,9 +226,9 @@ if test $RC != 0 ; then
fi
#echo "Filtering master results..."
-. $LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
+$LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
#echo "Filtering slave results..."
-. $LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
+$LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
echo "$CHECK < Comparing retrieved entries from master and slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
@@ -420,9 +416,9 @@ if test $RC != 0 ; then
fi
#echo "Filtering master results..."
-. $LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
+$LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
#echo "Filtering slave results..."
-. $LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
+$LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
echo "$CHECK < Comparing retrieved entries from master and slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
@@ -527,9 +523,9 @@ if test $RC != 0 ; then
fi
#echo "Filtering master results..."
-. $LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
+$LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
#echo "Filtering slave results..."
-. $LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
+$LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
echo "$CHECK < Comparing retrieved entries from master and slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
@@ -616,9 +612,9 @@ if test $RC != 0 ; then
fi
#echo "Filtering master results..."
-. $LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
+$LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
#echo "Filtering slave results..."
-. $LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
+$LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
echo "$CHECK < Comparing retrieved entries from master and slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
@@ -713,9 +709,9 @@ if test $RC != 0 ; then
fi
#echo "Filtering master results..."
-. $LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
+$LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
#echo "Filtering slave results..."
-. $LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
+$LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
echo "$CHECK < Comparing retrieved entries from master and slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
@@ -758,7 +754,7 @@ if test $? != 0 ; then
fi
#echo "Filtering slave results..."
- . $LDIFFILTER < "${SLAVEOUT}.5.1" > $SLAVEFLT
+ $LDIFFILTER < "${SLAVEOUT}.5.1" > $SLAVEFLT
echo " ${CHECK}.1 < Comparing retrieved entries from master and slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
@@ -853,9 +849,9 @@ if test $RC != 0 ; then
fi
#echo "Filtering master results..."
-. $LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
+$LDIFFILTER < "${MASTEROUT}.$CHECK" > $MASTERFLT
#echo "Filtering slave results..."
-. $LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
+$LDIFFILTER < "${SLAVEOUT}.$CHECK" > $SLAVEFLT
echo "$CHECK < Comparing retrieved entries from master and slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test046-dds b/external/bsd/openldap/dist/tests/scripts/test046-dds
index 16afa23b4e8d..c029e417259c 100644
--- a/external/bsd/openldap/dist/tests/scripts/test046-dds
+++ b/external/bsd/openldap/dist/tests/scripts/test046-dds
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test046-dds,v 1.4.2.6 2009/08/13 00:47:41 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test046-dds,v 1.4.2.8 2010/04/19 19:14:36 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 2005-2009 The OpenLDAP Foundation.
+## Copyright 2005-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -16,10 +16,11 @@
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
-if test $BACKEND = "ldif" ; then
- echo "LDIF backend does not support acls, test skipped"
+case $BACKEND in ldif | null)
+ # LDIF lacks ACL support, NULL cannot hold dynamic entries
+ echo "Test does not support $BACKEND backend, test skipped"
exit 0
-fi
+esac
if test $DDS = ddsno; then
echo "Dynamic Directory Services overlay not available, test skipped"
@@ -444,7 +445,7 @@ case $RC in
0)
echo "ldapmodify should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit -1
;;
50)
echo "ldapmodify failed ($RC)"
@@ -475,7 +476,7 @@ RC=$?
if test $RC = 0 ; then
echo "ldapexop should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit -1
fi
echo "Trying to refresh the meeting as $JAJDN (should fail)..."
@@ -486,7 +487,7 @@ RC=$?
if test $RC = 0 ; then
echo "ldapexop should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit -1
fi
echo "Trying to delete the meeting as $BABSDN (should fail)..."
@@ -500,7 +501,7 @@ case $RC in
0)
echo "ldapdelete should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit -1
;;
50)
echo "ldapdelete failed ($RC)"
@@ -530,9 +531,9 @@ test $KILLSERVERS != no && kill -HUP $KILLPIDS
LDIF=$DDSOUT
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test047-ldap b/external/bsd/openldap/dist/tests/scripts/test047-ldap
index 72017c6de5b1..8676b8a3be1b 100644
--- a/external/bsd/openldap/dist/tests/scripts/test047-ldap
+++ b/external/bsd/openldap/dist/tests/scripts/test047-ldap
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test047-ldap,v 1.1.2.6 2009/01/22 00:01:20 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test047-ldap,v 1.1.2.8 2010/04/19 19:14:36 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -485,14 +485,14 @@ $LDAPSEARCH -S "" -h $LOCALHOST -p $PORT3 \
-b "$BASEDN" "(objectClass=*)" 1.1 \
>> $TESTOUT 2>&1
RC=$?
-case $RC in
- 0)
+case $RC,$BACKEND in
+ 4,* | 0,null)
+ ;;
+ 0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
- 4)
- ;;
*)
echo "Search failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
@@ -509,14 +509,14 @@ $LDAPSEARCH -S "" -h $LOCALHOST -p $PORT3 \
-b "$BASEDN" -z 2 "(objectClass=*)" 1.1 \
>> $TESTOUT 2>&1
RC=$?
-case $RC in
- 0)
+case $RC,$BACKEND in
+ 4,* | 0,null)
+ ;;
+ 0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
- 4)
- ;;
*)
echo "Search failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
@@ -525,9 +525,9 @@ case $RC in
esac
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $METAOUT > $LDIFFLT
+$LDIFFILTER < $METAOUT > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
@@ -680,13 +680,15 @@ RC=$?
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit $RC
#fi
-case $RC in
- 0)
+case $RC,$BACKEND in
+ 0,null)
+ ;;
+ 0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
- 51)
+ 51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)
@@ -703,13 +705,15 @@ RC=$?
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit $RC
#fi
-case $RC in
- 0)
+case $RC,$BACKEND in
+ 0,null)
+ ;;
+ 0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
- 51)
+ 51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)
@@ -726,16 +730,18 @@ RC=$?
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit -1
#fi
-case $RC in
- 6)
+case $RC,$BACKEND in
+ 5,null)
;;
- 51)
+ 6,*)
+ ;;
+ 51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)
echo "Compare failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit $RC
+ exit 1
;;
esac
diff --git a/external/bsd/openldap/dist/tests/scripts/test048-syncrepl-multiproxy b/external/bsd/openldap/dist/tests/scripts/test048-syncrepl-multiproxy
index 03698514d762..8982ea3b7b3e 100644
--- a/external/bsd/openldap/dist/tests/scripts/test048-syncrepl-multiproxy
+++ b/external/bsd/openldap/dist/tests/scripts/test048-syncrepl-multiproxy
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test048-syncrepl-multiproxy,v 1.1.2.11 2009/07/01 23:05:29 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test048-syncrepl-multiproxy,v 1.1.2.13 2010/04/19 19:14:36 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -185,9 +185,9 @@ if test $RC != 0 ; then
fi
#echo "Filtering master results..."
-. $LDIFFILTER < "${MASTEROUT}.1" > $MASTERFLT
+$LDIFFILTER < "${MASTEROUT}.1" > $MASTERFLT
#echo "Filtering slave results..."
-. $LDIFFILTER < "${SLAVEOUT}.1" > $SLAVEFLT
+$LDIFFILTER < "${SLAVEOUT}.1" > $SLAVEFLT
echo "$CHECK < Comparing retrieved entries from master and P1 slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
@@ -210,7 +210,7 @@ if test $RC != 0 ; then
fi
#echo "Filtering slave results..."
-. $LDIFFILTER < "${SLAVEOUT}.1" > $SLAVEFLT
+$LDIFFILTER < "${SLAVEOUT}.1" > $SLAVEFLT
echo "$CHECK < Comparing retrieved entries from master and R1 slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
@@ -369,9 +369,9 @@ if test $RC != 0 ; then
fi
#echo "Filtering master results..."
-. $LDIFFILTER < "${MASTEROUT}.2" > $MASTERFLT
+$LDIFFILTER < "${MASTEROUT}.2" > $MASTERFLT
#echo "Filtering P1 slave results..."
-. $LDIFFILTER < "${SLAVEOUT}.2" > $SLAVEFLT
+$LDIFFILTER < "${SLAVEOUT}.2" > $SLAVEFLT
echo "$CHECK < Comparing retrieved entries from master and P1 slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
@@ -394,7 +394,7 @@ if test $RC != 0 ; then
fi
#echo "Filtering slave results..."
-. $LDIFFILTER < "${SLAVEOUT}.2" > $SLAVEFLT
+$LDIFFILTER < "${SLAVEOUT}.2" > $SLAVEFLT
echo "$CHECK < Comparing retrieved entries from master and R1 slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
@@ -480,9 +480,9 @@ if test $RC != 0 ; then
fi
#echo "Filtering master results..."
-. $LDIFFILTER < "${MASTEROUT}.3" > $MASTERFLT
+$LDIFFILTER < "${MASTEROUT}.3" > $MASTERFLT
#echo "Filtering slave results..."
-. $LDIFFILTER < "${SLAVEOUT}.3" > $SLAVEFLT
+$LDIFFILTER < "${SLAVEOUT}.3" > $SLAVEFLT
echo "$CHECK < Comparing retrieved entries from master and P1 slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
@@ -505,7 +505,7 @@ if test $RC != 0 ; then
fi
#echo "Filtering slave results..."
-. $LDIFFILTER < "${SLAVEOUT}.3" > $SLAVEFLT
+$LDIFFILTER < "${SLAVEOUT}.3" > $SLAVEFLT
echo "$CHECK < Comparing retrieved entries from master and R1 slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
@@ -561,9 +561,9 @@ if test $RC != 0 ; then
fi
#echo "Filtering master results..."
-. $LDIFFILTER < "${MASTEROUT}.4" > $MASTERFLT
+$LDIFFILTER < "${MASTEROUT}.4" > $MASTERFLT
#echo "Filtering slave results..."
-. $LDIFFILTER < "${SLAVEOUT}.4" > $SLAVEFLT
+$LDIFFILTER < "${SLAVEOUT}.4" > $SLAVEFLT
echo "$CHECK < Comparing retrieved entries from master and P1 slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
@@ -586,7 +586,7 @@ if test $RC != 0 ; then
fi
#echo "Filtering slave results..."
-. $LDIFFILTER < "${SLAVEOUT}.4" > $SLAVEFLT
+$LDIFFILTER < "${SLAVEOUT}.4" > $SLAVEFLT
echo "$CHECK < Comparing retrieved entries from master and R1 slave..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test049-sync-config b/external/bsd/openldap/dist/tests/scripts/test049-sync-config
index 0127ef0b4409..4df7d559fae3 100644
--- a/external/bsd/openldap/dist/tests/scripts/test049-sync-config
+++ b/external/bsd/openldap/dist/tests/scripts/test049-sync-config
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test049-sync-config,v 1.4.2.11 2009/03/05 23:32:21 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test049-sync-config,v 1.4.2.13 2010/04/19 19:14:36 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -219,6 +219,9 @@ if test $RC != 0 ; then
exit $RC
fi
+nullExclude="" nullOK=""
+test $BACKEND = null && nullExclude="# " nullOK="OK"
+
if [ "$BACKENDTYPE" = mod ]; then
$LDAPADD -D cn=config -H $URI1 -y $CONFIGPWF <>$TESTOUT 2>&1
dn: cn=module,cn=config
@@ -238,10 +241,10 @@ fi
$LDAPADD -D cn=config -H $URI1 -y $CONFIGPWF <>$TESTOUT 2>&1
dn: olcDatabase={1}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {1}$BACKEND
olcSuffix: $BASEDN
-olcDbDirectory: ./db
+${nullExclude}olcDbDirectory: ./db
olcRootDN: $MANAGERDN
olcRootPW: $PASSWD
olcSyncRepl: rid=002 provider=$URI1 binddn="$MANAGERDN" bindmethod=simple
@@ -299,7 +302,7 @@ for i in 0 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI2 \
-s base -b "cn=Ursula Hampster,ou=Alumni Association,ou=People,dc=example,dc=com" \
'(objectClass=*)' 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -348,9 +351,9 @@ if test $RC != 0 ; then
fi
echo "Filtering producer results..."
-. $LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $MASTEROUT > $MASTERFLT
echo "Filtering consumer results..."
-. $LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
echo "Comparing retrieved configs from producer and consumer..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
@@ -386,9 +389,9 @@ fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
echo "Filtering producer results..."
-. $LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $MASTEROUT > $MASTERFLT
echo "Filtering consumer results..."
-. $LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
echo "Comparing retrieved entries from producer and consumer..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test050-syncrepl-multimaster b/external/bsd/openldap/dist/tests/scripts/test050-syncrepl-multimaster
index 37228669135a..0caf6b3dd338 100644
--- a/external/bsd/openldap/dist/tests/scripts/test050-syncrepl-multimaster
+++ b/external/bsd/openldap/dist/tests/scripts/test050-syncrepl-multimaster
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test050-syncrepl-multimaster,v 1.3.2.19 2009/11/20 23:19:45 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test050-syncrepl-multimaster,v 1.3.2.21 2010/04/19 19:14:36 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -258,6 +258,9 @@ if test $RC != 0 ; then
exit $RC
fi
+nullExclude=""
+test $BACKEND = null && nullExclude="# "
+
echo "" > $TMP
if [ "$BACKENDTYPE" = mod ]; then
cat <> $TMP
@@ -273,10 +276,10 @@ fi
cat <> $TMP
dn: olcDatabase={1}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {1}$BACKEND
olcSuffix: $BASEDN
-olcDbDirectory: ./db
+${nullExclude}olcDbDirectory: ./db
olcRootDN: $MANAGERDN
olcRootPW: $PASSWD
EOF
@@ -355,7 +358,7 @@ if test $RC != 0 ; then
exit $RC
fi
-. $LDIFFILTER < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
+$LDIFFILTER < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
n=`expr $n + 1`
done
@@ -388,7 +391,7 @@ if test $RC != 0 ; then
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
-. $LDIFFILTER < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
+$LDIFFILTER < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
n=`expr $n + 1`
done
@@ -433,7 +436,7 @@ if test $RC != 0 ; then
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
-. $LDIFFILTER < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
+$LDIFFILTER < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
n=`expr $n + 1`
done
@@ -483,7 +486,7 @@ if test $RC != 0 ; then
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
-. $LDIFFILTER < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
+$LDIFFILTER < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
n=`expr $n + 1`
done
@@ -546,7 +549,7 @@ if test $RC != 0 ; then
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
-. $LDIFFILTER < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
+$LDIFFILTER < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
n=`expr $n + 1`
done
@@ -610,7 +613,7 @@ if test $RC != 0 ; then
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
-. $LDIFFILTER < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
+$LDIFFILTER < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
n=`expr $n + 1`
done
@@ -762,7 +765,7 @@ if test $RC != 0 ; then
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
-. $LDIFFILTER < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
+$LDIFFILTER < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
n=`expr $n + 1`
done
diff --git a/external/bsd/openldap/dist/tests/scripts/test051-config-undo b/external/bsd/openldap/dist/tests/scripts/test051-config-undo
index 22060c847d9c..cde82f8f611f 100644
--- a/external/bsd/openldap/dist/tests/scripts/test051-config-undo
+++ b/external/bsd/openldap/dist/tests/scripts/test051-config-undo
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test051-config-undo,v 1.2.2.4 2009/01/22 00:01:20 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test051-config-undo,v 1.2.2.5 2010/04/13 20:24:06 kurt Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
diff --git a/external/bsd/openldap/dist/tests/scripts/test052-memberof b/external/bsd/openldap/dist/tests/scripts/test052-memberof
index 6d7a031f7785..986a5b4f4594 100644
--- a/external/bsd/openldap/dist/tests/scripts/test052-memberof
+++ b/external/bsd/openldap/dist/tests/scripts/test052-memberof
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test052-memberof,v 1.4.2.4 2009/02/03 19:06:20 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test052-memberof,v 1.4.2.6 2010/04/19 19:14:36 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -72,6 +72,12 @@ EOF
fi
fi
+bdbInclude="# " nullExclude=""
+case $BACKEND in
+bdb | hdb) bdbInclude="" ;;
+null) nullExclude="# " ;;
+esac
+
echo "Running ldapadd to build slapd config database..."
$LDAPADD -h $LOCALHOST -p $PORT1 -D 'cn=config' -w `cat $CONFIGPWF` \
>> $TESTOUT 2>&1 < $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test054-syncreplication-parallel-load b/external/bsd/openldap/dist/tests/scripts/test054-syncreplication-parallel-load
index 65b6541469b1..b2f2c9af137b 100644
--- a/external/bsd/openldap/dist/tests/scripts/test054-syncreplication-parallel-load
+++ b/external/bsd/openldap/dist/tests/scripts/test054-syncreplication-parallel-load
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test054-syncreplication-parallel-load,v 1.1.2.3 2009/03/05 22:19:39 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test054-syncreplication-parallel-load,v 1.1.2.5 2010/04/19 19:14:36 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -13,11 +13,6 @@
## top-level directory of the distribution or, alternatively, at
## .
-if test "$BACKEND" != "bdb" && test "$BACKEND" != "hdb" ; then
- echo "Test does not support $BACKEND"
- exit 0
-fi
-
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
@@ -363,9 +358,9 @@ fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
echo "Filtering producer results..."
-. $LDIFFILTER < $MASTEROUT > $MASTERFLT
+$LDIFFILTER < $MASTEROUT > $MASTERFLT
echo "Filtering consumer results..."
-. $LDIFFILTER < $SLAVEOUT > $SLAVEFLT
+$LDIFFILTER < $SLAVEOUT > $SLAVEFLT
echo "Comparing retrieved entries from producer and consumer..."
$CMP $MASTERFLT $SLAVEFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test055-valregex b/external/bsd/openldap/dist/tests/scripts/test055-valregex
index 42ac823c0d34..5746adbb7a7f 100644
--- a/external/bsd/openldap/dist/tests/scripts/test055-valregex
+++ b/external/bsd/openldap/dist/tests/scripts/test055-valregex
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test055-valregex,v 1.2.2.2 2009/01/22 00:01:20 kurt Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test055-valregex,v 1.2.2.4 2010/04/19 19:14:36 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -13,14 +13,6 @@
## top-level directory of the distribution or, alternatively, at
## .
-case "$BACKEND" in
-bdb|hdb)
- ;;
-*)
- echo "Test does not support $BACKEND backend"
- exit 0
-esac
-
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
LVL=acl
@@ -82,9 +74,11 @@ case $RC in
echo "ldapmodify failed as expected"
;;
0)
- echo "ldapmodify should have failed ($RC)!"
- test $KILLSERVERS != no && kill -HUP $KILLPIDS
- exit -1
+ if test $BACKEND != null ; then
+ echo "ldapmodify should have failed ($RC)!"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit -1
+ fi
;;
*)
echo "ldapmodify failed ($RC)!"
diff --git a/external/bsd/openldap/dist/tests/scripts/test056-monitor b/external/bsd/openldap/dist/tests/scripts/test056-monitor
index b4703b24aa6f..e4622232ce54 100644
--- a/external/bsd/openldap/dist/tests/scripts/test056-monitor
+++ b/external/bsd/openldap/dist/tests/scripts/test056-monitor
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test056-monitor,v 1.2.2.5 2009/08/17 17:43:01 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test056-monitor,v 1.2.2.7 2010/04/19 19:14:36 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2008 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -69,9 +69,9 @@ fi
# Compare results, ignoring possible difference of IPv4/IPv6 localhost address
localrewrite='s/=127\.0\.0\.1:/=LOCAL:/; s/=\[::1\]:/=LOCAL:/'
echo "Filtering ldapsearch results..."
-sed -e "$localrewrite" < $SEARCHOUT | . $LDIFFILTER > $SEARCHFLT
+sed -e "$localrewrite" < $SEARCHOUT | $LDIFFILTER > $SEARCHFLT
echo "Filtering expected data..."
-. $CONFFILTER < $MONITOROUT1 | sed -e "$localrewrite" | . $LDIFFILTER > $LDIFFLT
+. $CONFFILTER < $MONITOROUT1 | sed -e "$localrewrite" | $LDIFFILTER > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
@@ -97,7 +97,7 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER -b monitor < $SEARCHOUT > $SEARCHFLT
TMPMONITOROUT2=$MONITOROUT2
case $BACKEND in
@@ -132,7 +132,7 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER -b monitor < $SEARCHOUT > $SEARCHFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $MONITOROUT3 > $CMPOUT
@@ -157,7 +157,7 @@ if test $RC != 0 ; then
fi
echo "Filtering ldapsearch results..."
-. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
+$LDIFFILTER -b monitor < $SEARCHOUT > $SEARCHFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $MONITOROUT4 > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test057-memberof-refint b/external/bsd/openldap/dist/tests/scripts/test057-memberof-refint
index 126be1e2f358..3a227c4ff5b7 100644
--- a/external/bsd/openldap/dist/tests/scripts/test057-memberof-refint
+++ b/external/bsd/openldap/dist/tests/scripts/test057-memberof-refint
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test057-memberof-refint,v 1.3.2.4 2009/10/30 23:56:26 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test057-memberof-refint,v 1.3.2.6 2010/04/19 19:14:36 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## Portions Copyright 2008 Red Hat, Inc.
## All rights reserved.
##
@@ -27,8 +27,8 @@ if test $REFINT = refintno; then
exit 0
fi
-if test "$BACKEND" != "hdb" ; then
- echo "Test does not support $BACKEND"
+if test $BACKEND = bdb; then
+ echo "$BACKEND backend does not support subtree rename, test skipped"
exit 0
fi
@@ -66,6 +66,12 @@ fi
cat /dev/null > $TESTOUT
+bdbInclude="# " nullExclude=""
+case $BACKEND in
+bdb | hdb) bdbInclude="" ;;
+null) nullExclude="# " ;;
+esac
+
if [ "$MEMBEROF" = memberofmod ]; then
echo "Inserting memberof overlay on producer..."
$LDAPADD -D cn=config -H $URI1 -y $CONFIGPWF < $TESTOUT 2>&1
@@ -89,19 +95,19 @@ $LDAPADD -h $LOCALHOST -p $PORT1 -D 'cn=config' -w `cat $CONFIGPWF` \
>> $TESTOUT 2>&1 < $SEARCHFLT
+$LDIFFILTER < $SEARCHOUT > $SEARCHFLT
echo "Filtering original ldif used to create database..."
-. $LDIFFILTER < $LDIF > $LDIFFLT
+$LDIFFILTER < $LDIF > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
diff --git a/external/bsd/openldap/dist/tests/scripts/test058-syncrepl-asymmetric b/external/bsd/openldap/dist/tests/scripts/test058-syncrepl-asymmetric
index 77616b9dbb57..bc7a605beb64 100644
--- a/external/bsd/openldap/dist/tests/scripts/test058-syncrepl-asymmetric
+++ b/external/bsd/openldap/dist/tests/scripts/test058-syncrepl-asymmetric
@@ -1,8 +1,8 @@
#! /bin/sh
-# OpenLDAP: pkg/ldap/tests/scripts/test058-syncrepl-asymmetric,v 1.1.2.4 2009/12/07 19:22:32 quanah Exp
+# OpenLDAP: pkg/ldap/tests/scripts/test058-syncrepl-asymmetric,v 1.1.2.6 2010/04/19 19:14:36 quanah Exp
## This work is part of OpenLDAP Software .
##
-## Copyright 1998-2009 The OpenLDAP Foundation.
+## Copyright 1998-2010 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
@@ -111,13 +111,10 @@
# environment variable RACE_TESTS can be set to the number of race test
# iterations the script should perform.
-case "$BACKEND" in
-bdb|hdb)
- ;;
-*)
- echo "This test does not support the $BACKEND backend"
- exit 0;;
-esac
+if test "$BACKEND" = ldif ; then
+ echo "$backend backend does not support access controls, test skipped"
+ exit 0
+fi
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
@@ -405,12 +402,15 @@ EOF
fi
fi
+nullExclude="" nullOK="" wantNoObj=32
+test $BACKEND = null && nullExclude="# " nullOK="OK" wantNoObj=0
+
$LDAPADD -D cn=config -H $URI1 -y $CONFIGPWF <> $TESTOUT 2>&1
dn: olcDatabase={1}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {1}$BACKEND
-olcDbDirectory: $SMC_DIR/db
+${nullExclude}olcDbDirectory: $SMC_DIR/db
olcSuffix: $BASEDN
olcRootDN: $MANAGERDN
olcRootPW: $PASSWD
@@ -427,45 +427,45 @@ olcSpCheckpoint: 3 1
dn: olcDatabase={1}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {1}$BACKEND
-olcDbDirectory: $SMC_DIR/ou1
+${nullExclude}olcDbDirectory: $SMC_DIR/ou1
olcSubordinate: TRUE
olcSuffix: ou=ou1,$BASEDN
olcRootDN: $MANAGERDN
dn: olcDatabase={2}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {2}$BACKEND
-olcDbDirectory: $SMC_DIR/ou2
+${nullExclude}olcDbDirectory: $SMC_DIR/ou2
olcSubordinate: TRUE
olcSuffix: ou=ou2,$BASEDN
olcRootDN: $MANAGERDN
dn: olcDatabase={3}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {3}$BACKEND
-olcDbDirectory: $SMC_DIR/sm1ou1
+${nullExclude}olcDbDirectory: $SMC_DIR/sm1ou1
olcSubordinate: TRUE
olcSuffix: ou=sm1ou1,$BASEDN
olcRootDN: $UPDATEDN
dn: olcDatabase={4}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {4}$BACKEND
-olcDbDirectory: $SMC_DIR/sm1ou2
+${nullExclude}olcDbDirectory: $SMC_DIR/sm1ou2
olcSubordinate: TRUE
olcSuffix: ou=sm1ou2,$BASEDN
olcRootDN: $UPDATEDN
dn: olcDatabase={5}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {5}$BACKEND
-olcDbDirectory: $SMC_DIR/sm2ou1
+${nullExclude}olcDbDirectory: $SMC_DIR/sm2ou1
olcSubordinate: TRUE
olcSuffix: ou=sm2ou1,$BASEDN
olcRootDN: $UPDATEDN
@@ -499,9 +499,9 @@ fi
$LDAPADD -D cn=config -H $URI2 -y $CONFIGPWF <> $TESTOUT 2>&1
dn: olcDatabase={1}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {1}$BACKEND
-olcDbDirectory: $SM1_DIR/db
+${nullExclude}olcDbDirectory: $SM1_DIR/db
olcSuffix: $BASEDN
olcRootDN: $UPDATEDN
@@ -516,18 +516,18 @@ olcOverlay: {1}syncprov
dn: olcDatabase={1}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {1}$BACKEND
-olcDbDirectory: $SM1_DIR/ou1
+${nullExclude}olcDbDirectory: $SM1_DIR/ou1
olcSubordinate: TRUE
olcSuffix: ou=ou1,$BASEDN
olcRootDN: $UPDATEDN
dn: olcDatabase={2}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {2}$BACKEND
-olcDbDirectory: $SM1_DIR/sm1ou1
+${nullExclude}olcDbDirectory: $SM1_DIR/sm1ou1
olcSubordinate: TRUE
olcSuffix: ou=sm1ou1,$BASEDN
olcRootDN: ou=sm1ou1,$BASEDN
@@ -535,9 +535,9 @@ olcRootPW: $PASSWD
dn: olcDatabase={3}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {3}$BACKEND
-olcDbDirectory: $SM1_DIR/sm1ou2
+${nullExclude}olcDbDirectory: $SM1_DIR/sm1ou2
olcSubordinate: TRUE
olcSuffix: ou=sm1ou2,$BASEDN
olcRootDN: ou=sm1ou1,$BASEDN
@@ -572,9 +572,9 @@ fi
$LDAPADD -D cn=config -H $URI3 -y $CONFIGPWF <> $TESTOUT 2>&1
dn: olcDatabase={1}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {1}$BACKEND
-olcDbDirectory: $SM2_DIR/db
+${nullExclude}olcDbDirectory: $SM2_DIR/db
olcSuffix: $BASEDN
olcRootDN: $UPDATEDN
@@ -590,27 +590,27 @@ olcSpCheckpoint: 1 1
dn: olcDatabase={1}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {1}$BACKEND
-olcDbDirectory: $SM2_DIR/ou2
+${nullExclude}olcDbDirectory: $SM2_DIR/ou2
olcSubordinate: TRUE
olcSuffix: ou=ou2,$BASEDN
olcRootDN: $UPDATEDN
dn: olcDatabase={2}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {2}$BACKEND
-olcDbDirectory: $SM2_DIR/sm1ou1
+${nullExclude}olcDbDirectory: $SM2_DIR/sm1ou1
olcSubordinate: TRUE
olcSuffix: ou=sm1ou1,$BASEDN
olcRootDN: $UPDATEDN
dn: olcDatabase={3}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {3}$BACKEND
-olcDbDirectory: $SM2_DIR/sm2ou1
+${nullExclude}olcDbDirectory: $SM2_DIR/sm2ou1
olcSubordinate: TRUE
olcSuffix: ou=sm2ou1,$BASEDN
olcRootDN: ou=sm2ou1,$BASEDN
@@ -618,9 +618,9 @@ olcRootPW: $PASSWD
dn: olcDatabase={4}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {4}$BACKEND
-olcDbDirectory: $SM2_DIR/sm2ou2
+${nullExclude}olcDbDirectory: $SM2_DIR/sm2ou2
olcSubordinate: TRUE
olcSuffix: ou=sm2ou2,$BASEDN
olcRootDN: ou=sm2ou1,$BASEDN
@@ -722,9 +722,9 @@ echo "Adding database config on central search..."
$LDAPADD -D cn=config -H $URI4 -y $CONFIGPWF <> $TESTOUT 2>&1
dn: olcDatabase={1}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {1}$BACKEND
-olcDbDirectory: $SSC_DIR/db
+${nullExclude}olcDbDirectory: $SSC_DIR/db
olcSuffix: $BASEDN
olcRootDN: $UPDATEDN
@@ -740,9 +740,9 @@ echo "Adding database config on site1 search..."
$LDAPADD -D cn=config -H $URI5 -y $CONFIGPWF <> $TESTOUT 2>&1
dn: olcDatabase={1}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {1}$BACKEND
-olcDbDirectory: $SS1_DIR/db
+${nullExclude}olcDbDirectory: $SS1_DIR/db
olcSuffix: $BASEDN
olcRootDN: $UPDATEDN
@@ -758,9 +758,9 @@ echo "Adding database config on site2 search..."
$LDAPADD -D cn=config -H $URI6 -y $CONFIGPWF <> $TESTOUT 2>&1
dn: olcDatabase={1}$BACKEND,cn=config
objectClass: olcDatabaseConfig
-objectClass: olc${BACKEND}Config
+${nullExclude}objectClass: olc${BACKEND}Config
olcDatabase: {1}$BACKEND
-olcDbDirectory: $SS2_DIR/db
+${nullExclude}olcDbDirectory: $SS2_DIR/db
olcSuffix: $BASEDN
olcRootDN: $UPDATEDN
@@ -843,7 +843,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI2 \
-s base -b "ou=ou1,$BASEDN" \
'(objectClass=*)' 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -862,7 +862,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI3 \
-s base -b "ou=ou1,$BASEDN" \
'(objectClass=*)' 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -963,7 +963,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI1 \
-s base -b "ou=sm2ou1,$BASEDN" \
'(objectClass=*)' 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -1011,7 +1011,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI1 \
-s base -b "ou=sm1ou1,$BASEDN" \
'(objectClass=*)' 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -1084,7 +1084,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI4 \
-s base -b "$BASEDN" \
'(objectClass=*)' 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -1103,7 +1103,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI5 \
-s base -b "$BASEDN" \
'(objectClass=*)' 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -1122,7 +1122,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI6 \
-s base -b "$BASEDN" \
'(objectClass=*)' 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -1508,6 +1508,8 @@ ERRORS=`expr $ERRORS + $CSN_ERRORS`
EOF
+test $BACKEND = null && echo : > $TESTDIR/checkcsn.sh
+
chmod +x $TESTDIR/checkcsn.sh
@@ -1542,7 +1544,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI4 \
-s base -b "ou=ou1,$BASEDN" \
"(description=Modify$MNUM)" 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -1561,7 +1563,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI5 \
-s base -b "ou=ou1,$BASEDN" \
"(description=Modify$MNUM)" 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -1580,7 +1582,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI6 \
-s base -b "ou=ou1,$BASEDN" \
"(description=Modify$MNUM)" 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -1623,7 +1625,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI6 \
-s base -b "ou=ou2,$BASEDN" \
"(description=Modify$MNUM)" 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -1692,7 +1694,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI5 \
-s base -b "ou=sm1ou1,$BASEDN" \
"(description=Modify$MNUM)" 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -1711,7 +1713,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI3 \
-s base -b "ou=sm1ou1,$BASEDN" \
"(description=Modify$MNUM)" 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -1781,7 +1783,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI5 \
-s base -b "ou=sm1ou2,$BASEDN" \
"(description=Modify$MNUM)" 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -1838,7 +1840,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI1 \
-s base -b "ou=sm2ou1,$BASEDN" \
"(description=Modify$MNUM)" 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -1857,7 +1859,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI6 \
-s base -b "ou=sm2ou1,$BASEDN" \
"(description=Modify$MNUM)" 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -1927,7 +1929,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI6 \
-s base -b "ou=sm2ou2,$BASEDN" \
"(description=Modify$MNUM)" 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -2057,7 +2059,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI3 \
-s base -b "$BASEDN" \
'(objectClass=*)' 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -2076,7 +2078,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI6 \
-s base -b "$BASEDN" \
'(objectClass=*)' 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -2128,7 +2130,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI1 \
-s base -b "ou=sm1ou2,$BASEDN" \
'(objectClass=*)' 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -2174,7 +2176,7 @@ if test $RC != 0 ; then
RESULT=`$LDAPSEARCH -H $URI1 \
-s base -b "ou=sm1ou2,$BASEDN" \
'(objectClass=*)' 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -2194,7 +2196,7 @@ for i in 1 2 3 4 5; do
RESULT=`$LDAPSEARCH -H $URI4 \
-s base -b "ou=sm1ou2,$BASEDN" \
'(objectClass=*)' 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -2240,7 +2242,7 @@ if test $RC != 0 ; then
RESULT=`$LDAPSEARCH -H $URI4 \
-s base -b "ou=sm1ou2,$BASEDN" \
'(objectClass=*)' 2>&1 | awk '/^dn:/ {print "OK"}'`
- if test "x$RESULT" = "xOK" ; then
+ if test "x$RESULT$nullOK" = "xOK" ; then
RC=0
break
fi
@@ -2354,11 +2356,16 @@ EOF
for i in 1 2 3 4 5; do
$LDAPSEARCH -s base -b "$SUB_DN" -H $URI1 > /dev/null 2>&1
RC=$?
- if test $RC != 0; then break; fi
+ if test $RC = $wantNoObj; then break; fi
sleep $i
done
- if test $RC = 0; then
+ if test $RC != $wantNoObj; then
+ if test $RC != 0; then
+ echo "ldapsearch failed ($RC)!"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit $RC
+ fi
echo "ERROR: Entry not removed on central master!"
RACE_ERROR=1
break
@@ -2373,8 +2380,8 @@ EOF
sleep $i
done
- if test $RC = 0; then
- echo "ERROR: Entry not removed on central search!"
+ if test $RC != $wantNoObj; then
+ echo "ERROR: Entry not removed on central search! (RC=$RC)"
RACE_ERROR=1
break
fi