openldap/contrib/slapd-modules/allowed/README

74 lines
2.0 KiB
Plaintext
Raw Normal View History

This directory contains a slapd overlay, "allowed".
2009-08-18 18:50:45 +08:00
--- o --- o --- o ---
It adds to entries returned by search operations the value of attributes
"allowedAttributes"
<http://msdn.microsoft.com/en-us/library/ms675217(VS.85).aspx>
"allowedAttributesEffective"
<http://msdn.microsoft.com/en-us/library/ms675218(VS.85).aspx>
"allowedChildClasses"
<http://msdn.microsoft.com/en-us/library/ms675219(VS.85).aspx>
2009-08-18 18:50:45 +08:00
"allowedChildClassesEffective"
<http://msdn.microsoft.com/en-us/library/ms675220(VS.85).aspx>
No other use is made of those attributes: they cannot be compared,
they cannot be used in search filters, they cannot be used in ACLs, ...
2009-08-18 18:50:45 +08:00
--- o --- o --- o ---
Usage: add to slapd.conf(5)
moduleload path/to/allowed.so
overlay allowed
2009-08-18 18:50:45 +08:00
or add
dn: olcOverlay={0}allowed,olcDatabase={1}bdb,cn=config
2009-08-18 18:50:45 +08:00
objectClass: olcOverlayConfig
olcOverlay: {0}allowed
2009-08-18 18:50:45 +08:00
as a child of the database that's intended to support this feature
(replace "olcDatabase={1}bdb,cn=config" with the appropriate parent);
or use
dn: olcOverlay={0}allowed,olcDatabase={-1}frontend,cn=config
2009-08-18 18:50:45 +08:00
objectClass: olcOverlayConfig
olcOverlay: {0}allowed
2009-08-18 18:50:45 +08:00
if it's supposed to be global.
--- o --- o --- o ---
Use Makefile to compile this plugin or use a command line similar to:
2009-08-18 18:50:45 +08:00
gcc -shared -I../../../include -I../../../servers/slapd -Wall -g \
-o allowed.so allowed.c
2009-08-18 18:50:45 +08:00
---
This work is part of OpenLDAP Software <http://www.openldap.org/>.
2014-01-25 21:21:25 +08:00
Copyright 2006-2014 The OpenLDAP Foundation. All rights reserved.
2009-08-18 18:50:45 +08:00
Redistribution and use in source and binary forms, with or without
modification, are permitted only as authorized by the OpenLDAP
Public License.
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
<http://www.OpenLDAP.org/license.html>.
ACKNOWLEDGEMENTS:
This work was initially developed by Pierangelo Masarati for inclusion in
OpenLDAP Software.