作为rootdn/rootpw绑定时访问不足的错误 [英] error of insufficient access when binding as the rootdn/rootpw
问题描述
我正在尝试openldap逐步遵循其 quick-start-guide 在ubuntu 14上,当我尝试以这种方式添加slapd.ldif时:
I was trying openldap step to step following its quick-start-guide on ubuntu 14,when I try to add slapd.ldif in this way:
ldapadd -x -D "cn=manager,dc=eg,dc=com" -w secret -f slapd.ldif.default
与我的sldap.conf
with my sldap.conf
include /usr/local/etc/openldap/schema/core.schema
pidfile /usr/local/var/run/slapd.pid
argsfile /usr/local/var/run/slapd.args
database bdb
suffix "dc=eg,dc=com"
rootdn "cn=manager,dc=eg,dc=com"
rootpw secret
directory /usr/local/var/openldap-data
index objectClass eq
失败,提示如下:
adding new entry "cn=config"
ldap_add: Insufficient access (50)
以及按照指南中的说明创建ldif时
and when I created a ldif as shown in the guide
dn: dc=eg,dc=com
objectclass: dcObject
objectclass: organization
o: Example Company
dc: eg
dn: cn=manager,dc=eg,dc=com
objectclass: organizationalRole
cn: manager
,然后尝试将其添加为新条目:
and try adding it as a new entry:
ldapadd -x -D "cn=manager,dc=eg,dc=com" -W -f example.ldif
失败,提示如下:
adding new entry "dc=eg,dc=com "
ldap_add: Invalid syntax (21)
additional info: objectclass: value #0 invalid per syntax
如何正确配置以添加新条目?
how to configure correctly to add a new entry?
快速入门指南是否有可能超出-过时了吗?
is it possible that the quick-start-guide has been out-of-date?
推荐答案
当服务器具有脱机配置时,您正在尝试在线重新配置服务器.如果要在线完成此类操作,则需要切换到在线配置,否则,请相应地编辑slapd.conf
并重新启动OpenLDAP.
You're trying to reconfigure your server online when it has an offline configuration. You need to switch to the online configuration if you want to accomplish this sort of thing online, or else edit slapd.conf
accordingly and restart OpenLDAP.
非主题.
这篇关于作为rootdn/rootpw绑定时访问不足的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!