From 2c1fb010abc5c09c88c89d5120b5b236cd2d32da Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 29 Dec 2003 19:41:55 +0000 Subject: [PATCH] Sync with HEAD --- doc/man/man5/slapd-ldap.5 | 30 +++++ doc/man/man5/slapd.access.5 | 25 +++- include/ldap.h | 7 - servers/slapd/acl.c | 69 +++++++++- servers/slapd/ad.c | 55 +++++++- servers/slapd/back-bdb/search.c | 2 + servers/slapd/backend.c | 6 +- servers/slapd/backglue.c | 6 +- servers/slapd/controls.c | 22 ++- servers/slapd/repl.c | 231 +++++++++++++++++++------------- servers/slapd/result.c | 2 +- servers/slapd/saslauthz.c | 9 +- servers/slapd/schema_init.c | 98 +++++++------- servers/slapd/search.c | 6 +- servers/slapd/sessionlog.c | 2 + servers/slapd/slap.h | 21 +-- servers/slapd/slapi/TODO | 4 +- servers/slapd/slapi/slapi_ops.c | 1 + 18 files changed, 412 insertions(+), 184 deletions(-) diff --git a/doc/man/man5/slapd-ldap.5 b/doc/man/man5/slapd-ldap.5 index b3949472eb..53f5b4886b 100644 --- a/doc/man/man5/slapd-ldap.5 +++ b/doc/man/man5/slapd-ldap.5 @@ -33,9 +33,13 @@ Other database options are described in the manual page. .LP Note: It is strongly recommended to set +.LP .RS +.nf lastmod off +.fi .RE +.LP for every .B ldap and @@ -68,6 +72,32 @@ check permissions. .B bindpw Password used with the bind DN above. .TP +.B proxyauthzdn "" +DN which is used to propagate the client's identity to the target +by means of the proxyAuthz control when the client does not +belong to the DIT fragment that is being proxyied by back-ldap. +This is useful when operations performed by users bound to another +backend are propagated through back-ldap. +This requires the entry with +.B proxyauthzdn +identity on the remote server to have +.B proxyAuthz +privileges on a wide set of DNs, e.g. +.BR saslAuthzTo=dn.regex:.* , +and the remote server to have +.B sasl-authz-policy +set to +.B to +or +.BR both . +See +.BR slapd.conf (5) +for details on these statements and for remarks and drawbacks about +their usage. +.TP +.B proxyauthzpw +Password used with the proxy authz DN above. +.TP .B proxy-whoami Turns on proxying of the WhoAmI extended operation. If this option is given, back-ldap will replace slapd's original WhoAmI routine with its diff --git a/doc/man/man5/slapd.access.5 b/doc/man/man5/slapd.access.5 index 3d0ba4c2e6..19d529b427 100644 --- a/doc/man/man5/slapd.access.5 +++ b/doc/man/man5/slapd.access.5 @@ -132,7 +132,11 @@ Actually, names in .B that are prefixed by .B @ -are directly treated as objectClass names. +are directly treated as objectClass names. A name prefixed by +.B ! +is also treated as an objectClass, but in this case the access rule +affects the attributes that are not required nor allowed +by that objectClass. .LP Using the form .B attrs= val[.