I'm using slapd-mdb 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-configuration-programmatically