大网数据广告活动
服务器运维问答

How to increase size of OpenLDAP MDB database? (MDB_MAP_FULL Error Code)

· 52CE 我爱测

I'm getting this error related to slapd service (OpenLDAP server) in syslog mdb_idl_insert_keys: c_put id failed: MDB_MAP_FULL: Environment mapsize limit reached (-30792) This error comes when I'm trying to add new users on OpenL…

问题原文

原帖链接 · Vishal · CC BY-SA 4.0

I'm getting this error related to slapd service (OpenLDAP server) in syslog

mdb_idl_insert_keys: c_put id failed: MDB_MAP_FULL: Environment mapsize limit reached (-30792)

This error comes when I'm trying to add new users on OpenLDAP, I'm using MDB database and After searching for cause of this error I came to know my MDB database size if full and I need to increase the maxsize of database but how I do that? I'm using cn=config style configuration and my OpenLDAP version is 2.44.

已采纳解答

原帖链接 · Vishal · CC BY-SA 4.0

Turns out I need to change value of olcDbMaxSize attribute in my database configuration file.

I tried below and it worked.

Step 1: Create ldif file(filename.ldif) with below contents

dn: olcDatabase={2}mdb,cn=config
changetype: modify
add: olcDbMaxSize
olcDbMaxSize: 1000000000

Note : olcDbMaxSize : size in bytes

Step 2: Import above ldif file to OpenLDAP

ldapmodify -x -W -D 'cn=config' -H ldap:// -f filename.ldif

Step 3:Restart slapd service (This may not be required in cn=config style configuration)

service slapd restart

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-04-09)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。