openldap/contrib/slapd-modules/acl
Howard Chu 19cb306eb8 ITS#10098 contrib: fix Makefiles for Windows
Must build with "make PLAT=NT"
2023-12-04 18:40:45 +00:00
..
gssacl.c ITS#8731 Apply doc/devel/variadic_debug/04-variadic.cocci 2019-02-15 16:51:53 +00:00
Makefile ITS#10098 contrib: fix Makefiles for Windows 2023-12-04 18:40:45 +00:00
now.c Happy New Year! 2022-01-07 18:40:00 +00:00
posixgroup.c Happy New Year! 2022-01-07 18:40:00 +00:00
README.gssacl ITS#7308 contrib/slapd-modules: Add missing Makefiles 2012-06-26 06:30:26 -07:00
README.now ITS#6244 - Add "now" dynacl module 2021-07-22 17:12:58 +00:00
README.posixgroup Happy New Year! 2022-01-07 18:40:00 +00:00

This directory contains native slapd plugins that implement access rules.

posixgroup.c contains a simple example that implements access control
based on posixGroup membership, loosely inspired by ITS#3849.  It should
be made clear that this access control policy does not reflect any
standard track model of handling access control, and should be 
essentially viewed as an illustration of the use of the dynamic 
extension of access control within slapd.

To use the acl-posixgroup plugin, add:

moduleload acl-posixgroup.so

to your slapd configuration file; it requires "nis.schema" to be loaded.
It is configured using

access to <what>
	by dynacl/posixGroup[.{exact,expand}]=<dnpat> {<level>|<priv(s)}

The default is "exact"; in case of "expand", "<dnpat>" results from
the expansion of submatches in the "<what>" portion.  "<level>|<priv(s)>"
describe the level of privilege this rule can assume.

Use Makefile to compile this plugin or use a command line similar to:

gcc -shared -I../../../include -I../../../servers/slapd -Wall -g \
	-o acl-posixgroup.so posixgroup.c

---
Copyright 2005-2022 The OpenLDAP Foundation. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted only as authorized by the OpenLDAP
Public License.