.lf 1 stdin .TH SLAPD-META 5 "2022/07/14" "OpenLDAP 2.5.13+dfsg-2~bpo11+1" .\" Copyright 1998-2022 The OpenLDAP Foundation, All Rights Reserved. .\" Copying restrictions apply. See the COPYRIGHT file. .\" Copyright 2001, Pierangelo Masarati, All rights reserved. .\" $OpenLDAP$ .\" .\" Portions of this document should probably be moved to slapd-ldap(5) .\" and maybe manual pages for librewrite. .\" .SH NAME slapd\-meta \- metadirectory backend to slapd .SH SYNOPSIS /etc/ldap/slapd.conf .SH DESCRIPTION The .B meta backend to .BR slapd (8) performs basic LDAP proxying with respect to a set of remote LDAP servers, called "targets". The information contained in these servers can be presented as belonging to a single Directory Information Tree (DIT). .LP A basic knowledge of the functionality of the .BR slapd\-ldap (5) backend is recommended. This backend has been designed as an enhancement of the ldap backend. The two backends share many features (actually they also share portions of code). While the .B ldap backend is intended to proxy operations directed to a single server, the .B meta backend is mainly intended for proxying of multiple servers and possibly naming context masquerading. These features, although useful in many scenarios, may result in excessive overhead for some applications, so its use should be carefully considered. In the examples section, some typical scenarios will be discussed. The proxy instance of .BR slapd (8) must contain schema information for the attributes and objectClasses used in filters, request DN and request-related data in general. It should also contain schema information for the data returned by the proxied server. It is the responsibility of the proxy administrator to keep the schema of the proxy lined up with that of the proxied server. .LP Note: When looping back to the same instance of \fBslapd\fP(8), each connection requires a new thread; as a consequence, the \fBslapd\fP(8) \fBthreads\fP parameter may need some tuning. In those cases, unless the multiple target feature is required, one may consider using \fBslapd\-relay\fP(5) instead, which performs the relayed operation internally and thus reuses the same connection. .SH EXAMPLES There are examples in various places in this document, as well as in the slapd/back-meta/data/ directory in the OpenLDAP source tree. .SH CONFIGURATION These .B slapd.conf options apply to the META backend database. That is, they must follow a "database meta" line and come before any subsequent "backend" or "database" lines. Other database options are described in the .BR slapd.conf (5) manual page. .LP Note: In early versions of back-ldap and back-meta it was recommended to always set .LP .RS .nf lastmod off .fi .RE .LP for .B ldap and .B meta databases. This was required because operational attributes related to entry creation and modification should not be proxied, as they could be mistakenly written to the target server(s), generating an error. The current implementation automatically sets lastmod to \fBoff\fP, so its use is redundant and should be omitted. .SH SPECIAL CONFIGURATION DIRECTIVES Target configuration starts with the "uri" directive. All the configuration directives that are not specific to targets should be defined first for clarity, including those that are common to all backends. They are: .TP .B conn\-pool\-max This directive defines the maximum size of the privileged connections pool. .TP .B conn\-ttl