在 arch Linux 上设置 LDAP 服务器 - 数据库无法打开

问题描述 投票:0回答:1

我尝试在 arch linux 上安装 LDAP 服务器。我遵循了 arch linux wiki 中的过程:https://wiki.archlinux.org/index.php/OpenLDAP

slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d/
点,它失败并出现错误:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
58130d8d mdb_db_open: database "dc=example,dc=com" cannot be opened: No such file or directory (2). Restore from backup!
58130d8d backend_startup_one (type=mdb, suffix="dc=example,dc=com"): bi_db_open failed! (2)
slap_startup failed (test would succeed using the -u switch)

网站上有

if you do not have a database yet, you might need to create one by starting and stopping the slapd.service using systemd )
,但我该怎么做呢?这能解决错误吗?

我怎样才能做到这一点?

ldap openldap archlinux
1个回答
0
投票

以防万一,如果您遇到服务重启问题或任何访问问题,请使用 ldap 重新启动数据库创建过程,并将目录归 ldap 用户所有 示例:-

sudo chown -R ldap:ldap /etc/openldap/slap.d
© www.soinside.com 2019 - 2024. All rights reserved.