Hi all,

I'm trying to move our LDAP from an old CentOS 6 server to new Debian 11 
server, but I'm running into the problem importing the config on the new server 
with slapadd:

63cc2422 <= str2entry: str2ad(olcDbCacheSize): attribute type undefined
  slapadd: could not parse entry (line=2076)

I read that it's because of BDB being removed and no longer supported.  What 
should I do, then?

I admit LDAP is an area I practically know nothing about, so I'll appreciate 
your patience.  This instance has been in place before I started my position 
over 6.5 years ago!  It's been running great, but the server it's running on is 
also getting old and used for intense computation still at times, so I'm trying 
to be proactive and separate the LDAP service off to another server that is 
newer, that I can keep updated.

The current, old server is running:

@(#) $OpenLDAP: slapd 2.4.40 (Mar 22 2017 06:29:21) $
  
[email protected]:/builddir/build/BUILD/openldap-2.4.40/openldap-2.4.40/build-servers/servers/slapd
Included static backends:
  config  ldif  monitor  bdb  hdb  ldap  mdb
  meta  null  passwd  relay  shell  sock

and new server is running:

@(#) $OpenLDAP: slapd 2.4.57+dfsg-3+deb11u1 (May 14 2022 18:32:57) $
  Debian OpenLDAP Maintainers <[email protected]>
Included static backends:
  config  ldif

On the old server, I just ran:

# cd /tmp
# slapcat -n 0 -l config.ldif
63cc1841 PROXIED attributeDescription "DC" inserted.
# slapcat -n 1 -l user.ldif
63cc1943 PROXIED attributeDescription "DC" inserted.
#

Then transferred the *.ldif to the new server and ran:

# slapadd -n 0 -l /tmp/config.ldif

This didn't work right off, so I adjusted the values of some parameters inside, 
such as: olcConfigFile, olcConfigDir, olcArgsFile, olcPidFile, 
olcTLSCertificateFile, olcTLSCertificateKeyFile.  These were all in the `dn: 
cn=config`.

After some more tries, figured I needed the -F option so am now using this 
command:

# slapadd -n 0 -l /tmp/config.ldif -F /etc/ldap/slapd.d
63cc1f0f PROXIED attributeDescription "DC" inserted.
63cc1f0f <= str2entry: str2ad(olcDbCacheSize): attribute type undefined
slapadd: could not parse entry (line=2076)
_###################   99.05% eta   none elapsed            none spd  13.5 M/s
Closing DB...
#

which brings us to the present situation.  So, let me know if you have any 
ideas of what I should do/try next!

Best,
Chandler

--
The University of Arizona block 'A' logo.
        *Chandler Sobel-Sorenson*
Systems Administrator, Senior
Arizona Genomics Institute
School of Plant Sciences, Research
THE UNIVERSITY OF ARIZONA

Thomas W. Keating Bioresearch Bldg. | Rm. 200A24
1657 E. Helen St. | Tucson, AZ 85721
Office: 520-626-9589 | Cell: 520-907-4352

[email protected] <mailto: [email protected]>
Pronouns: he/him/his
*www.genome.arizona.edu* <https://www.genome.arizona.edu/>
        Integrity, Compassion, Exploration, Adaptation, Inclusion, Determination 
<https://brand.arizona.edu/signature>

Reply via email to