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 1255 게시물 읽기
No. 1255
Re: Re: Re: [질문]openldap에서 구현되지 않은 matching rule..
작성자
최영봉(hurd)
작성일
2001-11-29 14:51
조회수
6,485

>>

>> 그런데 cn이나 다른 필드는 비교를 해서 검색이 가능한데

>> $sr=ldap_search($ds, "ou=R&D,o=dacom,c=KR","cn=$cnn")

>> 인증서는 검색이 안되더군요.

>> $sr=ldap_search($ds, "ou=R&D,o=dacom,c=KR","myusercertificate;binary=$cert");

>>

 

결국, PEM 인코딩된 인증서를 equality matching 하는게 잘 안되는 거군요.

 

혹시, $cert 에 포함된 특수문자들을 backslash escape 처리해 주셨나요?

 

참고: http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc2254.html

 

If a value should contain any of the following characters 

           Character       ASCII value
           ---------------------------
           *               0x2a
           (               0x28
           )               0x29
           \               0x5c
           NUL             0x00

the character must be encoded as the backslash '' character (ASCII 0x5c) followed by the two hexadecimal digits representing the ASCII value of the encoded character. The case of the two hexadecimal digits is not significant.

 

This simple escaping mechanism eliminates filter-parsing ambiguities and allows any filter that can be represented in LDAP to be represented as a NUL-terminated string. Other characters besides the ones listed above may be escaped using this mechanism, for example, non-printing characters.

 

For example, the filter checking whether the "cn" attribute contained a value with the character "*" anywhere in it would be represented as "(cn=*a*)".

 

 

이렇게 해도 안된다면... 저도 잘 모르겠군요 ㅡ.ㅡ;

[Top]
No.
제목
작성자
작성일
조회
1261SOS T.T
조준용
2001-11-30
6224
1262┕>Re: SOS T.T
박근오
2001-11-30 18:53:57
6719
1259바이너리와 스트링값의 구별법??
김석훈
2001-11-29
6317
1268┕>Re: 바이너리와 스트링값의 구별법??
이윤원
2001-12-03 15:19:48
7429
1251LDAP을 이용한 인증과, 자료실 구축
강석원
2001-11-29
6344
1252┕>Re: LDAP을 이용한 인증과, 자료실 구축
최영봉
2001-11-29 11:04:42
6522
1256 ┕>Re: Re: LDAP을 이용한 인증과, 자료실 구축
강석원
2001-11-29 16:16:03
6784
1257  ┕>Re: Re: Re: LDAP을 이용한 인증과, 자료실 구축
최영봉
2001-11-29 18:22:31
6683
1260   ┕>감사합니다. 최영봉님.. 하지만....
강석원
2001-11-30 04:38:12
6391
1249[질문]openldap에서 구현되지 않은 matching rule..
sun jung
2001-11-28
5954
1253┕>Re: [질문]openldap에서 구현되지 않은 matching rule..
최영봉
2001-11-29 11:42:53
7015
1254 ┕>Re: Re: [질문]openldap에서 구현되지 않은 matching rule..
윤성철
2001-11-29 13:14:26
6497
1255  ┕>Re: Re: Re: [질문]openldap에서 구현되지 않은 matching rule..
최영봉
2001-11-29 14:51:45
6485
1248acl에서 권한 level 중 selfwrite
최병희
2001-11-26
5880
1247답변에 감사하며 하나더..^^
홍민정
2001-11-26
6098
1239아이플래닛nt버젼을 2000server에 깔면
홍민정
2001-11-26
5675
1240┕>Re: 아이플래닛nt버젼을 2000server에 깔면
이수진
2001-11-26 09:19:27
6124
1241 ┕>아뇨, 서버와 콘솔을 2000에 깔고 거기에서 콘솔을 실행시켰어요.
홍민정
2001-11-26 10:06:28
6336
1244  ┕>Re: 아뇨, 서버와 콘솔을 2000에 깔고 거기에서 콘솔을 실행시켰어요.
dugi
2001-11-26 11:04:29
6281
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.024초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다