[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#3959) [enhancement] map undefined attributes from proxy as "proxied"

Full_Name: Pierangelo Masarati
Version: HEAD
OS: Linux
URL: ftp://ftp.openldap.org/incoming/p.m.2005-08-22.proxied-attributes.patch
Submission from: (NULL) (
Submitted by: ando

This patch allows undefined attributes that are collected by proxies (e.g.
back-ldap, back-meta) to appear as "PROXIED", i.e. similar to "UNDEFINED", but
with usage set to 0, so that they appear in results muck like user attributes as
opposed to "UNDEFINED" attributes.  Moreover, in case attributes are in the
requested attributelist or in the filter of searches, or in compares, are not
known, they're looked up in the "PROXIED" as well, so that those operations can
be proxied.  This patch does not interfere with regular usage because only
proxies are supposed to insert "PROXIED" attribute descriptions, and th extra
lookup only occurs if an undefined attribute is used in a filter or in a search
request list.  Those lookups don't cause attribute insertion.  The "PROXIED"
attribute type has octetString syntax and
octectString[{Ordering|Substrings}]Match so that all filters including it are
considered valid, and the actual checking is delegated to the proxied server. 
In case a "PROXIED" or an "UNDEFINED" attribute description is inserted, by
updating the schema via back-config, the corresponding entry (or entries with
option tags) are removed.