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 394 게시물 읽기
No. 394
ldapadd 시 에러가 납니다 좀 봐주세엽T.T
작성자
심도선
작성일
2001-03-20 10:58
조회수
7,947

[root@deepway bin]# ldapadd -D "dc=my-domain, dc=com" << EOF

> dn: dc=my-domain,dc=com

> cn:my-domain

> objectclass:mynewobject

> EOF

adding new entry "dc=my-domain,dc=com"

ldap_add: Object class violation

additional info: attribute not allowed

 

위와 같이 했습니다. attribute not allowed 라고 나오는게 아무래도 objectclass

 

의 속성이 정의되지 않은 것 같은데요.. 어디서 해야하지요??

 

openLDAP 2.0.7 깔았구요..

 

slapd.conf 파일의 내용은 아래와 같습니다 .

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.4 2000/08/26 17:06:18 kurt 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

include /usr/local/LDAP/etc/openldap/local.oc.conf

 

# 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

 

#######################################################################

# ldbm database definitions

#######################################################################

 

database ldbm

suffix "dc=my-domain, dc=com"

#suffix "o=My Organization Name, c=US"

#suffix "c=kr"

rootdn "cn=Manager, dc=my-domain, dc=com"

#rootdn "cn=Manager, c=kr"

# 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 accessable by the slapd/tools. Mode 700 recommended.

directory /usr/local/LDAP/var/openldap-ldbm

# Indices to maintain

index objectClass,o,cn eq

#index { <attrlist> | default } [pres,eq,approx,sub,none]

#index o eq

#index cn eq

#index mail eq

 

제가 이것저것 삽질한다고 군더더기들이 많습니다..

 

아 그리고 include 되어있는 local.oc.conf 라는 파일은 제가 만든건데여..

 

역시 좀 봐주세요.

 

vi local.oc.conf

 

objectclass mynewobject

requires

cn

allows

mail,

telephone

 

뭐가뭔지 모르겠어요.. 엉엉..

 

그리고 박근오님이 추천해주신 문서보고 많은 도움을 받았습니다

[Top]
No.
제목
작성자
작성일
조회
404궁금합니다.
조용덕
2001-03-21
7672
407┕>Re: 궁금합니다.
김경하
2001-03-21 22:11:09
8238
402dn에 한글을 입력하면 왜 깨져서 나오지요?
송지훈
2001-03-21
7647
403┕>Re: dn에 한글을 입력하면 왜 깨져서 나오지요?
박근오
2001-03-21 16:42:42
8212
405┕>Re: dn에 한글을 입력하면 왜 깨져서 나오지요?
김경하
2001-03-21 21:45:48
8736
406 ┕>Re: Re: dn에 한글을 입력하면 왜 깨져서 나오지요?
박근오
2001-03-21 22:07:37
8722
408  ┕>Re: Re: Re: dn에 한글을 입력하면 왜 깨져서 나오지요?
김경하
2001-03-21 22:14:18
8571
399도와 주세요[ldapadd시 오류입니다.]
조용덕
2001-03-20
7720
400┕>Re: 도와 주세요[ldapadd시 오류입니다.]
박근오
2001-03-20 22:24:58
8336
394ldapadd 시 에러가 납니다 좀 봐주세엽T.T
심도선
2001-03-20
7947
395┕>Re: ldapadd 시 에러가 납니다 좀 봐주세엽T.T
박근오
2001-03-20 11:59:14
8912
396 ┕>Re: Re: 답변 고맙습니다 그런데 한가지 또.. T.T
심도선
2001-03-20 13:03:59
8510
397  ┕>Re: Re: Re: 답변 고맙습니다 그런데 한가지 또.. T.T
박근오
2001-03-20 15:06:09
8783
398   ┕>Re: Re: Re: Re: 감사합니다..T.T
심도선
2001-03-20 16:06:20
8795
401    ┕>Re: Re: Re: Re: Re: 감사합니다..T.T
박근오
2001-03-20 22:39:40
9157
391최소한의 설정으로 add search 해보고
심도선
2001-03-19
8263
392┕>Re: 최소한의 설정으로 add search 해보고
박근오
2001-03-19 20:18:49
9279
390ldap에서 host주소 어디서 바꿔주나요?
송지훈
2001-03-19
7569
393┕>Re: ldap에서 host주소 어디서 바꿔주나요?
박근오
2001-03-19 20:16:08
8300
386[질문] LDAP 에 대해서 질문있습니다
초보자
2001-03-17
7354
387┕>Re: [질문] LDAP 에 대해서 질문있습니다
박근오
2001-03-18 23:56:03
8426
388 ┕>Re: Re: [질문] LDAP 에 대해서 질문있습니다
초보자
2001-03-19 02:02:23
8232
389  ┕>Re: Re: Re: [질문] LDAP 에 대해서 질문있습니다
박근오
2001-03-19 10:07:23
8538
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2023 DSN, All rights reserved.
작업시간: 0.054초, 이곳 서비스는
	PostgreSQL v16.1로 자료를 관리합니다