[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#8507) adding the syncprov overlay does not load the associated schema elements



Full_Name: Emmanuel L.charny
Version: 2.4.44
OS: Linux CentOS 6
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (176.154.3.51)


Start an OpenLDAP server using the dynamic configuration (slapd.d) from a
slapd.conf file that does not contain a synprov module :

$ /opt/symas/bin/slaptest -f /opt/symas/etc/openldap/slapd.conf -F
/opt/symas/etc/openldap/slapd.d
$ /etc/init.d/solserver start -d 256
$ grep -ri "olcSpNoPresent" slapd.d
$ ...

Then inject the syncprov module in the server :

dn: cn=module{0},cn=config
changetype: modify
add: olcModuleLoad
olcModuleLoad: syncprov.la
-

The olcSpNoPresent attribute is not present :

$ grep -ri "olcSpNoPresent" slapd.d
$ ...

You can stop and restart the server, the attribute is still not present.

Going back to the slapd.conf file, add the module :

...
# Uncomment the mululeloads as needed to enable additional
# functionalityi when configured. NOTE: We package many
# more modules options than those found below.
moduleload      back_mdb.la
moduleload      back_monitor.la
moduleload      syncprov.la        # Added module
...

and regenerate the slapd.d content :

$ /etc/init.d/solserver stop
$ rm -rf /opt/symas/etc/openldap/slapd.d/*
$ /opt/symas/bin/slaptest -f /opt/symas/etc/openldap/slapd.conf -F
/opt/symas/etc/openldap/slapd.d
$ grep -ri "olcSpNoPresent" /opt/symas/etc/openldap/slapd.d
slapd.d/cn=config/cn=schema.ldif:olcAttributeTypes: ( OLcfgOvAt:1.3 NAME
'olcSpNoPresent' DESC 'Omit Present 
slapd.d/cn=config/cn=schema.ldif:  $ olcSpSessionlog $ olcSpNoPresent $
olcSpReloadHint ) )
$...

This is problematic...