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 3164 게시물 읽기
No. 3164
ldapadd실행시 Invalid credentials 에러 발생질문
작성자
진세민(진세민)
작성일
2010-06-30 20:02ⓒ
2010-06-30 20:02ⓜ
조회수
7,158

아래는 openldap 설치후 slapd.conf 파일 전문입니다.

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

# Load dynamic backend modules:
# modulepath    /usr/local/openldap/libexec/openldap
# moduleload    back_bdb.la
# moduleload    back_hdb.la
# moduleload    back_ldap.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=database, dc=sarang, dc=net"
rootdn          "cn=DsnManager, dc=database, dc=sarang, dc=net"
# 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/openldap/var/openldap-data
# Indices to maintain
index   objectClass     eq

 

 

$ ./bin/ldapadd -D "cn=DsnManager,dc=sarang,dc=net" -w secret 명령실행시

ldap_bind: Invalid credentials (49) 라는 에러가 발생하는데 이게 도통 해결이 안됩니다.

게시물검색을 통해서 여러가지 방법을 동원해 보았는데 도 안되고 답답한마음에 질문올려봅니다.

고수님들 도움을 주세요

일단 slapd.conf 파일부터 먼가 생긴게 다르다는 느낌을 받고있습니다. 버전때문인지도 좀 알려주세요

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

ldif  문서작성후 add에 성공하였습니다.

ldif 문서 내용

dn: dc=database,dc=sarang,dc=net
dc: database
objectclass: dcobject
objectClass: organizationalUnit
ou: mytest

혹시나해서 하위트리 추가하니 무난하게되네요;;

이것저것해보느라 자답이 늦었습니다..

 

 

진세민(진세민)님이 2010-07-06 09:53에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
3167개인적인 궁금증입니다만... [2]
진세민
2010-07-19
5214
3166openldap서버설치후 [1]
진세민
2010-07-09
5677
3165ldap-client에서 bind할 때 hash된 비밀번호 값을 직접 넣어서 처리할 수 있나요?
김도윤
2010-07-05
5611
3164ldapadd실행시 Invalid credentials 에러 발생질문 [1]
진세민
2010-06-30
7158
3162[질문] access control 설정 질문
최진석
2010-05-13
4888
3161LDAP으로 할수있는것? [1]
NETSIM
2010-04-29
5758
3159현재 libldap을 이용해 따로 클라이언트를 만들려고 하는데 에러가 나네요.
김도윤
2010-04-06
5547
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2023 DSN, All rights reserved.
작업시간: 0.051초, 이곳 서비스는
	PostgreSQL v16.1로 자료를 관리합니다