免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1333 | 回复: 0
打印 上一主题 下一主题

[ldap] 向openldap里面导数据出现问题, 帮帮我! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-09-25 16:02 |只看该作者 |倒序浏览
这是我的 lsapd.conf 配置文件
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.23.2.8 2003/05/24 23:19:14 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include                /usr/local/openldap/etc/openldap/schema/core.schema
#include          /usr/local/openldap/etc/openldap/schema/corba.schema
#include          /usr/local/openldap/etc/openldap/schema/cosine.schema
#include          /usr/local/openldap/etc/openldap/schema/inetorgperson.schema
#include          /usr/local/openldap/etc/openldap/schema/system.schema

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral        ldap://root.openldap.org

pidfile                /usr/local/openldap/var/slapd.pid
argsfile        /usr/local/openldap/var/slapd.args

# Load dynamic backend modules:
# modulepath        /usr/local/openldap/libexec/openldap
# moduleload        back_bdb.la
# moduleload        back_ldap.la
# moduleload        back_ldbm.la
# moduleload        back_passwd.la
# moduleload        back_shell.la

# Sample security restrictions
#        Require integrity protection (prevent hijacking)
#        Require 112-bit (3DES or better) encryption for updates
#        Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64

# Sample access control policy:
#        Root DSE: allow anyone to read it
#        Subschema (sub)entry DSE: allow anyone to read it
#        Other DSEs:
#                Allow self write access
#                Allow authenticated users read access
#                Allow anonymous users to authenticate
#        Directives needed to implement policy:
# access to dn.base="" by * read
# access to dn.base="cn=Subschema" by * read
# access to *
#        by self write
#        by users read
#        by anonymous auth
#
# if no access controls are present, the default policy is:
#        Allow read by all
#
# rootdn can always write!

#######################################################################
# ldbm database definitions
#######################################################################

database        bdb
suffix                "dc=my-domain,dc=com"
rootdn                "cn=Manager,dc=my-domain,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd( 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        /usr/local/openldap/var/openldap-data
# Indices to maintain
index        objectClass        eq

database bdb
suffix             "dc=fjcredit,dc=com"
rootdn            "cn=directory,dc=fjcredit,dc=com"
rootpw            11111111
directory /usr/local/openldap/var/openldap-data/fjcredit
index        objectClass      eq

database bdb
suffix        "c=CN"
rootdn        "cn=directory manager,c=CN"
rootpw 11111111
directory /usr/local/openldap/var/openldap-data/cn

这是我要导进去的 .ldif文件
dn:dc=fjcredit,dc=com
ojectClass:dcObject
dc:fjcredit,dc=com

dn=manager,dc=fjcredit,dc=com
objectClass:top
objectClass:dcObject
o:manager

dn=kkk,dc=fjcredit,dc=com
objectClass:top
objectClass:dcObject
o:kkk

用如下命令导:
[root@YJL bin]# ldapadd -x -D "cn=directory,dc=fjcredit,dc=com" -w 11111111 -f "./3.ldif"
adding new entry "dc=fjcredit,dc=com"
ldapadd: update failed: dc=fjcredit,dc=com
ldap_add: Undefined attribute type (17)
        additional info: ojectClass: attribute type undefined

请问这是什么问题啊???
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP