ltb-project / openldap-deb

Debian packages for OpenLDAP
http://ltb-project.org/wiki/documentation/openldap-deb
GNU General Public License v3.0
14 stars 13 forks source link

32bits (armhf) olcDbMaxSize: value #0: <olcDbMaxSize> unable to parse "4294967296" as unsigned long #96

Closed artlog closed 2 years ago

artlog commented 2 years ago

After recompilation of this project on a raspberry pi 3B+ with armhf 32bits raspbian, initial import of configuration template fails

/usr/local/openldap/etc/openldap# slapd-cli importldifconfigtemplate

slapd-cli: [INFO] Using /usr/local/openldap/etc/openldap/slapd-cli.conf for configuration
slapd-cli: [INFO] Halting OpenLDAP...
slapd-cli: [INFO] Can't read PID file, to stop OpenLDAP try: /usr/local/openldap/sbin/slapd-cli forcestop
slapd-cli: [INFO] Import ldif configuration...
slapd-cli: [INFO] Using /usr/local/openldap/etc/openldap/config-template-2.6.ldif as template
slapd-cli: [INFO] Delete configuration data in /usr/local/openldap/etc/openldap/slapd.d
slapd-cli: [INFO] Importing configuration data from /usr/local/openldap/etc/openldap/config-template-2.6-filled.ldif
olcDbMaxSize: value #0: <olcDbMaxSize> unable to parse "4294967296" as unsigned long
slapadd: could not add entry dn="olcDatabase={1}mdb,cn=config" (line=263): <olcDbMaxSize> unable to parse "
Closing DB...

Changing olcDbMaxSize to 4294967295 works.

4Gb-1 is maximum value of 32 bit unsigned int.

davidcoutadeur commented 2 years ago

Hello @artlog,

As mentionned in the documentation, packages are only provided for 64 bit platforms for now. 32bits platforms are no more supported a long time ago.

When we'll have a fully-automatic build platform, maybe could we provide packages for ARM too?

I'll create a ticket for that.