我使用OPEN ds 2.2作为我的LDAP服务器目前我想创建一个基本dn,就像dc=esamurdhiint,dc=lk
我创建以下ldif文件并运行和我,有错误
我的ldif文件
dn: dc=esamurdhiint,dc=lk
objectClass: domain
objectClass: top
dc: esamurdhiint
Run Code Online (Sandbox Code Playgroud)
我的命令ID
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 ".
Run Code Online (Sandbox Code Playgroud)
./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
Run Code Online (Sandbox Code Playgroud)