3

我正在使用 OPEN ds 2.2 作为我的 LDAP 服务器,目前我想要创建一个基本 dn,就像dc=esamurdhiint,dc=lk 我创建以下 ldif 文件并运行一样,我在那个上有错误

我的 ldif 文件

dn: dc=esamurdhiint,dc=lk
objectClass: domain
objectClass: top
dc: esamurdhiint

我的命令编号

ldapmodify -h 10.136.78.27 -p 1389 -D "cn=admin,ou=system" -w changeit -a  -f /tmp/ldap.ldif

" adding new entry "dc=esamurdhiint,dc=lk"
ldap_add: No such object (32)
    additional info: The provided entry dc=esamurdhiint,dc=lk cannot be added because its suffix is not defined as one of the suffixes within the Directory Server ".
4

2 回答 2

8
./dsconfig set-backend-prop --backend-name userRoot --add base-dn:dc=<<esamurdhiint,dc=lk>>
--hostname localhost --port 4444 --bindDN cn=admin,ou=system --bindPassword changeit
--trustAll --noPropertiesFile --no-prompt
于 2011-09-30T08:20:09.703 回答
1

正如 Roshan 所指出的,您需要先配置后缀 (base-dn) 并指定它将位于哪个数据库后端。您可以选择将后缀添加到默认后端 (userRoot) 或新后端。

于 2011-10-06T17:26:02.033 回答