將 LDAP 伺服器的 LDIF 備份還原到新安裝的 OpenLDAP

將 LDAP 伺服器的 LDIF 備份還原到新安裝的 OpenLDAP

我嘗試將 LDAP 伺服器的 ldif 備份還原到安裝了 OpenLDAP 的新 Centos 7 電腦上。我一直在使用這些說明https://www.server-world.info/en/note?os=CentOS_7&p=openldap&f=1

到目前為止,但不包括 chdomain 檔案。

我用來上傳檔案的指令是 slapadd -c -l ldapBackup.ldif

但我得到的回應是

The first database does not allow slapadd; using the first available one(2)

hdb_db_open: database "dc=my-domain,dc=com": database already in use.
backend_startup_one (type=hdb, suffix="dc=my-domain,dc=com"): bi_db_open failed!(-1)

slap_startup_failed

相關內容