README
1This directory contains a slapd overlay, usn, that extends slapd
2to maintain the usnCreated and usnChanged operational attributes
3normally used by Microsoft ActiveDirectory.
4
5To use the overlay, add:
6
7 moduleload <path to>usn.so
8 ...
9
10 database mdb
11 ...
12 overlay usn
13
14to your slapd configuration file. The schema definitions for the
15two USN attributes are hardcoded in this overlay.
16
17Use Makefile to compile this plugin or use a command line similar to:
18
19 gcc -c -I ../../include/ -I ../../servers/slapd -DSLAPD_OVER_USN=SLAPD_MOD_DYNAMIC usn.c
20 gcc -shared -o usn.so usn.o
21
22This overlay is only set up to be built as a dynamically loaded module.
23On most platforms, in order for the module to be usable, all of the
24library dependencies must also be available as shared libraries.
25
26If you need to build the overlay statically, you will have to move it into the
27slapd/overlays directory and edit the Makefile and overlays.c to reference
28it. You will also have to define SLAPD_OVER_USN to SLAPD_MOD_STATIC,
29and add the relevant libraries to the main slapd link command.
30
31---
32This work is part of OpenLDAP Software <http://www.openldap.org/>.
33
34Copyright 2007-2021 The OpenLDAP Foundation.
35Portions Copyright 2007 Howard Chu, Symas Corp. All rights reserved.
36
37Redistribution and use in source and binary forms, with or without
38modification, are permitted only as authorized by the OpenLDAP
39Public License.
40
41A copy of this license is available in the file LICENSE in the
42top-level directory of the distribution or, alternatively, at
43<http://www.OpenLDAP.org/license.html>.
44
45