Hi,
was able to overcome the issue by adding below lines to load the back_end db 
modules in the ldif file "create_sns_db.ldif " 

#
# Load dynamic backend modules:
#
dn: cn=module,cn=config
objectClass: olcModuleList
cn: module
olcModulepath: /usr/lib/openldap
olcModuleload: back_bdb
olcModuleload: back_mdb
olcModuleload: back_ldap

and then if i execute "ldapadd -x -D 'cn=config' -w secret -f 
create_sns_db.ldif" it works fine without any errors. 
not sure if the same line are present in the slapd.conf, why backend db modules 
are not initialized.

Now we are facing another issue while executing "ldapmodify -x -D 'cn=config'  
-w secret -f update_config.ldif" 

adding new entry "olcDatabase={2}mdb,cn=config"

adding new entry "olcOverlay=syncprov,olcDatabase={2}mdb,cn=config"
ldap_add: Invalid syntax (21)
        additional info: objectClass: value #1 invalid per syntax

we have installed "opeldap-overlay-all" package and tried to execute the ldap 
modify command in Alpine. Any configurations are to be done before executing 
ldapmodify in Alpine?

below are the contents of update_config.ldif

dn: olcDatabase={2}mdb,cn=config
changetype: add
objectClass: olcDatabaseConfig
objectClass: olcMdbConfig
olcDatabase: {2}mdb
olcDbDirectory: /usr/local/var/openldap-data/sns_accesslog_db
olcSuffix: cn=accesslog
olcAccess: {0}to * by dn.base="cn=admin,dc=smartsan" read by * break
olcLastMod: TRUE
olcMaxDerefDepth: 15
olcReadOnly: FALSE
olcRootDN: cn=config
olcLimits: dn.exact="cn=admin,dc=smartsan" time=unlimited size=unlimited
olcSizeLimit: unlimited
olcTimeLimit: unlimited
olcMonitoring: TRUE
olcDbCheckpoint: 0 0
olcDbIndex: entryCSN eq
olcDbIndex: objectClass eq
olcDbIndex: entryUUID eq
olcDbMode: 0600
olcDbSearchStack: 16
olcDbMaxsize: 85899345920

dn: olcOverlay=syncprov,olcDatabase={2}mdb,cn=config
changetype: add
objectClass: olcOverlayConfig
objectClass: olcSyncProvConfig
olcOverlay: syncprov
olcSpNoPresent: TRUE
olcSpReloadHint: TRUE

dn: olcDatabase={1}mdb,cn=config
changetype: modify
add: olcLimits
olcLimits: dn.exact="cn=replicator,cn=appaccts,dc=example,dc=com" 
time=unlimited size=unlimited

Reply via email to