[root@shlee openldap]# ldapadd -x -D
"cn=Manager,dc=my-domain,dc=com" -w secret << EOF
> dn:dc=my-domain,dc=com
> cn:root
> sn:root
> telephoneNumber:017-111-1111
> objectclass:person
> EOF
adding new entry "dc=my-domain,dc=com"
ldap_add: Naming violation
additional info: naming attribute 'dc' is not present in
entry
ldif_record() = 64
[root@shlee openldap]# ldapsearch -x -b
"cn=Manager,dc=my-domian,dc=com" objectclass=*
version: 2
#
# filter: objectclass=*
# requesting: ALL
#
# search result
search: 2
result: 32 No such object
# numResponses: 1
[root@shlee openldap]# ldapadd -x -D
"cn=Manager,dc=my-domain,dc=com" -W << EOF
> dn:dc=my-domain,dc=com
> dc:my-domain.com
> objectclass:domain
> EOF
Enter LDAP Password:
adding new entry "dc=my-domain,dc=com"
ldap_add: Object class violation
additional info: unrecognized objectClass 'domain'
ldif_record() = 65
[root@shlee openldap]# ldapadd -x -D "cn=Manager, dc=my-domain,
dc=com" -W << EOF
> dn: dc=my-domain, dc=com
> dc: my-domain.com
> objectclass:dcObject
> EOF
\Enter LDAP Password:
adding new entry "dc=my-domain, dc=com"
ldap_add: Object class violation
additional info: no structural object class provided
ldif_record() = 65
이러한 에러가 발생합니다. 이렇게 해보고 저렇게 해봐도 이 에러에
대해 잘 모르겠습니다.
도와주십시오 원인도 모르겠고, 해결책은 더더욱 모르겠습니다.
고수님들의 조언을 바라겠습니다. ㅜ.ㅜ 좀 급해요 도와수제쇼
인스톨 버전은 berkelyDB db-4.2.52.NC 과 openldap-2.1.30 입니다.
OS는 redhat 7.2입니다.
밑에는 slapd.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
# 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 * read
# 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(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 /usr/local/openldap/var/openldap-data
# Indices to maintain
index objectClass eq
|