免费注册 查看新帖 |

Chinaunix

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

[ldap] ldap_add: Internal (implementation specific) error (80) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-10 11:53 |只看该作者 |倒序浏览
[root@localhost openldap]# ldapadd -x -D "cn=root,dc=mydomain,dc=com" -f test.ldif -W
Enter LDAP Password:
adding new entry "dc=mydomain,dc=com"
ldap_add: Internal (implementation specific) error (80)
这是哪个地方出错了阿?希望知道问题所在的朋友不吝赐教,跪谢了~

论坛徽章:
0
2 [报告]
发表于 2007-04-11 08:06 |只看该作者
请列出test.ldif以及配置文件slapd.conf文件内容!

论坛徽章:
0
3 [报告]
发表于 2007-04-12 09:13 |只看该作者

回复 2楼 skybirds 的帖子

slapd.conf

# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include                /etc/openldap/schema/core.schema
include                /etc/openldap/schema/corba.schema
include                /etc/openldap/schema/cosine.schema
include                /etc/openldap/schema/inetorgperson.schema
include                /etc/openldap/schema/misc.schema
include                /etc/openldap/schema/openldap.schema
include                /etc/openldap/schema/nis.schema

# Allow LDAPv2 client connections.  This is NOT the default.
allow bind_v2

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

pidfile                /var/run/openldap/slapd.pid
argsfile        /var/run/openldap/slapd.args


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

# The next three lines allow use of TLS for encrypting connections using a
# dummy test certificate which you can generate by changing to
# /etc/pki/tls/certs, running "make slapd.pem", and fixing permissions on
# slapd.pem so that the ldap user or group can read it.  Your client software
# may balk at self-signed certificates, however.
# TLSCACertificateFile /etc/pki/tls/certs/ca-bundle.crt
# TLSCertificateFile /etc/pki/tls/certs/slapd.pem
# TLSCertificateKeyFile /etc/pki/tls/certs/slapd.pem

# 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
# allows anyone and everyone to read anything but restricts
# updates to rootdn.  (e.g., "access to * by * read")
#
# rootdn can always read and write EVERYTHING!

#######################################################################
# ldbm and/or bdb database definitions
#######################################################################

database        ldbm
suffix                "dc=mydomain,dc=com"
rootdn                "cn=root,dc=mydomain,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoided.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
#rootpw        kenneth
rootpw        {SSHA}q5c9Jev4gVOOoD1ob1nBQ3XU9W+z82YA

# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory        /var/lib/ldap

# Indices to maintain for this database
index objectClass                       eq,pres
index ou,cn,mail,surname,givenname      eq,pres,sub
index uidNumber,gidNumber,loginShell    eq,pres
index uid,memberUid                     eq,pres,sub
index nisMapName,nisMapEntry            eq,pres,sub

# Replicas of this database
#replogfile /var/lib/ldap/openldap-master-replog
#replica host=ldap-1.example.com:389 starttls=critical
#     bindmethod=sasl saslmech=GSSAPI
#     authcId=host/ldap-master.example.com@EXAMPLE.COM


test.ldif

dn:dc=mydomain,dc=com
objectclass:top
objectclass:dcObject
objectclass:organization
dc:mydomain
o:mydomain

dn:cn=root,dc=mydomain,dc=com
objectclass:organizationalRole
cn:root

dn:ou=addressbook,dc=mydomain,dc=com
objectclass:top
objectclass:organizationalUnit
ou:addressbook

dn:ou=accounting,ou=addressbook,dc=mydomain,dc=com
objectclass:top
objectclass:organizationalUnit
ou:accounting

[ 本帖最后由 alaya 于 2007-4-12 09:15 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2007-04-16 09:23 |只看该作者
你是周相仲吗?

论坛徽章:
0
5 [报告]
发表于 2007-04-17 09:19 |只看该作者
Internal error is related with your OpenLDAP itself. What is the output from log?

论坛徽章:
0
6 [报告]
发表于 2007-04-28 11:44 |只看该作者
dn:dc=mydomain,dc=com
objectclass:top
objectclass:dcObject
objectclassrganization
dc:mydomain
o:mydomain


将objectclassrganization改成objectClass:domain
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP