我尝试在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 )
,但我该怎么做?并且剂量这解决了错误?
我怎样才能做到这一点?