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 1268 게시물 읽기
No. 1268
Re: 바이너리와 스트링값의 구별법??
작성자
이윤원
작성일
2001-12-03 15:19
조회수
7,429

directory schema에 정의되어 있는 attribute syntax의 값을 보세요...

 

님이 쓰시는 ldap server가 어떤 것인지는 모르겠지만, openldap의 경우 directory들 중에 schema란 이름을 가진 놈이 있을 것입니다. 거기에 있는 파일들에, 어떤 attribute는 어떤 syntax(type)을 가지는 가가 명시되어 있습니다.

 

예를 들어..

 

attributetype ( 2.5.4.41 NAME 'name'

EQUALITY caseIgnoreMatch

SUBSTR caseIgnoreSubstringsMatch

SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )

 

에서 보면 name의 syntax가 머라머라고 되어 있습니다.

여기서 1.3.6.1.4.1.1466.115.121.1.15는 type입니다.

아래 표에서 보면, H-R(human-readable)한 directory string이죠....

 

rfc2252에 정의된 syntax들은 다음과 같습니다.

 

 

Value being represented H-R OBJECT IDENTIFIER

=================================================================

ACI Item N 1.3.6.1.4.1.1466.115.121.1.1

Access Point Y 1.3.6.1.4.1.1466.115.121.1.2

Attribute Type Description Y 1.3.6.1.4.1.1466.115.121.1.3

Audio N 1.3.6.1.4.1.1466.115.121.1.4

Binary N 1.3.6.1.4.1.1466.115.121.1.5

Bit String Y 1.3.6.1.4.1.1466.115.121.1.6

Boolean Y 1.3.6.1.4.1.1466.115.121.1.7

Certificate N 1.3.6.1.4.1.1466.115.121.1.8

Certificate List N 1.3.6.1.4.1.1466.115.121.1.9

Certificate Pair N 1.3.6.1.4.1.1466.115.121.1.10

Country String Y 1.3.6.1.4.1.1466.115.121.1.11

DN Y 1.3.6.1.4.1.1466.115.121.1.12

Data Quality Syntax Y 1.3.6.1.4.1.1466.115.121.1.13

Delivery Method Y 1.3.6.1.4.1.1466.115.121.1.14

Directory String Y 1.3.6.1.4.1.1466.115.121.1.15

DIT Content Rule Description Y 1.3.6.1.4.1.1466.115.121.1.16

DIT Structure Rule Description Y 1.3.6.1.4.1.1466.115.121.1.17

DL Submit Permission Y 1.3.6.1.4.1.1466.115.121.1.18

DSA Quality Syntax Y 1.3.6.1.4.1.1466.115.121.1.19

DSE Type Y 1.3.6.1.4.1.1466.115.121.1.20

Enhanced Guide Y 1.3.6.1.4.1.1466.115.121.1.21

Facsimile Telephone Number Y 1.3.6.1.4.1.1466.115.121.1.22

Fax N 1.3.6.1.4.1.1466.115.121.1.23

Generalized Time Y 1.3.6.1.4.1.1466.115.121.1.24

Guide Y 1.3.6.1.4.1.1466.115.121.1.25

IA5 String Y 1.3.6.1.4.1.1466.115.121.1.26

INTEGER Y 1.3.6.1.4.1.1466.115.121.1.27

JPEG N 1.3.6.1.4.1.1466.115.121.1.28

LDAP Syntax Description Y 1.3.6.1.4.1.1466.115.121.1.54

LDAP Schema Definition Y 1.3.6.1.4.1.1466.115.121.1.56

LDAP Schema Description Y 1.3.6.1.4.1.1466.115.121.1.57

Master And Shadow Access Points Y 1.3.6.1.4.1.1466.115.121.1.29

Matching Rule Description Y 1.3.6.1.4.1.1466.115.121.1.30

Matching Rule Use Description Y 1.3.6.1.4.1.1466.115.121.1.31

Mail Preference Y 1.3.6.1.4.1.1466.115.121.1.32

MHS OR Address Y 1.3.6.1.4.1.1466.115.121.1.33

Modify Rights Y 1.3.6.1.4.1.1466.115.121.1.55

Name And Optional UID Y 1.3.6.1.4.1.1466.115.121.1.34

Name Form Description Y 1.3.6.1.4.1.1466.115.121.1.35

Numeric String Y 1.3.6.1.4.1.1466.115.121.1.36

Object Class Description Y 1.3.6.1.4.1.1466.115.121.1.37

Octet String Y 1.3.6.1.4.1.1466.115.121.1.40

OID Y 1.3.6.1.4.1.1466.115.121.1.38

Other Mailbox Y 1.3.6.1.4.1.1466.115.121.1.39

Postal Address Y 1.3.6.1.4.1.1466.115.121.1.41

Protocol Information Y 1.3.6.1.4.1.1466.115.121.1.42

Presentation Address Y 1.3.6.1.4.1.1466.115.121.1.43

Printable String Y 1.3.6.1.4.1.1466.115.121.1.44

Substring Assertion Y 1.3.6.1.4.1.1466.115.121.1.58

Subtree Specification Y 1.3.6.1.4.1.1466.115.121.1.45

Supplier Information Y 1.3.6.1.4.1.1466.115.121.1.46

Supplier Or Consumer Y 1.3.6.1.4.1.1466.115.121.1.47

Supplier And Consumer Y 1.3.6.1.4.1.1466.115.121.1.48

Supported Algorithm N 1.3.6.1.4.1.1466.115.121.1.49

Telephone Number Y 1.3.6.1.4.1.1466.115.121.1.50

Teletex Terminal Identifier Y 1.3.6.1.4.1.1466.115.121.1.51

Telex Number Y 1.3.6.1.4.1.1466.115.121.1.52

UTC Time Y 1.3.6.1.4.1.1466.115.121.1.53

 

A suggested minimum upper bound on the number of characters in value

with a string-based syntax, or the number of bytes in a value for all

other syntaxes, may be indicated by appending this bound count inside

of curly braces following the syntax name's OBJECT IDENTIFIER in an

Attribute Type Description. This bound is not part of the syntax

name itself. For instance, "1.3.6.4.1.1466.0" suggests that

server implementations should allow a string to be 64 characters

long, although they may allow longer strings. Note that a single

character of the Directory String syntax may be encoded in more than

one byte since UTF-8 is a variable-length encoding.

 

 

-- 김석훈 님이 쓰신 글:

>> ldap에 저장되어있는 값을 읽어왔을때 바이너리와 스트링값을 어떻게 구별하는지요?

>>

>> ldap에 저장이 된 값에 어떠한 표현이 되었는건가요?

[Top]
No.
제목
작성자
작성일
조회
1264[질문] binding끊는 방법좀...
궁금이
2001-12-01
5460
1265┕>Re: [질문] binding끊는 방법좀...
dugi
2001-12-02 11:05:59
6133
1270┕>Re: [질문] binding끊는 방법좀...
이진희
2001-12-03 20:13:21
6261
1263SSHA 암호방식?
혁진
2001-11-30
6274
1274┕>Re: SSHA 암호방식?
박근오
2001-12-04 13:12:55
6878
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
6484
1248acl에서 권한 level 중 selfwrite
최병희
2001-11-26
5880
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.020초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다