database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
ㆍLDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
LDAP Q&A 1323 게시물 읽기
No. 1323
ldapadd 가 잘 안되네요! 도와주세요!!
작성자
이형진
작성일
2002-01-08 15:56
조회수
4,450

안녕하세요. 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:/>

[Top]
No.
제목
작성자
작성일
조회
1328LDAP으로 가능한 일이??
김종근
2002-01-11
4579
1329┕>Re: LDAP으로 가능한 일이??
김수영
2002-01-12 11:42:20
5390
1327사용자가 aci에 write하기 위한 최소한의 권한은?
moon6729
2002-01-11
4681
1326[정보] Cyrus SASL sample 돌려보기
김수영
2002-01-10
5041
1323ldapadd 가 잘 안되네요! 도와주세요!!
이형진
2002-01-08
4450
1322원격에서 ldif화일정보를 가져오는 방법 아시는분?
moon6729
2002-01-07
4397
1320message id??
위성희
2002-01-07
4588
1319꼭 알려주세요~~
김혜선
2002-01-05
4352
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.022초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다