2 dengyangbj dengyangbj 于 2013.12.16 17:03 提问

菜鸟求教—LDAP的配置问题
ldp

菜鸟请教高手!!!
我的slapd.conf文件
database bdb
suffix "dc=ahnu,dc=edu,dc=cn"
rootdn "cn=root,dc=ahnu,dc=edu,dc=cn"
'# 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
'# Indices to maintain
index objectClass eq

我的ldif文件
dn: dc=ahnu,dc=edu,dc=cn
dc: ahnu
description: An Hui Normal University
objectClass: dcObject
objectClass: organization
o: University

dn: uid=qzjiao,dc=ahnu,dc=edu,dc=cn
objectclass: Person
objectclass: organizationalPerson
objectclass: inetOrgPerson
uid: qzjiao
cn: JiaoQingZheng
sn: qzjiao
userPassword: 12321
telephoneNumber: 5768972
description: openldapadmin
displayName: JiaoQingZheng
mail: qzjiao@mail.ahnu.edu.cn

可是导入之后总是报错:
ldap_add: Invalid syntax (21)
additional info: objectclass: value #2 invalid per syntax
请高手指点迷津!拜谢!

1个回答

SLHappyLife
SLHappyLife   2013.12.17 00:30

我之前配置过一个,也出了好多问题,不过没有出现你这个错误。有时间我整理一下,会写在博客上的。你可以关注一下我的博客。

dengyangbj
dengyangbj 多谢!
接近 4 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片