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 1890 게시물 읽기
No. 1890
ldapadd에러
작성자
이재인(hatbary)
작성일
2003-08-04 11:26
조회수
5,835

얼마전에 질문 했었는데...글이 숨어있어서리..다시 올려 봅니다..

 

ldapadd 할때 에러가 뜨거든요..

 

설정파일과 에러 메시지를 아래에 열거 했슴다..보시구 힌트 주시면 정말 고맙겠슴다..

 

데몬 하나 떠있구요, 이건 물어 봤더니 별 문제 되지 않는다구 그러네요

 

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/etc/openldap/schema/core.schema

include /usr/local/etc/openldap/schema/cosine.schema

include /usr/local/etc/openldap/schema/inetorgperson.schema

include /usr/local/etc/openldap/schema/nis.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/var/slapd.pid

argsfile /usr/local/var/slapd.args

 

# Load dynamic backend modules:

# modulepath /usr/local/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(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/var/openldap-data

 

# Indices to maintain

index objectClass eq

 

#index cn,sn,uid pres,eq,approx,sub

#index objectClass,uid,uidNumber,gidNumber,memberUid eq

#index cn,mail,surname,givenname eq,subinitial

 

원인을 잘 몰라서 인덱스에서 주석처리 된 부분을 더 집어넣어봤구요

인클루드에 몇가지를 더 집어넣었습니다...

 

암튼 설정파일은 위와 같구요

 

다음과 같이 ldif파일 만들어서 그 아래와 같이 명령줄에서 실행했슴다

 

<test.ldif>

dn: dc=my-domain,dc=com

objectClass: dcObject

objectClass: organization

o: zozig

dc: private

 

dn: cn=test,dc=my-domain,dc=com

objectClass: organizationalRole

cn: Test

<end of test.ldif>

 

#/usr/local/libexec/slapd -f /usr/local/etc/openldap/slapd.conf (데몬실행)

#/usr/local/bin/ldapadd -x -h 123.345.567.789 -D "cn=Manager,dc=my-domain,dc=com" -w secret -f test.ldif (엔트리 추가)

adding new entry "dc=my-domain,dc=com" <----여기부터 에러메시지

ldapadd: update failed: dc=my-domain,dc=com

ldap_add: Naming violation (64)

additional info: value of naming attribute 'dc' is not present in entry <---에러메시지 끝

 

요로코롬 나옴다...

제가 알기로는 dcObject에은 dc라는 어트리뷰트가 있는걸루 알구 있는데 왜 이런 에러가 나는지..

 

엔트리를 못넣으니깐 접속은 되도 리스트를 불러오지 못하니 원~~

 

귀찮으시더라두 도움될만한 힌트를 주시면 감사하겠슴다..

 

thanks in advance...

이 글에 대한 댓글이 총 1건 있습니다.

www.rathontech.com

 

음 제가 알기로는 다음과 같습니다.

 

dn: dc=my-domain,dc=com

objectClass: dcObject

objectClass: organization

o: zozig

dc: private

 

를 없애고 입력해 보세요. 이유는 이미 slapd.conf에 정의 되어 있으므로 굳이 다시 Add할 필요는 없을 거라보는 관점입니다. 그리고 두번쨰 dc:private값을 dn값으로 바꾸어 실행해 보십시요... 그럼

라톤텍님이 2003-08-06 09:14에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
1893LDAP클라이언트를 제작할려 그러는데 어떤 언어가 최적? [1]
신재훈
2003-08-05
5724
1892VPN과 연동시 Index을 어떻게 설정해 주나요... [1]
초보
2003-08-04
5341
1891ldap 에서 부모가 둘이상인 데이타처리는.. [1]
비온다
2003-08-04
5363
1890ldapadd에러 [1]
이재인
2003-08-04
5835
1889ldap application 실행시 에러가 납니다. [1]
유재영
2003-08-03
5565
1888[질문] ldapadd 에서 에러가 나서 질문합니다 [2]
문태준
2003-08-03
6650
1886Directory Architectures and Data for Managing Mobile Computing
송상준
2003-08-01
5573
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.019초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다