I'm using slapd-mdb http://manpages.courier-mta.org/htmlman5/slapd-mdb.5.html and I'm looking for a way to programmatically update "maxsize" parameter using ldapmodify or similar.
My main problem is that I have a huge dataset and I need more space. Any suggestions on how to update OpenLDAP configuration programmatically would be appreciated.
My environment is Kubernetes and I deployed OpenLDAP as a container.
I’ve also asked this question here: https://stackoverflow.com/questions/56373598/openldap-updating-slapd-configu...
--On Saturday, June 01, 2019 9:25 PM +0200 Michel Gokan gokan.michel@gmail.com wrote:
My environment is Kubernetes and I deployed OpenLDAP as a container.
If your deployment uses slapd-config(5) for its configuration, it's as simple as an ldapmodify operation. I can't tell you *exactly* how to do it, because it'll depend on a few things:
a) How one connects as the rootdn for the configuration database backend b) Which database number your slapd-mdb database is
but roughly:
ldapmodify <options> dn: <your MDB database DN> changetype: modify replace: olcDbMaxsize olcDbMaxsize: <new value>
You can of course do this things like perl-ldap, python-ldap, etc, as well.
--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