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 2026 게시물 읽기
No. 2026
꼭꼭! 부탁드려욧! ber_get_next failed
작성자
KSL
작성일
2004-03-17 11:29ⓒ
2004-03-17 11:34ⓜ
조회수
8,164

아래의 Can't connect LDAP server에 대해서 글 올렸던 사람입니다.

별의 별 방법을 다 썼다가 안 되서 그냥 openldap과 BDB의 버젼을 up해서 install했습니다.

schema 및 slapd.conf도 openldap-2.1.17에 맞게끔 수정하여 slapd를 start up했습니다.

 

openldap-2.1.17

BerkeleyDB.4.1.25

HP-UX 11.00

 

debugging을 위해서

./libexec/slapd -s debug -d 1 -h ldap://localhost:389 -f ./etc/openldap/slapd.conf

install 후의 ldapsearch 명령어를 날리니 검색이 잘 됩니다.

 

그런데...제가 쓰는 connectionPool을 이용하여 connection을 시도 하면, error가 떨어집니다.

ldap_simple_bind_s 에서 리턴되는  error code는 81(Ldap server down error)입니다.

ldap_simple_bind_s에 들어가는 파라미터는 모두 제대로 넘어가는 것 같습니다.

 

 

이때 실패 시의 slapd쪽의 debugging 정보는

 

connection_get(10): got connid=3
connection_read(10): checking for input on id=3
ber_get_next
ber_get_next: tag 0x30 len 36 contents:
ber_get_next
do_bind
ber_get_next on fd 10 failed errno=11 (Resource temporarily unavailable)
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: <cn=admin,o=terrace>
=> ldap_bv2dn(cn=admin,o=terrace,0)
<= ldap_bv2dn(cn=admin,o=terrace,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=admin,o=terrace,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=admin,o=terrace,272)=0
<<< dnPrettyNormal: <cn=admin,o=terrace>, <cn=admin,o=terrace>
do_bind: version=3 dn="cn=admin,o=terrace" method=128
bdb_dn2entry_rw("cn=admin,o=terrace")
=> bdb_dn2id_matched( "cn=admin,o=terrace" )
====> bdb_cache_find_entry_dn2id("o=terrace"): 1 (1 tries)
====> bdb_cache_find_entry_id( 1 ) "o=terrace" (found) (1 tries)
====> bdb_cache_return_entry_r( 1 ): returned (0)
do_bind: v3 bind: "cn=admin,o=terrace" to "cn=admin,o=terrace"
send_ldap_result: conn=3 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 10
connection_get(10): got connid=3
connection_read(10): checking for input on id=3
ber_get_next
ber_get_next on fd 10 failed errno=232 (Connection reset by peer)
connection_read(10): input error=-2 id=3, closing.

connection_closing: readying conn=3 sd=10 for close
connection_close: deferring conn=3 sd=10
connection_resched: attempting closing conn=3 sd=10
connection_close: conn=3 sd=10

 

위의 bold체로 된 것에서 걸리는 것 같습니다.

 

 

고수님들 도와주세요....ㅠ.ㅠ

 

 

 

 

 

 

 

 

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

ldapsearch로 되면 프로그램에서도 되야 하는데 프로그램에서 호스트 설정이 잘 못 되지 않았는지 확인 바랍니다.

송상준(sjsong)님이 2004-03-19 09:55에 작성한 댓글입니다.

connectionPool을 다시 컴팔해서 실행했더니 되네요.^^

하도 여러 버젼을 install하다보니 그것을 빼먹었습니다.

어쨌든 댓글 감사드려요.

KIMLYUNG(psyche14)님이 2004-03-26 11:32에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
2029[급] 정전이후의 ldap 상태가 이상합니다. [3]
김대진
2004-03-18
8235
2028모르니까 힘드네요 ldap 재부팅 하는 방법 [2]
윤성중
2004-03-18
7472
2027ldapadd시 에러 입니다. 어디가 잘못됬는지 가르쳐주세요 [1]
윤성중
2004-03-17
7905
2026꼭꼭! 부탁드려욧! ber_get_next failed [2]
KSL
2004-03-17
8164
2025ADSI 질문입니다..LDAP 프로토콜 버전과 관련하여 [2]
으쌰으쌰
2004-03-16
7391
2024[급질문]Can't contact LDAP server [1]
KIMLYUNG
2004-03-12
7922
2023ldap 에서 samba 연동중에 잘 안되네요.. 조언 부탁드립니다.
이준호
2004-03-09
8295
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2023 DSN, All rights reserved.
작업시간: 0.052초, 이곳 서비스는
	PostgreSQL v16.1로 자료를 관리합니다