问题描述
- 菜鸟求教—LDAP的配置问题
-
菜鸟请教高手!!!
我的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: Universitydn: 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
请高手指点迷津!拜谢!
解决方案
我之前配置过一个,也出了好多问题,不过没有出现你这个错误。有时间我整理一下,会写在博客上的。你可以关注一下我的博客。
时间: 2024-10-07 05:05:13