Quanah Gibson-Mount wrote:
> 
> 
> --On Tuesday, May 5, 2020 1:42 PM -0500 Beker <[email protected]> wrote:
> 
>> dn: cn=module,cn=config
>> objectClass: olcModuleList
>> cn: module
>> olcModulepath:  /usr/lib/openldap
>> olcModuleload:  back_mdb.la
> 
> I was able to load your slapd.ldif file w/o issue with the exception of a 
> minor problem in the above, which has two spaces after the : instead of a 
> single
> space.  This made slapd try to load " back_mdb.la" instead of "back_mdb.la".
> 
> Once I fixed that problem, I was able to import it w/o issue:
> 
> root@anvil3:/tmp# slapadd -n 0 -F /usr/local/etc/openldap/slapd.d -l 
> slapd.ldif
> _#################### 100.00% eta   none elapsed            none fast!
> Closing DB...
> root@anvil3:/tmp#
> 
> However, I get the same failure you report when doing a dry-run:
> 
> /opt/symas/bin/slapadd -u -n 0 -F /opt/symas/etc/openldap/slapd.d -l 
> slapd.ldif
> 5eb1d54e <= str2entry: str2ad(olcDbMaxSize): attribute type undefined
> slapadd: could not parse entry (line=1066)
> _#################### 100.00% eta   none elapsed            none fast!
> 
> So this seems to be an bug with the dry run code vs an actual problem with 
> the configuration.

In a dry run none of the directives are actually executed. Since the moduleLoad
doesn't happen, the back-mdb schema isn't present.

-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/

Reply via email to