mail us  |  mail this page

contact us
training  | 
tech stuff  | 

Overlays in OpenLDAP

Or when is an overlay really an overlay?

Overlays and ModuleLoad

Overlays can be either dynamic or static. If the overlays are dynamic they need a moduleload directive (or olcModuleLoad if using cn=config). If the overlays are static they are built-in to slapd, they do not need a moduleload directive and indeed they will fail if you do add one because the overlay does not exist.

OK. So how do know whether overlays are static or dynamic?

You need to know how slapd was built - specifically the configure directives used. To build any overlays there needs to be a --enable-modules configure directive - this is normally defaulted on most builds far as we can tell. Then each overlay will have a separate configure directive which may be:

# the example uses accesslog for illustration, may be syncprov etc.
--enable-accesslog
# builds statically - no moduleload required
--enable-accesslog=mod
# builds dynamically - moduleload required

To find how your slap was built:

# for FreeBSD assuming build from ports:
cd /usr/ports/net/openldap2X-server/work/openldap-X.X.X
vi config.log
# the whole configure clause is stored in this file at the top

# if you used'make install clean' this file has been deleted
# to re-create use 'make configure'
# then 'make clean' to remove

# RPM based distributions
# find the .spec file used to build slapd
# edit the file and look for the configure command line 
# followed by its associated directives

Perhaps the easiest way is simply to look for the overlays - if they exist you need a moduleload directive if not you don't. The overlays are normally in [bsd] /usr/local/libexec/openldap and [fc] /usr/libexec/openldap or /usr/sbin/openldap.

Finally you will find on most platforms that overlays are built with .la (library) or .la and .so (shared object library) file suffixes. Which to use - try .la and if it fails use .so.

Up Arrow



Problems, comments, suggestions, corrections (including broken links) or something to add? Please take the time from a busy life to 'mail us' (at top of screen), the webmaster (below) or info-support at zytrax. You will have a warm inner glow for the rest of the day.

Contents

tech info
guides home
intro
contents
1 objectives
big picture
2 concepts
3 ldap objects
quickstart
4 install ldap
5 samples
6 configuration
7 replica & refer
reference
8 ldif
9 protocol
10 ldap api
operations
11 howtos
12 trouble
13 performance
14 ldap tools
security
15 security
appendices
notes & info
ldap resources
rfc's & x.500
glossary
ldap objects
change log

Creative Commons License
This work is licensed under a Creative Commons License.

If you are happy it's OK - but your browser is giving a less than optimal experience on our site. You could, at no charge, upgrade to a W3C STANDARDS COMPLIANT browser such as Firefox

Search

web zytrax.com

Share

Icons made by Icomoon from www.flaticon.com is licensed by CC 3.0 BY
share page via facebook tweet this page

Page

email us Send to a friend feature print this page Display full width page Decrease font size Increase font size

Resources

Systems

FreeBSD
NetBSD
OpenBSD
DragonFlyBSD
Linux.org
Debian Linux

Software

LibreOffice
OpenOffice
Mozilla
GitHub
GNU-Free SW Foundation
get-dns

Organizations

Open Source Initiative
Creative Commons

Misc.

Ibiblio - Library
Open Book Project
Open Directory
Wikipedia

Site

CSS Technology SPF Record Conformant Domain
Copyright © 1994 - 2017 ZyTrax, Inc.
All rights reserved. Legal and Privacy
site by zytrax
Hosted by super.net.sg
web-master at zytrax
Page modified: October 21 2015.