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 2352 게시물 읽기
No. 2352
[질문] ldapadd 질문입니다.
작성자
문성주(moonsungju)
작성일
2007-05-22 17:42ⓒ
2007-05-22 17:45ⓜ
조회수
6,708
cygwin 에서 openLDAP 을 설치한후  slapd.conf 의 다른 수정 없이

ldapadd를 하는데 이런 에러가 납니다.

 test.ldif 은 아래와 처럼 했구요

dn:dc=my-domain,dc=com
dc:my-domain
objectClass:eq


구문은 이렇게 작성 했습니다.

$ ldapadd -D "cn=Manager,dc=my-domain,dc=com" -W -f test.ldif

Enter LDAP Password:

SASL/CRAM-MD5 authentication started

ldap_sasl_interactive_bind_s: Insufficient access (50)

        additional info: SASL(-14): authorization failure: Encoding error



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

#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include  /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  /var/openldap/run/slapd.pid
argsfile /var/openldap/run/slapd.args

# Load dynamic backend modules:
# modulepath /usr/sbin/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
# allows anyone and everyone to read anything but restricts
# updates to rootdn.  (e.g., "access to * by * read")
#
# rootdn can always read and write EVERYTHING!

#######################################################################
# BDB 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 /var/openldap/openldap-data

# Indices to maintain

index objectClass eq

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

$ ldapadd -D "cn=Manager,dc=my-domain,dc=com" -W -f test.ldif


-> ldapadd -x -D "cn=Manager,dc=my-domain,dc=com" -w secret -f test.ldif


로 하면 되지 않을까요?


그럼

송상준님이 2007-05-25 11:20에 작성한 댓글입니다. Edit
[Top]
No.
제목
작성자
작성일
조회
2358[개발]XSO관련 질문입니다.. [1]
장성훈
2007-06-28
6631
2356asp.net AD 연동질문입니다.. [3]
장성훈
2007-06-15
7642
2354[openldap]structuralObjectclass [2]
박찬호
2007-06-11
6451
2352[질문] ldapadd 질문입니다. [1]
문성주
2007-05-22
6708
2349openLDAP 의 DN 에 관해서 질문이여~ [2]
문성주
2007-05-18
6581
2348LDAP 이란걸 오늘 알게되었습니다. 도움요청.. [4]
문성주
2007-05-15
11117
2344openldap server, client 설정 문의 [3]
완전초보
2007-05-03
7807
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.019초, 이곳 서비스는
	PostgreSQL v16.4로 자료를 관리합니다