Hello
I'm getting an error while trying to use MDB backend. The section that's giving issue is the following one: ####################################################################### # LMDB database definitions ####################################################################### # dn: olcDatabase=mdb,cn=config objectClass: olcDatabaseConfig objectClass: olcMdbConfig olcDatabase: mdb olcDbMaxSize: 1073741824 olcSuffix: dc=test,dc=local olcRootDN: cn=mdbadm,test,dc=local # Cleartext passwords, especially for the rootdn, should # be avoided. See slappasswd(8) and slapd-config(5) for details. # Use of strong authentication encouraged. olcRootPW: {SSHA}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX # The database directory MUST exist prior to running slapd AND # should only be accessible by the slapd and slap tools. # Mode 700 recommended. olcDbDirectory: /var/db/openldap-data # Indices to maintain olcDbIndex: objectClass eq
with this section added to the end of slapd.ldif i get the error *5ea9641d <= str2entry: str2ad(olcDbMaxSize): attribute type undefined* while testing the import using *slapadd -v -n0 -F /etc/openldap/slapd.d -l /etc/openldap/slapd.ldif*
if i comment the offending line *olcDbMaxSize: 1073741824* then I just get an error with another line in the same section.
This is a fresh install, the slapd.d folder is empty and I'm using the example slapd.ldif.sample that comes with the software (it has mdb lodaded as module by default)
# # Load dynamic backend modules: # dn: cn=module,cn=config objectClass: olcModuleList cn: module olcModulepath: /usr/lib/openldap #olcModuleload: back_bdb.so #olcModuleload: back_hdb.so #olcModuleload: back_ldap.so olcModuleload: back_mdb.so #olcModuleload: back_passwd.so #olcModuleload: back_shell.so
Thanks in dvance for any hint or help you can provide Best regards
Thanks for taking time to anwser. I really appreciate it
Yep, that was an error I made when I redacted the email and changed the the rootdn to not leak info about my environment (which might be stupid since this is just a home lab)
I tried installing openldap in Fedora 32 (openldap 2.4.47-4.fc32), Opensuse Tumbleweed (openldap 2.4.49-51.2), Alpine (openldap 2.4.49-r3) and Freebsd(openldap 2.4.50) using similar slapd.ldif in all variants (just minor path modifications so slapdadd can find schemas, etc) i got the same error about *str2ad(olcDbMaxSize): attribute type undefined *in all of my attempts except for Fedora 32 (openldap 2.4.47-4.fc32) where the slapdadd dry-run completed without errors and I was able to configure and start slapd completely through OLC
I'm currently investigating how to downgrade openldap on my target OS and maybe try both 2.4.47 and 2.4.48
Thanks kind regards
On Fri, May 1, 2020 at 5:25 AM A. Schulze sca@andreasschulze.de wrote:
Am 30.04.20 um 16:19 schrieb Beker:
olcRootDN: cn=mdbadm,test,dc=local
shouldn't this be "cn=mdbadm,dc=test,dc=local" ?
--On Tuesday, May 5, 2020 12:02 PM -0500 Beker fzfq3m@gmail.com wrote:
Yep, that was an error I made when I redacted the email and changed the the rootdn to not leak info about my environment (which might be stupid since this is just a home lab)
I would suggest you provide the full, unredacted slapd.ldif file you were loading.
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
openldap-technical@openldap.org