Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
f1e6cc7a
Commit
f1e6cc7a
authored
Feb 09, 2008
by
Quanah Gibson-Mount
Browse files
ITS#5145
parent
182903d9
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
f1e6cc7a
...
...
@@ -7,6 +7,7 @@ OpenLDAP 2.4.8 Engineering
Fixed slapd non-atomic signal variables (ITS#5248)
Fixed slapd overlay ordering when moving to slapd.d (ITS#5284)
Fixed slapd-ldif delete (ITS#5265)
Added slapo-autogroup contrib module (ITS#5145)
Added slapo-constraint cross-attribute constraints (ITS#4987)
Added slapo-translucent local searching (ITS#5283)
Fixed test047 to skip if rwm is not available (ITS#5292)
...
...
contrib/slapd-modules/autogroup/COPYRIGHT
0 → 100644
View file @
f1e6cc7a
Copyright (C) 2007 Michał Szulczyński.
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.
A copy of this license is available in file LICENSE in the
top-level directory of the distribution or, alternatively, at
http://www.OpenLDAP.org/license.html.
contrib/slapd-modules/autogroup/Makefile
0 → 100644
View file @
f1e6cc7a
CPPFLAGS
=
-I
../../../include
-I
../../../servers/slapd
#LDFLAGS=-L/usr/local/openldap/lib
#LDFLAGS=-L/home/mszulczynski/autogroup/openldap/lib/
CC
=
gcc
all
:
autogroup.so
autogroup.so
:
autogroup.c
$(CC)
-shared
-fPIC
$(CPPFLAGS)
$(LDFLAGS)
-Wall
-o
$@
$?
clean
:
rm
autogroup.so
contrib/slapd-modules/autogroup/README
0 → 100644
View file @
f1e6cc7a
autogroup overlay Readme
DESCRIPTION
The autogroup overlay allows automated updates of group membership which
meet the requirements of any filter contained in the group. The filters
are build from the LDAP URI-valued attributes. Any time an object is
added/deleated/updated, it is tested for compilance with the filters,
and its membership is accordingly updated. For searches and compares
it behaves like a static group.
BUILDING
A Makefile is included.
CONFIGURATION
# dyngroup.schema:
The dyngroup schema must be modified, adding the 'member' attribute
to the MAY clause of the groupOfURLs object class, i.e.:
objectClass ( NetscapeLDAPobjectClass:33
NAME 'groupOfURLs'
SUP top STRUCTURAL
MUST cn
MAY ( memberURL $ businessCategory $ description $ o $ ou $
owner $ seeAlso $ member) )
# slapd.conf:
moduleload /path/to/autogroup.so
Loads the overlay (OpenLDAP must be build with --enable-modules).
overlay autogroup
This directive adds the autogroup overlay to the current database.
autogroup-attrset <group-oc> <URL-ad> <member-ad>
This configuration option is defined for the autogroup overlay.
It may have multiple occurrences, and it must appear after the
overlay directive.
The value <group-oc> is the name of the objectClass that represents
the group.
The value <URL-ad> is the name of the attributeDescription that
contains the URI that is converted to the filters. If no URI is
present, there will be no members in that group. It must be a subtype
of labeledURI.
The value <member-ad> is the name of the attributeDescription that
specifies the member attribute. User modification of this attribute
is disabled for consistency.
EXAMPLE
### slapd.conf
include /path/to/dyngroup.schema
# ...
moduleload /path/to/autogroup.so
# ...
database <database>
# ...
overlay autogroup
autogroup-attrset groupOfURLs memberURL member
### end slapd.conf
CAVEATS
As with static groups, update operations on groups with a large number
of members may be slow.
ACKNOWLEDGEMENTS
This module was written in 2007 by Michał Szulczyński.
contrib/slapd-modules/autogroup/autogroup.c
0 → 100644
View file @
f1e6cc7a
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment