📄 rfc1249.txt
字号:
Network Working Group T. HowesRequest for Comments: 1249 M. Smith B. Beecher University of Michigan August 1991 DIXIE Protocol SpecificationStatus of this Memo This RFC defines a mechanism by which TCP/UDP based clients can access OSI Directory Service without the overhead of the ISO transport and presentation protocols required to implement full-blown DAP. This memo provides information for the Internet community. It does not specify any standard. Distribution of this memo is unlimited.Table of Contents 1. Introduction .............................................. 2 1.1 History .................................................. 2 2. Protocol .................................................. 2 2.1 Header ................................................... 3 2.2 Operations ............................................... 4 2.2.1 Read ................................................... 4 2.2.1.1 Read Request ......................................... 4 2.2.1.2 Read Reply ........................................... 4 2.2.2 Search ................................................. 5 2.2.2.1 Search Request ....................................... 5 2.2.2.2 Search Reply ......................................... 5 2.2.3 List ................................................... 5 2.2.3.1 List Request ......................................... 5 2.2.3.2 List Reply ........................................... 5 2.2.4 Modify ................................................. 5 2.2.4.1 Modify Request ....................................... 6 2.2.4.2 Modify Reply ......................................... 6 2.2.5 Modify RDN ............................................. 6 2.2.5.1 Modify RDN Request ................................... 6 2.2.5.2 Modify RDN Reply ..................................... 6 2.2.6 Add .................................................... 6 2.2.6.1 Add Request .......................................... 7 2.2.6.2 Add Reply ............................................ 7 2.2.7 Remove ................................................. 7 2.2.7.1 Remove Request ....................................... 7 2.2.7.2 Remove Reply ......................................... 7 2.2.8 Bind ................................................... 7 2.2.8.1 Bind Request ......................................... 7Howes, Smith, & Beecher [Page 1]RFC 1249 DIXIE August 1991 2.2.8.2 Bind Reply ........................................... 8 2.3 Operation Code Summary ................................... 8 2.4 Return Code Summary ...................................... 8 3. References ................................................ 9 4. Available Implementations ................................. 9 5. Security Considerations.................................... 9 6. Authors' Addresses ........................................ 101. Introduction OSI Directory Service defines a powerful mechanism for storing and retrieving information about objects, and for arranging those objects in a hierarchical structure. Many types of objects and information can be stored in The Directory, including white pages information, application information, service information, etc. The OSI protocol defined to allow access to this information is the Directory Access Protocol (DAP). The DAP, being an OSI application-layer program, is fairly heavy-weight and requires a substantial amount of computing power and coding investment to implement. The DIXIE protocol is designed for use by smaller hosts (e.g., Macintoshes and PCs) that do not have the computing power or necessary software to implement a full OSI protocol stack. The DIXIE protocol is also useful for any Internet application that wants a simple interface to X.500 that requires very little coding investment. The basic idea behind DIXIE is the same as that described in RFC 1202 for the Directory Assistance Protocol. DIXIE offers both UDP and TCP access to The Directory. While the Directory Assistance Protocol exports something of a user interface, DIXIE provides a more direct protocol translation.1.1 History The DIXIE protocol has evolved over time, slowly growing into the protocol described by this document. Without an understanding of the circumstances surrounding this evolution, the wisdom of some of the DIXIE design decisions may not be apparent.2. Protocol This section describes the DIXIE protocol in detail. DIXIE follows a client-server request and response paradigm. Clients send request packets to a DIXIE server, and the server sends reply packets in return. Communication may be over UDP or TCP, depending upon the needs of the client. All modification operations (ADD, REMOVE, MODIFY, MODIFYRDN) must be performed over a TCP connection, whichHowes, Smith, & Beecher [Page 2]RFC 1249 DIXIE August 1991 provides some level of authentication. Whichever method of communication is used, the general packet format is the same. Each packet consists of a sixteen octet header followed by some data. The format of the header and data for each kind of request is described below. The representation used for all X.500 data passed between the server and the client is the QUIPU EDB format. So, for example, a Distinguished Name might look something like "c=US@o=University of Michigan". For a complete description of this format, see volume 5 of the ISODE Manual. The DIXIE server listens on port 96 for both UDP packets and TCP connections.2.1 Header The DIXIE packet header is sixteen octets long. For requests, the header is described by the following: Start Length Description 0 1 An opcode specifying one of the operations described below. (see section 2.3 for a summary) 1 2 A request identifier to be included in the reply. This number should be unique to a request. 3 4 The total length of the request packet, excluding the header. 7 2 Unused. 9 1 Options. Currently, there are only three options. If bit 0 is set, "large" attributes will be included in the response. The choice of what constitutes large is up to the implementation. If bit 1 is set, the dereference aliases service control will be set for the X.500 operation. If bit 2 is set, aliases will NOT be dereferenced and searched during a search operation. 10 1 Protocol version. The current version is 1. 11 1 For the search operation, this byte specifies the scope of the search. (see section 2.2.2.1) 12 2 Timelimit in seconds for the operation. 14 2 Sizelimit for the operation (search and list).Howes, Smith, & Beecher [Page 3]RFC 1249 DIXIE August 1991 For replies, the header is described by the following: Start Length Description 0 1 A return code specifying either success or describing any error that occurred. (see section 2.4 for a description of each code) 1 2 The identifier included in the corresponding request packet. 3 4 The total length of the response packet, excluding the header. 7 3 Unused. 10 1 Protocol version. The current version is 1. 11 5 Unused. All unused fields should be set to null octets and are reserved for future expansion.2.2 Operations This section describes the DIXIE operations, which closely parallel the X.500 DAP operations.2.2.1 Read The DIXIE read operation corresponds to an X.500 DAP READ operation.2.2.1.1 Read Request The header opcode should be set to 0x01. The data portion of the packet consists of the DN of the entry to read, a null octet, and then a null-octet separated list of attributes whose values are to be returned from the read. If no attributes to return are listed, all attributes are returned. The packet is terminated by two null octets in a row.2.2.1.2 Read Reply The reply data for the read operation consists of the entry read, followed by a null octet. An entry consists of the DN of the entry, followed by the octet 0x02, followed by a 0x02-octet separated list of attribute values. An attribute value consists of an attribute type, followed by the octet 0x01, followed by a 0x01-octet separated list of values. Each attribute type, attribute value and distinguished name has the form defined by the QUIPU EDB format.Howes, Smith, & Beecher [Page 4]RFC 1249 DIXIE August 19912.2.2 Search The DIXIE search operation corresponds to an X.500 DAP SEARCH operation.2.2.2.1 Search Request The header opcode should be set to 0x0f. Octet 11 in the header should be set to 0x01, 0x02, or 0x03, for a search scope of base object, one level, or whole subtree, respectively. The data portion of the packet consists of the DN of the entry from which to start the search, a null octet, a string containing the search filter (dish- style), a null-octet, and then a null-octet separated list of attributes whose values are to be returned from the search. If no attributes to return are listed, all attributes are returned. The packet is terminated by two null octets in a row.2.2.2.2 Search Reply The reply data to the search operation consists of two octets in network byte order specifying the number of matches returned. Next comes this number of sequences of the form: one 0x03 octet followed by one entry. Each entry is as described above in section 2.2.1.2.2.2.3 List The DIXIE list operation corresponds to an X.500 DAP LIST operation.2.2.3.1 List Request The header opcode should be set to 0x10. The data portion of the packet consists of the DN of the entry on which to perform the list, followed by a null octet.2.2.3.2 List Reply The reply data to the list operation consists of two octets in network byte order specifying the number of subordinates returned, followed by this number of sequences of the form: one 0x03 octet followed by a Relative Distinguished Name of a subordinate.2.2.4 Modify The DIXIE modify operation corresponds to an X.500 DAP MODIFY operation.Howes, Smith, & Beecher [Page 5]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -