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 1882 게시물 읽기
No. 1882
Re: 그런데 ldapadd가 안되네요...
작성자
이재인(hatbary)
작성일
2003-08-01 15:50
조회수
6,025

코멘트 달아주신 분...고맙슴다..

 

근데 하나 더 물어봐도 될른지....?

 

데몬 하나 떠있는것이 별 문제 되지 않는다면 왜 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...

[Top]
No.
제목
작성자
작성일
조회
1885The Executive on the Move
송상준
2003-08-01
5540
1884보잉에서 원하는 Mobile에 사용될 LDAP [2]
송상준
2003-08-01
5526
1883특정 어트리뷰트의 값을 못 가져와요.. [1]
하하하
2003-08-01
5454
1887┕>못가져오는 어트리뷰트가 추가된 어트리뷰트가 아니에요..
하하하
2003-08-01 16:42:56
5706
1881LDAP 설치에 문제가 있는건가요? 설정에 문제가 있는건가요? [1]
이재인
2003-08-01
5491
1882┕>Re: 그런데 ldapadd가 안되네요...
이재인
2003-08-01 15:50:27
6025
1879LDAP Server CPU 사용량 증가 [4]
초보
2003-07-30
6049
1878LDAP과 VPN 연동 시 Duplication Error 발생 [1]
초보
2003-07-30
5436
1877Cyrus's SASL 설치시 에러..
한유수
2003-07-30
5726
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.019초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다