Date: Mon, 27 Oct 2014 19:12:40 +0000 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-ports@freebsd.org Subject: Re: openldap-sasl-server Message-ID: <544E9928.7050903@FreeBSD.org> In-Reply-To: <20141027145324.4a4cdfcf@scorpio> References: <20141027101252.GB5220@vpn.offrom.nl> <544E273B.7050502@freebsd.org> <20141027145324.4a4cdfcf@scorpio>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9GRWmvlVIusC4CdPA59peJT4HLpoQgADD Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 27/10/2014 18:53, Jerry wrote: > On Mon, 27 Oct 2014 11:06:35 +0000, Matthew Seaman stated: >=20 >> Actually, I'd recommend switching to lmdb rather than BDB. It's what >> I've been using for going on a year now, and it works great. >=20 > I have been looking for a good "How-to" on converting to MDB, but have = not > been able to find one. Ah. I started using LMDB from scratch, so I have no first hand experience. However, I imagine that the process is essentially: # su -m ldap -c slapcat -n 1 > data.ldif { repeat for as many databases as you have...} # service slapd stop # pkg upgrade -f openldap-server # vi /usr/local/etc/openldap/slapd.conf # su -m ldap -m slapadd -n 1 -l data.ldif { repeat for as many databases as you have...} # service slapd start That's assuming you're using the old style slapd.conf file rather than a cn=3Dconfig database. In which case you need to 'slapcat -n 1 > config.ldif' at the beginning, modify that to change the backend DB type, then empty out /usr/local/etc/openldap/conf/ and 'slapadd -n 0 -l config.ldif' before loading any of the other databases. About the only other way I can think of dong the switchover is to set up replication to a new slapd instance using LMDB. Which has the advantage that you could probably manage the switchover without any significant outages. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --9GRWmvlVIusC4CdPA59peJT4HLpoQgADD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iQJ8BAEBCgBmBQJUTpkyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATVuMP/jIncyPXym8gMS/2m+jku5lQ Hy9ENhzF7JW6jMZqUdcQxTDBxKCLdufBpWrVbNhlL4Mupx35mbtYiOns92qBn79m /KvFpP5HzvUn01ILIv9EX8Bq1UdIK5d1KNtkkmD4QhZh9V3AHP9e30v6fzSh6hXY 9vf+2zZNqa2aCeSMUzLeZ+k1XKtL9Ceh/npfe6ag12XwZ2XVziHP+LMlvccq10N8 Mx0qoxDF1KPnPftvJ4djfoPIDn6aH4Oq+Lp+LTffPiVcZbsQFVKFzpcG/l8rC8jI EvfIW8UnYodVLYH/KghPuuvdb7erK5IUt7Ou4VqwVQcupONI4djCrkhywVAe8fnQ H9AjT2TeLEbbAOgUFraOd+7AdcIwtUUDaOKlIELL8FlOmW3gGjEMtHaGmtJIRGlX yLJFTY0ZeqQFM1nAWnX2j6C0GZCyhycc/fXgCqXfft9hutbmVC7NTbBMA41tblpF 2FufuJT0zxfcMFyXGLiJWl9iP0TKqhRysq2Bg3yhxLOFU2P7hM/wrwj3eRtTQbvN A1foSKcjGMCfa+/FfxfNL1EhLFoG898oXDEy7QVZOPR4rRltZc0RYFba5qXjo+HN ciyufKfRcUT4tG0lzmNFCqNYtLxDVOaei6ufiVQNBDHvG/Uczcr9O6OBN2QKQ2lP fIDyWtVDcT2WUx9gLL3a =+Bs9 -----END PGP SIGNATURE----- --9GRWmvlVIusC4CdPA59peJT4HLpoQgADD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?544E9928.7050903>