안녕하세요. LDAP에는 왕초보인데,
처음 설치하고 entry 등록을 하는데 잘 안되네요.
어떤게 잘못됐는지?.... 좀 도와 주세요.
지금 현재 사용하는 버젼은 openldap-2.0.18 이고, DB는 berkeley로 설치했고,
처음 install 할때 다음과 같이 사용했습니다.
lhslapp:/>./configure --with-ldbm-api=berkeley --prefix=/usr/local/ldap
그후에 console에서 다음과 같이 데몬을 올리고
lhslapp:/>./libexec/slapd h ldap://localhost:389/ -f etc/openldap/slapd.conf
slapd.conf 파일은 변경하지 않고 초기 그대로 사용했으며, roodn으로
아래와 같이 ldapadd 명령어로 실행을 했는데 ldap_add_s: No such object error가 계속 발생합니다. 제 생각으로는 object를 생성할수 없다는것 같은데 원인이 어떤지 도저히 모르겠습니다.
고수님께서 좀 도와주십시요.
참고로 slapd.conf 파일을 보내드립니다.
lhslapp:/>ldapadd -D "cn=Manager,dc=my-domain,dc=com" -v << EOF
dn: cn=Manager,dc=my-domain,dc=com
objectclass: person
cn: test
sn: test
EOF
Bind Password:
add objectclass:
person
add cn:
test
add sn:
test
adding new entry cn=Manager,dc=my-domain,dc=com
ldap_add_s: No such object
lhslapp:/>
************ slapd.conf*********************
lhslapp:/>more slapd.conf
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.7 2001/09/27 20:00:31 kur
t Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /usr/local/ldap/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/ldap/var/slapd.pid
argsfile /usr/local/ldap/var/slapd.args
# Load dynamic backend modules:
# modulepath /usr/local/ldap/libexec/openldap
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la
#
# Sample Access Control
# Allow read access of root DSE
# Allow self write access
# Allow authenticated users read access
# Allow anonymous users to authenticate
#
#access to dn="" by * read
#access to *
# by self write
# by users read
# by anonymous auth
#
# if no access controls are present, the default is:
# Allow read by all
#
# rootdn can always write!
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
suffix "dc=my-domain,dc=com"
#suffix "o=My Organization Name,c=US"
rootdn "cn=Manager,dc=my-domain,dc=com"
#rootdn "cn=Manager,o=My Organization Name,c=US"
# 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/tools. Mode 700 recommended.
directory /usr/local/ldap/var/openldap-ldbm
# Indices to maintain
index objectClass eq
lhslapp:/>
|