Here is what the cn=config directory looks like. As you can see there is no olcDatabase={x}module.ldif file so my question is how do you create one. 

olcDatabase={2}hdb.ldif
olcDatabase={1}monitor.ldif
olcDatabase={0}config.ldif
cn=schema
olcDatabase={-1}frontend.ldif
cn=schema.ldif

I created this compliant ldif 

dn: cn=module{0},cn=config
changetype: modify
add: olcModuleLoad
olcModuleLoad: {0}/usr/lib64/openldap/memberof.la

but when I try an use  ldapmodify -Y EXTERNAL -H ldapi:/// -v -f ldapMdynalist.ldif

I get

ldap_initialize( ldapi:///??base )
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
add olcModuleLoad:
        {0}/usr/lib64/openldap/memberof.la
modifying entry "cn=module{0},cn=config"
ldap_modify: No such object (32)
        matched DN: cn=config

So how do you create a ldif in cn=config. I've read the docs but it is not clear to me how to do this. Once the file is created I'm sure ldapmodify will work. Do I just touch the file? 


On Wed, Jul 9, 2014 at 4:54 PM, Quanah Gibson-Mount <quanah@zimbra.com> wrote:
--On Wednesday, July 09, 2014 2:10 PM -0400 Greg Treantos <gtreanto@gmail.com> wrote:

      1 dn: cn=module{0},cn=config
      2 changetype: modify
      3 add:olcModuleList
      4 objectClass: olcModuleList
      5 olcModulePath: /usr/lib64/openldap/
      6 cn: module{0}
      7 changetype: modify
      8 add: olcModuleLoad
      9 olcModuleLoad: {0}accesslog.la
     10 olcModuleLoad: {1}auditlog.la
     11 olcModuleLoad: {2}constraint.la
     12 olcModuleLoad: {3}dynlist.la
     13 olcModuleLoad: {4}memberof.la
     14 olcModuleLoad: {5}ppolicy.la
     15 olcModuleLoad: {6}refint.la
     16 olcModuleLoad: {7}seqmod.la
     17 olcModuleLoad: {8}syncprov.la
     18 olcModuleLoad: {9}sssvlv.la
     19 olcModuleLoad: {10}translucent.la
     20 olcModuleLoad: {11}unique.la
     21 olcModuleLoad: {12}back_monitor.la

The above LDIf is clearly invalid.  I'm not surprised at all that it gets rejected.  I'd suggest re-reading the documentation on how to use ldapmodify and the LDIF format.

--Quanah

--

Quanah Gibson-Mount
Server Architect
Zimbra, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration



--
Greg

http://www.linkedin.com/in/gregtreantos