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 1512 게시물 읽기
No. 1512
질문) 에러인데요... ldap_bind: Invalid credentials
작성자
초보
작성일
2002-05-11 21:21
조회수
4,921

초보자가 이런 초보적인 질문을 드려 죄송합니다만...

저로서는 급한 문제이네요...

도움 부탁드립니다.... 꾸벅....

 

이 곳에 있는 박근오님의 글과...

linux@work 작년 4월호랑 참조하구...

게시판의 글들도 참고하고.... 근데... 도저히 안 되네요 ㅠ.ㅠ

 

[root@test openldap]# vi slapd.conf

 

1 # $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.7 2001/09/27 20:00:31 kurt Exp $

2 #

3 # See slapd.conf(5) for details on configuration options.

4 # This file should NOT be world readable.

5 #

6 include /usr/local/ldap/etc/openldap/schema/core.schema

7

8 schemacheck off

9

10 # Define global ACLs to disable default read access.

11

12 # Do not enable referrals until AFTER you have a working directory

13 # service AND an understanding of referrals.

14 #referral ldap://root.openldap.org

15

16 pidfile /usr/local/ldap/var/slapd.pid

17 argsfile /usr/local/ldap/var/slapd.args

 

44 #######################################################################

45 # ldbm database definitions

46 #######################################################################

47

48 database ldbm

49 suffix "dc=test,dc=position,dc=com"

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

51 rootdn "cn=Manager,dc=test,dc=position,dc=com"

52 #rootdn "cn=Manager,o=My Organization Name,c=US"

53 # Cleartext passwords, especially for the rootdn, should

54 # be avoid. See slappasswd(8) and slapd.conf(5) for details.

55 # Use of strong authentication encouraged.

56 rootpw w0n0MWx$p2mHC4Ah0mfmqV4Cy8dZZ

57 # The database directory MUST exist prior to running slapd AND

58 # should only be accessible by the slapd/tools. Mode 700 recommended.

59 directory /usr/local/ldap/var/openldap-ldbm

60 # Indices to maintain

61 index objectClass eq

 

[root@test openldap]# ldapadd -x -D "cn=Manager,dc=test,dc=position,dc=com" -W << EOF

> dn:dc=test,dc=position,dc=com

> dc:test

> objectclass:dcObject

> EOF

Enter LDAP Password:

ldap_bind: Invalid credentials

 

rootpw는 /etc/shadow를 copy & paste 했슴다...

참고) root:$.w0n0MWx$p2mHC4Ah0mfmqV4Cy8dZZ/:11815:0:99999:7:::

 

 

 

 

또는 dsnroot.ldif 파일을 생성하고 아래와 같이 저장한 후... 실행해도 안 되구요...

제가 도대체 무슨 실수를 한 것인가요?

 

/////////// dsnroot.ldif ///////////

 

1 dn: dc=position,dc=com

2 objectclass: dcObject

3 dc:position

4

5 dn: o=test,dc=position,dc=com

6 objectclass: organization

7 o:test

8

9 dn: cn=Manager,o=test,dc=position,dc=com

10 objectclass: organizationalRole

11 cn: Manager

 

/////////////////////////////////

 

[root@test openldap]# ldapadd -x -D "cn=Manager,dc=test,dc=position,dc=com" -w secret -f dsnroot.ldif << EOF

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

-x 옵션은 SimpleBind를 요구합니다.

그러므로 암호화 되지않은 암호를 slapd.conf어 넣으시던지... 아니면 .. "w0n0MWx$p2mHC4Ah0mfmqV4Cy8dZZ"를 입력하세요. 아니면 -x 옵션을 빼세요 ... 등등

쟁이님이 2002-05-15 18:40에 작성한 댓글입니다.

답변 감사드립니다...

 

해결했는데요...

패스는 그냥 secret로 하고,

bin 디렉토리에서 실행하니까 되더군요 ^^

초보님이 2002-05-18 11:59에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
1515open-ldap. window 2000
구승회
2002-05-20
4492
1518┕>Re: open-ldap. window 2000
송상준
2002-05-20 23:57:13
4574
1514한글에 대한 조건검색의문..
궁그미
2002-05-17
4232
1519┕>Re: 한글에 대한 조건검색의문.. [1]
송상준
2002-05-21 00:01:09
4453
1513LDAP에 관한 조언을 부탁드립니다.
kww77
2002-05-15
4239
1512질문) 에러인데요... ldap_bind: Invalid credentials [2]
초보
2002-05-11
4921
1511에러...ldap_sasl_interactive_bind_s: Can't contact LDAP server
초보
2002-05-09
4451
1510openldap 소스 분석 도움 주세요 *^.^*
chobo
2002-05-07
4070
1509[도와주세요] ldap와 odbc [1]
초보
2002-05-07
4082
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.022초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다