-/*
- * Copyright 1999, Dmitry Kovalev <mit@openldap.org>, All rights reserved.
+/* $OpenLDAP$ */
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Redistribution and use in source and binary forms are permitted only
- * as authorized by the OpenLDAP Public License. A copy of this
- * license is available at http://www.OpenLDAP.org/license.html or
- * in file LICENSE in the top-level directory of the distribution.
- */
-/*
- * Copyright 2002, Pierangelo Masarati <ando@OpenLDAP.org>.
- * All rights reserved.
+ * Copyright 1999-2004 The OpenLDAP Foundation.
+ * Portions Copyright 1999 Dmitry Kovalev.
+ * Portions Copyright 2002 Pierangelo Mararati.
+ * All rights reserved.
*
- * This is a modified version of back-sql; the same conditions
- * of the above reported Copyright statement, and sigificantly
- * the OpenLDAP Public License apply. Credits go to Dmitry
- * Kovalev for the initial development of the backend.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
*
- * This copyright statement cannot be altered.
+ * A copy of this license is available in the file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * <http://www.OpenLDAP.org/license.html>.
+ */
+/* ACKNOWLEDGEMENTS:
+ * This work was initially developed by Dmitry Kovalev for inclusion
+ * by OpenLDAP Software. Additional significant contributors include
+ * Pierangelo Mararati
*/
+
/*
- * The following changes have been addressed:
+ * The following changes have been addressed:
*
* Enhancements:
* - re-styled code for better readability
* statements (needed by PostgreSQL)
* - upper_needs_cast cast the argument of upper when required
* (basically when building dn substring queries)
+ * - added noop control
+ * - added values return filter control
+ * - hasSubordinate can be used in search filters (with limitations)
+ * - eliminated oc->name; use oc->oc->soc_cname instead
*
* Todo:
* - add security checks for SQL statements that can be injected (?)
*/
#undef BACKSQL_TRACE
-
typedef struct {
char *dbhost;
int dbport;
char *insentry_query,*delentry_query;
char *id_query;
char *has_children_query;
+
+ MatchingRule *bi_caseIgnoreMatch;
+
struct berval upper_func;
struct berval upper_func_open;
struct berval upper_func_close;