【发布时间】:2016-05-06 11:35:56
【问题描述】:
我对 OpenLdap 和导入 ldiff 有疑问。我有在 Windows 上运行的 Openldap。
我的 slapd.conf:
database mdb
suffix "dc=aaa,dc=com"
rootdn "cn=Manager,dc=aaa,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory ./data
searchstack 20
# Indices to maintain
index mail pres,eq
index objectclass pres
index default eq,sub
index sn eq,sub,subinitial
index telephonenumber
index cn
我可以使用 apache 活动目录查看我的连接。
我可以看到 dc=aaa,dc=com。
我正在尝试导入 ldif 文件。
在顶部,它包含:
dn: cn=ab3java,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: ab3java
当我跑步时
ldapmodify -a -x -D "cn=Manager,dc=aaa,dc=com" -w secret -H ldap:// -f ab3java.ldif
我收到以下错误:
adding new entry "cn=ab3java,cn=schema,cn=config"
ldap_add: Insufficient access (50)
我在 ldap 浏览器中看不到 cn=config。
请指教。我怎样才能获得正确的访问权限?
问候, B.
【问题讨论】:
-
您参考过这篇文章吗? stackoverflow.com/questions/33647440/…
标签: openldap