ldap - openldap with lmdb; cannot be opened: No such file or directory -
i trying configure openldap-2.4.43 lmdb backend on linux system. far without success.
slapd.conf:
include /opt/openldap/etc/schema/core.schema include /opt/openldap/etc/schema/cosine.schema include /opt/openldap/etc/schema/inetorgperson.schema allow bind_v2 pidfile /var/run/slapd.pid argsfile /var/run/slapd.args database config rootdn "cn=manager,cn=config" rootpw {ssha}smxtpwsal9yegdslsxmzim+qgljzw9vo database mdb suffix "dc=mydomain,dc=com" rootdn "cn=manager,dc=mydomain,dc=com" rootpw {ssha}smxtpwsal9yegdslsxmzim+qgljzw9vo directory /var/openldap/data/main/ maxsize 10485760 index objectclass eq,pres index ou,cn,mail,surname,givenname eq,pres,sub
straced slaptest (/opt/openldap/sbin/slaptest -f slapd.conf -f ./slapd.d/) result (last part):
stat("/var/openldap/data/main/", {st_mode=s_ifdir|0700, st_size=40, ...}) = 0 getpid() = 2440 brk(0x828a000) = 0x828a000 open("/var/openldap/data/main//data.mdb", o_rdonly) = -1 enoent (no such file or directory) time(null) = 1453993047 write(2, "56aa2c57 mdb_db_open: database \""..., 12256aa2c57 mdb_db_open: database "dc=mydomain,dc=com" cannot opened: no such file or directory (2). restore backup!) = 122 time(null) = 1453993047 write(2, "56aa2c57 backend_startup_one (ty"..., 9356aa2c57backend_startup_one (type=mdb, suffix="dc=mydomain,dc=com"): bi_db_open failed! (2)) = 93 write(2, "slap_startup failed (test "..., 61slap_startup failed (test succeed using -u switch)) = 61 _exit(1) = ? +++ exited 1 +++
/var/openldap/data/main writable. system has single root user.
i tried changing target folder, set ulimit -c unlimited, changed value of maxsize. without noticeable outcome.
what missing? why openldap assuming /var/openldap/data/main//data.mdb should there , not create on own?
get rid of trailing slash after main
, , run slapindex
before run slapd
. need time database changes.
Comments
Post a Comment