�g�b�v�y�[�W - �|��h�L�������g - RFC 2251
�����Fftp://ftp.rfc-editor.org/in-notes/rfc2251.txt
�����Ƃ̑Ζ�Ƃ��ēǂ݂������ցF���̃y�[�W�����[�J���ɕۑ����āA�X�^�C���V�[�g�� original �N���X�� display ������ none ���� block �ɕύX���Ă݂Ă��������B
This document specifies an Internet standards track protocol for the Internet community, and requests discussion and suggestions for improvements. Please refer to the current edition of the "Internet Official Protocol Standards" (STD 1) for the standardization state and status of this protocol. Distribution of this memo is unlimited. ���̕����̓C���^�[�l�b�g�R�~���j�e�B�̂��߂̃C���^�[�l�b�g�W���g���b�N�v���g�R�����K�肵�Ă���A���ǂ̂��߂̋c�_�ƒ�Ă����߂Ă���B���̃v���g�R���̕W�����̏�ԂƏɕt���Ă� "Internet Official Protocol Standards" (STD 1) �̍ŐV�ł��Q�Ƃ��Ăق����B���̕����̔z�z�ɐ����͂Ȃ��B
Copyright (C) The Internet Society (1997). All Rights Reserved.
This document describes a directory access protocol that provides both read and update access. Update access requires secure authentication, but this document does not mandate implementation of any satisfactory authentication mechanisms. ���̕����́A�ǂݎ��A�N�Z�X�ƍX�V�A�N�Z�X�Ƃ����f�B���N�g���A�N�Z�X�v���g�R����������Ă���B�X�V�A�N�Z�X�ɂ͈��S�ȔF��K�v�Ƃ��邪�A���̕����͂�������邢���Ȃ�F���J�j�Y���̎������������Ȃ��B
In accordance with RFC 2026, section 4.4.1, this specification is being approved by IESG as a Proposed Standard despite this limitation, for the following reasons: ���̐����ɂ�������炸�A���̎d�l�� RFC 2026 �� �Z�N�V���� 4.4.1 �ɂ��������āAIESG �ɂ�萄���W���Ƃ��ď��F���ꂽ�B���̗��R�͈ȉ��̒ʂ�ł���F
Readers are hereby warned that until mandatory authentication mechanisms are standardized, clients and servers written according to this specification which make use of update functionality are UNLIKELY TO INTEROPERATE, or MAY INTEROPERATE ONLY IF AUTHENTICATION IS REDUCED TO AN UNACCEPTABLY WEAK LEVEL. �����ɂ��ǎ҂́A�����I�ȔF���J�j�Y�����W���������܂ł́A���̎d�l�ɉ����ď����ꂽ�X�V�@�\���g�p����N���C�A���g�ƃT�[�o�[�Ƃ����݉^�p�ł���\�����Ⴂ���ƂƁA�F���e�F����قǂɒႢ���x���܂ʼn�����ꂽ�ꍇ�ɂ̂ݑ��݉^�p���\�ł��邱�ƂƂɒ��ӂ��Ȃ���Ȃ�Ȃ��B
Implementors are hereby discouraged from deploying LDAPv3 clients or servers which implement the update functionality, until a Proposed Standard for mandatory authentication in LDAPv3 has been approved and published as an RFC. �܂������ɂ������҂́ALDAPv3 �ɂ����鋭���I�ȔF�̂��߂̐����W�������F���� RFC �Ƃ��Č��J�����܂ł́A���̍X�V�@�\���������� LDAPv3 �N���C�A���g��T�[�o�[�̓W�J�𐄏�����Ȃ��B
The protocol described in this document is designed to provide access to directories supporting the X.500 models, while not incurring the resource requirements of the X.500 Directory Access Protocol (DAP). This protocol is specifically targeted at management applications and browser applications that provide read/write interactive access to directories. When used with a directory supporting the X.500 protocols, it is intended to be a complement to the X.500 DAP. ���̕����Ő�������Ă���v���g�R���́AX.500 �̃��f�����T�|�[�g�������ŁAX.500 Directory Access Protocol (DAP) �̃��\�[�X�v�����ۂ��Ȃ��f�B���N�g���A�N�Z�X�����悤�ɐv����Ă���B��̓I�Ɍ����Ƃ��̃v���g�R���́A�f�B���N�g���ւ̓ǂݎ��/�������݂̑Θb���A�N�Z�X�����Ǘ��A�v���P�[�V������u���E�U�A�v���P�[�V�������^�[�Q�b�g�ɂ��Ă���B�܂� X.500 �v���g�R�����T�|�[�g����f�B���N�g���Ƌ��Ɏg�p�����ꍇ�ɂ́AX.500 DAP ��⊮���邱�Ƃ�ړI�Ƃ��Ă���B
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", and "MAY" in this document are to be interpreted as described in RFC 2119 [10]. �������̃L�[���[�h "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY"�́A���ꂼ�� RFC 2119 [10] �Ő�������Ă���ʂ�ɉ��߂����B
Key aspects of this version of LDAP are: ���̃o�[�W������ LDAP �̏d�v�ȑ��ʂ͈ȉ��̒ʂ�F
Interest in X.500 [1] directory technologies in the Internet has led to efforts to reduce the high cost of entry associated with use of these technologies. This document continues the efforts to define directory protocol alternatives, updating the LDAP [2] protocol specification. �C���^�[�l�b�g�ɂ����� X.500 [1] �f�B���N�g���Z�p�ւ̋����������ꂽ���Ƃɂ��A���̋Z�p�̗��p�ɂ����鍂���Q���R�X�g���팸����w�͂��s����悤�ɂȂ����B���̕����� LDAP [2] �v���g�R���d�l���X�V���Ȃ���A�f�B���N�g���v���g�R���̑�֎�i���`����w�͂𑱂���B
The general model adopted by this protocol is one of clients performing protocol operations against servers. In this model, a client transmits a protocol request describing the operation to be performed to a server. The server is then responsible for performing the necessary operation(s) in the directory. Upon completion of the operation(s), the server returns a response containing any results or errors to the requesting client. ���̃v���g�R�����̗p�����ʓI���f���́A�N���C�A���g�Q�̓��̈�䂪�T�[�o�[�Q�ɑ��ăv���g�R��������s���Ƃ������̂ł���B���̃��f���ɂ����ăN���C�A���g�́A���s�����ׂ�������L�q�����v���g�R�����N�G�X�g���T�[�o�[�ɑ��M����B���̌�T�[�o�[�́A���̃f�B���N�g���ɂ����ĕK�v�ȑ�������s����ӔC�����B���̑�����������T�[�o�[�́A���N�G�X�g�𑗂��Ă����N���C�A���g�ɉ��炩�̌��ʂ܂��̓G���[���܂މ�����Ԃ��B
In keeping with the goal of easing the costs associated with use of the directory, it is an objective of this protocol to minimize the complexity of clients so as to facilitate widespread deployment of applications capable of using the directory. �f�B���N�g���̗��p�Ɋ֘A����R�X�g���y������Ƃ����ڕW�ƍ��킹�āA�f�B���N�g�����g�p����A�v���P�[�V�����̍L�͈͂ɂ킽��W�J�𑣐i���邽�߂ɁA�N���C�A���g�̕��G�����ŏ������邱�Ƃ����̃v���g�R���̖ڕW�ł���B
Note that although servers are required to return responses whenever such responses are defined in the protocol, there is no requirement for synchronous behavior on the part of either clients or servers. Requests and responses for multiple operations may be exchanged between a client and server in any order, provided the client eventually receives a response for every request that requires one. ���̃v���g�R���ɂ����ĉ��炩�̉�������`����Ă���ꍇ�ɂ́A�T�[�o�[�͏�ɂ��̉�����Ԃ����Ƃ�v������邪�A�N���C�A���g�܂��̓T�[�o�[�̂ǂ��炩�̑��œ������ē��삷�邱�Ƃ����߂�v���͂Ȃ����Ƃɒ��ӂ��Ăق����B�N���C�A���g�E�T�[�o�[�Ԃŕ����̑���̗v���Ɖ����Ƃ��ǂ̂悤�ȏ����Ō�������Ă��悢���A���̏ꍇ�N���C�A���g���A������K�v�Ƃ��邷�ׂĂ̗v���ɑ��鉞�����ŏI�I�ɂ͎�邱�Ƃ������ł���B
In LDAP versions 1 and 2, no provision was made for protocol servers returning referrals to clients. However, for improved performance and distribution this version of the protocol permits servers to return to clients referrals to other servers. This allows servers to offload the work of contacting other servers to progress operations. LDAP �̃o�[�W���� 1 ����� 2 �ł́A�N���C�A���g�ɎQ�Ƃ�Ԃ��v���g�R���T�[�o�[�ɑ���������Ȃ������B�������Ȃ��炱�̃o�[�W�����́A�p�t�H�[�}���X�̉��P�ƕ��U�����Ƃ̂��߂ɁA�T�[�o�[���N���C�A���g�ɑ��̃T�[�o�[�ւ̎Q�Ƃ�Ԃ����Ƃ������Ă���B����ɂ��T�[�o�[�́A�����i�߂邽�߂ɑ��T�[�o�[�ƘA�g�����Ƃ���J�������B
Note that the core protocol operations defined in this document can be mapped to a strict subset of the X.500(1997) directory abstract service, so it can be cleanly provided by the DAP. However there is not a one-to-one mapping between LDAP protocol operations and DAP operations: server implementations acting as a gateway to X.500 directories may need to make multiple DAP requests. ���̕����Œ�`������ȃv���g�R������̓f�B���N�g�����ۉ��T�[�r�X X.500(1997) �̊��S�ȃT�u�Z�b�g�Ƀ}�b�s���O�ł��邽�߁ADAP �ɂ�����Y��ɒł��邱�Ƃɒ��ӂ��Ăق����B�������Ȃ���ALDAP �v���g�R���̑���� DAP �̑���Ƃ̊Ԃ� 1 �� 1 �̃}�b�s���O�͐������Ȃ����߁AX.500 �f�B���N�g���ւ̃Q�[�g�E�F�C�Ƃ��ē��삷��T�[�o�[�����́A������ DAP ���N�G�X�g������K�v�����邩������Ȃ��B
This section provides a brief introduction to the X.500 data model, as used by LDAP. ���̃Z�N�V�����ł́ALDAP �Ŏg�p����Ă��� X.500 �̃f�[�^���f�����ȒP�ɏЉ��B
The LDAP protocol assumes there are one or more servers which jointly provide access to a Directory Information Tree (DIT). The tree is made up of entries. Entries have names: one or more attribute values from the entry form its relative distinguished name (RDN), which MUST be unique among all its siblings. The concatenation of the relative distinguished names of the sequence of entries from a particular entry to an immediate subordinate of the root of the tree forms that entry's Distinguished Name (DN), which is unique in the tree. An example of a Distinguished Name is LDAP �v���g�R���́A�f�B���N�g�����c���[(DIT:Directory Information Tree)�ւ̃A�N�Z�X��A�g���Ē���T�[�o�[�����܂��͕������݂���Ɖ��肷��B�f�B���N�g�����c���[�͕����̃G���g������\�������B�G���g���͖��O�����B����͑��Ύ��ʖ�(RDN:relative distinguished name)���`������G���g���ɗR������ЂƂȏ�̑����l�ł���A���̌Z��G���g���̒��Ń��j�[�N�łȂ���Ȃ�Ȃ�(MUST)�B����̃G���g�����炻�̃c���[�̃��[�g�����܂ł̈�A�̃G���g���̑��Ύ��ʖ���A���������̂́A���̃G���g���̎��ʖ�(DN:Distinguished Name)�ƂȂ�A�c���[���Ń��j�[�N�ɂȂ�B���ʖ��͗Ⴆ�Ύ��̂悤�Ȃ��̂ł���B
CN=Steve Kille, O=Isode Limited, C=GB
Some servers may hold cache or shadow copies of entries, which can be used to answer search and comparison queries, but will return referrals or contact other servers if modification operations are requested. �T�[�o�[�ɂ���Ă̓L���b�V����V���h�E�ɂ��G���g���̃R�s�[�������Ă���A�������r�̖₢���킹�ɓ����邽�߂ɂ�����g�p���Ă��悢�B�������C�������v�����ꂽ�ꍇ�ɂ́A�Q�Ƃ�Ԃ������̃T�[�o�[�ƘA�g���邱�ƂɂȂ邾�낤�B
Servers which perform caching or shadowing MUST ensure that they do not violate any access control constraints placed on the data by the originating server. �L���b�V����V���h�E�����s����T�[�o�[�́A�I���W�i���̃T�[�o�[���f�[�^�ɉۂ��Ă������ׂẴA�N�Z�X�R���g���[���̐���Ɉᔽ���Ȃ����Ƃ�ۏ��Ȃ���Ȃ�Ȃ�(MUST)�B
The largest collection of entries, starting at an entry that is mastered by a particular server, and including all its subordinates and their subordinates, down to the entries which are mastered by different servers, is termed a naming context. The root of the DIT is a DSA-specific Entry (DSE) and not part of any naming context: each server has different attribute values in the root DSE. (DSA is an X.500 term for the directory server). �G���g���̍ő�W��(�������̃T�[�o�[�z���̃G���g������n�܂�A���̉��ʑw�Ƃ���ɂ��̉��ʑw���܂݁A���̃T�[�o�[�z���̃G���g���܂Ŏ���)�́A���O�t���R���e�L�X�g�ƌĂ��BDIT �̃��[�g�� DSA-�ŗL�G���g��(DSE:DSA-specific Entry)�ł���A�����Ȃ閼�O�t���R���e�L�X�g�̈ꕔ�ł��Ȃ��B�e�X�̃T�[�o�[�̓��[�g DSE �ɂ����ĈقȂ鑮���l�����B(DSA �̓f�B���N�g���T�[�o�[��\�� X.500 �̗p��ł���)�B
Entries consist of a set of attributes. An attribute is a type with one or more associated values. The attribute type is identified by a short descriptive name and an OID (object identifier). The attribute type governs whether there can be more than one value of an attribute of that type in an entry, the syntax to which the values must conform, the kinds of matching which can be performed on values of that attribute, and other functions. �G���g���͑����̏W������\�������B�����͂ЂƂȏ�̊֘A����l�����^�ł���B�����̌^�͒Z���L�q���� OID(�I�u�W�F�N�g���ʎq)�Ƃɂ���Ď��ʂ����B�����̌^�́A�ЂƂ̃G���g�����ɂ��̌^�̑����l�� 2 �ȏ㑶�݂ł��邩�ǂ����A�l���]��Ȃ���Ȃ�Ȃ����@�A���̑����̒l�ɑ��čs���錟���̎�ށA����т��̑��̋@�\�����肷��B
An example of an attribute is "mail". There may be one or more values of this attribute, they must be IA5 (ASCII) strings, and they are case insensitive (e.g. "[email protected]" will match "[email protected]"). �����̈��� "mail" �ł���B���̑����ɂ͂ЂƂȏ�̒l�����݂��Ă��悭�A����� IA5 (ASCII) ������łȂ���Ȃ炸�A�啶���E����������ʂ���Ȃ�(�Ⴆ�� "[email protected]" �� "[email protected]" �ɓ�����)�B
Schema is the collection of attribute type definitions, object class definitions and other information which a server uses to determine how to match a filter or attribute value assertion (in a compare operation) against the attributes of an entry, and whether to permit add and modify operations. The definition of schema for use with LDAP is given in [5] and [6]. Additional schema elements may be defined in other documents. �X�L�[�}�́A�����̌^�̒�`�ƃI�u�W�F�N�g�N���X�̒�`�A����сA�G���g���̑����ɑ���(��r����ɂ�����)�t�B���^�⑮���l�A�T�[�V�������T�[�o�[����v��������@�ƁA�lj���C���̑���������邩�ǂ������T�[�o�[�����f���邽�߂̑��̏��Ƃ̏W���ł���BLDAP �Ƌ��Ɏg�p���邽�߂̃X�L�[�}�̒�`�� [5] �� [6] �ƂɋL�q����Ă���B���̕����Œlj��̃X�L�[�}�v�f����`����Ă��悢�B
Each entry MUST have an objectClass attribute. The objectClass attribute specifies the object classes of an entry, which along with the system and user schema determine the permitted attributes of an entry. Values of this attribute may be modified by clients, but the objectClass attribute cannot be removed. Servers may restrict the modifications of this attribute to prevent the basic structural class of the entry from being changed (e.g. one cannot change a person into a country). When creating an entry or adding an objectClass value to an entry, all superclasses of the named classes are implicitly added as well if not already present, and the client must supply values for any mandatory attributes of new superclasses. �e�X�̃G���g���� objectClass �����������Ȃ���Ȃ�Ȃ�(MUST)�BobjectClass �����́A�V�X�e���ƃ��[�U�[�X�L�[�}�Ƃ��G���g���ɋ�����鑮�������肷��I�u�W�F�N�g�N���X����肷��B�N���C�A���g�͂��̑����̒l��ύX���Ă��悢���AobjectClass �������폜���邱�Ƃ͂ł��Ȃ��B�T�[�o�[�́A�G���g���̊�{�\���N���X���ύX�����̂�h������(�Ⴆ�� "�l" �� "��" �ɕύX�ł��Ȃ��悤�ɂ��邽��)�ɁA�����̕ύX�𐧌����Ă��悢�B�G���g����������A�G���g���� objectClass �̒l��lj������肷��ƁA���̃N���X�̑S��ʃN���X��(���݂��Ă��Ȃ����)�ÖٓI�ɒlj�����A�N���C�A���g�͐V������ʃN���X�̂��ׂĂ̕K�{�����̒l����Ȃ���Ȃ�Ȃ��B
Some attributes, termed operational attributes, are used by servers for administering the directory system itself. They are not returned in search results unless explicitly requested by name. Attributes which are not operational, such as "mail", will have their schema and syntax constraints enforced by servers, but servers will generally not make use of their values. ���쑮���ƌĂ��ꕔ�̑����̓f�B���N�g���V�X�e�����̂��Ǘ����邽�߂ɃT�[�o�[�ɂ���Ďg�p����A�����I�ɖ��O�ŗv������Ȃ����茟�����ʂƂ��ĕԂ���邱�Ƃ͂Ȃ��B"mail" �̂悤��(����ł͂Ȃ�)�����́A�T�[�o�[�ɂ���ċ��������X�L�[�}�ƕ��@�����Ƃ������A��ʂɃT�[�o�[�͂��̒l�𗘗p���Ȃ��B
Servers MUST NOT permit clients to add attributes to an entry unless those attributes are permitted by the object class definitions, the schema controlling that entry (specified in the subschema - see below), or are operational attributes known to that server and used for administrative purposes. Note that there is a particular objectClass 'extensibleObject' defined in [5] which permits all user attributes to be present in an entry. �I�u�W�F�N�g�N���X�̒�`�ɂ���ċ�����Ă��邩�A���̃G���g���𐧌䂷��X�L�[�}(��q�̃T�u�X�L�[�}�œ��肳���)���A�T�[�o�[�ɑ��쑮���Ƃ��Ēm���Ă���Ǘ��ړI�ŗ��p�����̂ł͂Ȃ�����A�T�[�o�[�́A�N���C�A���g���G���g���ɑ�����lj����邱�Ƃ������Ă͂Ȃ�Ȃ�(MUST NOT)�B[5] �Œ�`����Ă�����ʂ� objectClass�A'extensibleObject' �����݂��A����ɂ�肠���郆�[�U�[�������G���g�����ɑ��݂������邱�Ƃɒ��ӂ��Ăق����B
Entries MAY contain, among others, the following operational attributes, defined in [5]. These attributes are maintained automatically by the server and are not modifiable by clients: �G���g���� [5] �Œ�`����Ă���ȉ��̑��쑮����(���̑��쑮���ɉ�����)�����Ƃ��ł���(MAY)�B�����̑����̓T�[�o�[�ɂ���Ď����I�ɕێ炳�����̂ł���A�N���C�A���g�ɂ��ύX�͂ł��Ȃ��F
Subschema entries are used for administering information about the directory schema, in particular the object classes and attribute types supported by directory servers. A single subschema entry contains all schema definitions used by entries in a particular part of the directory tree. �T�u�X�L�[�}�G���g���́A�f�B���N�g���X�L�[�}(��̓I�Ɍ����ƁA�f�B���N�g���T�[�o�[���T�|�[�g����I�u�W�F�N�g�N���X�Ƒ����^)�Ɋւ�������Ǘ����邽�߂Ɏg�p�����B�P��̃T�u�X�L�[�}�G���g���ɂ́A�f�B���N�g���c���[�̓���̕����ɂ����ăG���g�����g�p����S�ẴX�L�[�}��`���܂܂��B
Servers which follow X.500(93) models SHOULD implement subschema using the X.500 subschema mechanisms, and so these subschemas are not ordinary entries. LDAP clients SHOULD NOT assume that servers implement any of the other aspects of X.500 subschema. A server which masters entries and permits clients to modify these entries MUST implement and provide access to these subschema entries, so that its clients may discover the attributes and object classes which are permitted to be present. It is strongly recommended that all other servers implement this as well. X.500(93) �̃��f���ɏ]���T�[�o�[�� X.500 �T�u�X�L�[�}���J�j�Y�����g�p���ăT�u�X�L�[�}����������ׂ��ł���(SHOULD)�A���̂��߂����̃T�u�X�L�[�}�͒ʏ�̃G���g���ł͂Ȃ��BLDAP �N���C�A���g�́AX.500 �T�u�X�L�[�}�̑��̓������T�[�o�[���������Ă���Ɖ��肵�Ȃ��ׂ��ł���(SHOULD NOT)�B���݂����Ă��悢�����ƃI�u�W�F�N�g�N���X�Ƃ��N���C�A���g����������悤�ɁA�G���g�����Ǘ�������N���C�A���g�ɂ����̃G���g���̕ύX���������肷��T�[�o�[�́A�����̃T�u�X�L�[�}�G���g���ւ̃A�N�Z�X��i����������ђ��Ȃ���Ȃ�Ȃ�(MUST)�B���̋@�\�́A���̃T�[�o�[�ł��������邱�Ƃ��������������B
The following four attributes MUST be present in all subschema entries: �ȉ��� 4 �̑����́A���ׂẴT�u�X�L�[�}�G���g���ɑ��݂��Ȃ���Ȃ�Ȃ�(MUST)�F
These are defined in [5]. Other attributes MAY be present in subschema entries, to reflect additional supported capabilities. These include matchingRules, matchingRuleUse, dITStructureRules, dITContentRules, nameForms and ldapSyntaxes. ������ [5] �Œ�`����Ă���B�lj��T�|�[�g���ꂽ�@�\�f���邽�߂ɁA���̑��̑������T�u�X�L�[�}�ɑ��݂��Ă��悢(MAY)�B�����ɂ� matchingRules�A matchingRuleUse�A dITStructureRules�A dITContentRules�A nameForms�A ldapSyntaxes ���܂܂��B
Servers SHOULD provide the attributes createTimestamp and modifyTimestamp in subschema entries, in order to allow clients to maintain their caches of schema information. �N���C�A���g���X�L�[�}���̃L���b�V����ێ�ł���悤�ɁA�T�[�o�[�̓T�u�X�L�[�}���ő��� createTimestamp �� modifyTimestamp �Ƃ����ׂ��ł���(SHOULD)�B
Clients MUST only retrieve attributes from a subschema entry by requesting a base object search of the entry, where the search filter is "(objectClass=subschema)". (This will allow LDAPv3 servers which gateway to X.500(93) to detect that subentry information is being requested.) �N���C�A���g�T�u�X�L�[�}�G���g�����瑮�����擾����ɂ́A�G���g���̃x�[�X�I�u�W�F�N�g�� "(objectClass=subschema)" �̃t�B���^����������v�����邱�Ƃɂ���Ă݂̂łȂ���Ȃ�Ȃ�(MUST)�B(����ɂ�� X.500(93) �ւ̃Q�[�g�E�F�C�ƂȂ� LDAPv3 �T�[�o�[�́A�T�u�G���g����v�����ꂽ���Ƃ����o�ł��邾�낤�B)
This document defines LDAP in terms of X.500 as an X.500 access mechanism. An LDAP server MUST act in accordance with the X.500(1993) series of ITU recommendations when providing the service. However, it is not required that an LDAP server make use of any X.500 protocols in providing this service, e.g. LDAP can be mapped onto any other directory system so long as the X.500 data and service model as used in LDAP is not violated in the LDAP interface. ���̕����́AX.500 �̊ϓ_���� LDAP �� X.500 �̃A�N�Z�X���J�j�Y���Ƃ��Ē�`����B���̃T�[�r�X����� LDAP �T�[�o�[�́AX.500(1993) �̈�A�� ITU �����ɂ��������ē��삵�Ȃ���Ȃ�Ȃ�(MUST)�B�������Ȃ��炱�̃T�[�r�X�����ɂ����� LDAP �T�[�o�[�́A�ǂ� X.500 �v���g�R�����g�p���邱�Ƃ��v������Ȃ��B�Ⴆ�� LDAP �́ALDAP �Ŏg�p����� X.500 �� �f�[�^�ƃT�[�r�X���f���Ƃ� LDAP �̃C���^�[�t�F�C�X�Ɉᔽ���Ȃ�����A���̂ǂ̃f�B���N�g���V�X�e���Ƀ}�b�v����邱�Ƃ��\�ł���B
An LDAP server MUST provide information about itself and other information that is specific to each server. This is represented as a group of attributes located in the root DSE (DSA-Specific Entry), which is named with the zero-length LDAPDN. These attributes are retrievable if a client performs a base object search of the root with filter "(objectClass=*)", however they are subject to access control restrictions. The root DSE MUST NOT be included if the client performs a subtree search starting from the root. LDAP �T�[�o�[�́A�������g�Ɋւ�����ƁA�e�T�[�o�[�ŗL�̑��̏��Ƃ���Ȃ���Ȃ�Ȃ�(MUST)�B����̓��[�g DSE (DSA �ŗL�G���g��)���Ɉʒu���鑮���̃O���[�v�Ƃ��ĕ\����A�����[���� LDAPDN �Ŏw�肳���B�t�B���^ "(objectClass=*)" ���g���ă��[�g�̃x�[�X�I�u�W�F�N�g���������s���邱�ƂŁA�N���C�A���g�͂����̑������擾�ł���(�������A�N�Z�X�R���g���[���̐���ɂ͂�������)�B�N���C�A���g�����[�g����n�܂�T�u�c���[�̌��������s�����ꍇ�A����ɂ̓��[�g DSE ���܂܂�Ă͂Ȃ�Ȃ�(MUST NOT)�B
Servers may allow clients to modify these attributes. �T�[�o�[�̓N���C�A���g�ɂ����̑����̕ύX�������Ă��悢�B
The following attributes of the root DSE are defined in section 5 of [5]. Additional attributes may be defined in other documents. �ȉ��̃��[�g DSE �̑����� [5] �̃Z�N�V���� 5 �Œ�`����Ă���B���̕����Œlj��̑�������`����Ă��悢�B
If the server does not master entries and does not know the locations of schema information, the subschemaSubentry attribute is not present in the root DSE. If the server masters directory entries under one or more schema rules, there may be any number of values of the subschemaSubentry attribute in the root DSE. �T�[�o�[���G���g�����Ǘ����Ă��炸�A�X�L�[�}���̏ꏊ���m��Ȃ��ꍇ�A���[�g DSE �� subschemaSubentry �����͑��݂��Ȃ��B�T�[�o�[���ЂƂȏ�̃X�L�[�}�K���̉��Ńf�B���N�g���G���g�����Ǘ����Ă���ꍇ�A���[�g DSE �� subschemaSubentry �����̒l�����������݂��Ă��悢�B
The LDAP protocol is described using Abstract Syntax Notation 1 (ASN.1) [3], and is typically transferred using a subset of ASN.1 Basic Encoding Rules [11]. In order to support future extensions to this protocol, clients and servers MUST ignore elements of SEQUENCE encodings whose tags they do not recognize. LDAP �v���g�R���͒��ۍ\���L�@ 1 (ASN.1)���g�p���ċL�q����A�ʏ�� ASN.1 ��{�G���R�[�h�K��(ASN.1 Basic Encoding Rules)[11] �̃T�u�Z�b�g���g�p���ē]�������B���̃v���g�R���̏����̊g�����T�|�[�g���邽�߂ɁA�N���C�A���g�ƃT�[�o�[�͎��g���F���ł��Ȃ��^�O������ SEQUENCE �G���R�[�h�̗v�f�����Ȃ���Ȃ�Ȃ�(MUST)�B
Note that unlike X.500, each change to the LDAP protocol other than through the extension mechanisms will have a different version number. A client will indicate the version it supports as part of the bind request, described in section 4.2. If a client has not sent a bind, the server MUST assume that version 3 is supported in the client (since version 2 required that the client bind first). X.500 �Ƃ͈قȂ�A�g�����J�j�Y���ȊO�̕��@�ɂ�� LDAP �v���g�R���̕ύX�́A���ꂼ��قȂ�o�[�W�����ԍ��������ƂɂȂ�B�N���C�A���g�̓Z�N�V���� 4.2 �Ő�������Ă��� Bind Request �̈ꕔ�Ƃ��āA���g���T�|�[�g����o�[�W���������B�N���C�A���g���o�C���h�𑗐M���Ȃ������ꍇ�A�T�[�o�[�͂��̃N���C�A���g���o�[�W���� 3 ���T�|�[�g���Ă���Ɖ��肵�Ȃ���Ȃ�Ȃ�(MUST)(�o�[�W���� 2 �ł́A�ŏ��ɃN���C�A���g���o�C���h���邱�Ƃ��K�{�ł��邽��)�B
Clients may determine the protocol version a server supports by reading the supportedLDAPVersion attribute from the root DSE. Servers which implement version 3 or later versions MUST provide this attribute. Servers which only implement version 2 may not provide this attribute. ���[�g DSE ���� supportedLDAPVersion ������ǂ݂Ƃ邱�Ƃɂ���āA�N���C�A���g�̓T�[�o�[���T�|�[�g����v���g�R���̃o�[�W�����f���Ă��悢�B�o�[�W���� 3 �܂��͂���ȍ~����������T�[�o�[�́A���̑�������Ȃ���Ȃ�Ȃ�(MUST)�B�o�[�W���� 2 �������������Ă���T�[�o�[�͂��̑�������Ȃ��Ă��悢�B
This section describes the LDAPMessage envelope PDU (Protocol Data Unit) format, as well as data type definitions which are used in the protocol operations. ���̃Z�N�V�����ł́ALDAPMessage �G���x���[�v PDU(�v���g�R���f�[�^���j�b�g)�̃t�H�[�}�b�g�A����уv���g�R������Ŏg�p�����f�[�^�^�̒�`���������B
For the purposes of protocol exchanges, all protocol operations are encapsulated in a common envelope, the LDAPMessage, which is defined as follows: �v���g�R�������̂��߂ɁA���ׂẴv���g�R������͋��ʃG���x���[�v LDAPMessage �ɃJ�v�Z���������B���̒�`�͈ȉ��̒ʂ�F
LDAPMessage ::= SEQUENCE { messageID MessageID, protocolOp CHOICE { bindRequest BindRequest, bindResponse BindResponse, unbindRequest UnbindRequest, searchRequest SearchRequest, searchResEntry SearchResultEntry, searchResDone SearchResultDone, searchResRef SearchResultReference, modifyRequest ModifyRequest, modifyResponse ModifyResponse, addRequest AddRequest, addResponse AddResponse, delRequest DelRequest, delResponse DelResponse, modDNRequest ModifyDNRequest, modDNResponse ModifyDNResponse, compareRequest CompareRequest, compareResponse CompareResponse, abandonRequest AbandonRequest, extendedReq ExtendedRequest, extendedResp ExtendedResponse }, controls [0] Controls OPTIONAL } MessageID ::= INTEGER (0 .. maxInt) maxInt INTEGER ::= 2147483647 -- (2^^31 - 1) --
The function of the LDAPMessage is to provide an envelope containing common fields required in all protocol exchanges. At this time the only common fields are the message ID and the controls. LDAPMessage �̖����́A�S�Ẵv���g�R�������ɂ����ĕK�v�Ƃ���鋤�ʃt�B�[���h�����G���x���[�v����邱�Ƃł���B���̂Ƃ��� messageID �� controls �Ƃ��������ʃt�B�[���h�ł���B
If the server receives a PDU from the client in which the LDAPMessage SEQUENCE tag cannot be recognized, the messageID cannot be parsed, the tag of the protocolOp is not recognized as a request, or the encoding structures or lengths of data fields are found to be incorrect, then the server MUST return the notice of disconnection described in section 4.4.1, with resultCode protocolError, and immediately close the connection. In other cases that the server cannot parse the request received by the client, the server MUST return an appropriate response to the request, with the resultCode set to protocolError. �N���C�A���g�����M���� PDU ���A LDAPMessage �� SEQUENCE �^�O��F���ł��Ȃ����AmessageID ����͂ł��Ȃ����AprotocolOp �̃^�O�����N�G�X�g�Ƃ��ĔF���ł��Ȃ����A�G���R�[�h�\���܂��̓f�[�^�t�B�[���h�����s���ł��邱�Ƃ����������ꍇ�A�T�[�o�[�̓Z�N�V���� 4.4.1 �Ő�������Ă���ؒf�ʒm(resultCode �� protocolError)��Ԃ��A�����ɐڑ�����Ȃ���Ȃ�Ȃ�(MUST)�B���̑��̗��R�ŃT�[�o�[���N���C�A���g�����M�������N�G�X�g����͂ł��Ȃ��ꍇ�A�T�[�o�[�͂��̃��N�G�X�g�ɑ��AresultCode �� protocolError ���Z�b�g�����K�ȉ�����Ԃ��Ȃ���Ȃ�Ȃ�(MUST)�B
If the client receives a PDU from the server which cannot be parsed, the client may discard the PDU, or may abruptly close the connection. ��͂ł��Ȃ� PDU ���T�[�o�[���������N���C�A���g�́A���� PDU �����Ă��悢���A�����ɐڑ�����Ă��悢�B
The ASN.1 type Controls is defined in section 4.1.12. ASN.1 �`���� Controls �̓Z�N�V���� 4.1.12 �Œ�`�����B
All LDAPMessage envelopes encapsulating responses contain the messageID value of the corresponding request LDAPMessage. �������J�v�Z��������S�Ă� LDAPMessage �G���x���[�v�́A���N�G�X�g�� LDAPMessage �ɑΉ����� messageID �̒l���܂ށB
The message ID of a request MUST have a value different from the values of any other requests outstanding in the LDAP session of which this message is a part. ���N�G�X�g�� messageID �́A���̃��b�Z�[�W���܂� LDAP �Z�b�V�������̑��̂��ׂẴ��N�G�X�g�ƈقȂ�l�������Ȃ���Ȃ�Ȃ�(MUST)�B
A client MUST NOT send a second request with the same message ID as an earlier request on the same connection if the client has not received the final response from the earlier request. Otherwise the behavior is undefined. Typical clients increment a counter for each request. �N���C�A���g�͈ȑO�̃��N�G�X�g�ɑ���ŏI���������Ȃ�����A�����ڑ����ňȑO�̃��N�G�X�g�Ɠ��� messageID �������N�G�X�g�𑗐M���Ă͂Ȃ�Ȃ�(MUST NOT)�B�����Ȃ���Γ���͖���`�ƂȂ�B�T�^�I�ȃN���C�A���g�͊e�X�̃��N�G�X�g���ɃJ�E���^��������B
A client MUST NOT reuse the message id of an abandonRequest or of the abandoned operation until it has received a response from the server for another request invoked subsequent to the abandonRequest, as the abandonRequest itself does not have a response. abandonResuest �̓��X�|���X�������Ȃ����߁AabandonRequest �ɑ����ČĂяo���ꂽ�ʂ̃��N�G�X�g�ɑ��鉞�����T�[�o�[�����M���Ȃ�����A�N���C�A���g�͂��� abandonRequest �₻��ɂ���Ē��~���ꂽ����� messageID ���ė��p���Ă͂Ȃ�Ȃ�(MUST NOT)�B
The LDAPString is a notational convenience to indicate that, although strings of LDAPString type encode as OCTET STRING types, the ISO 10646 [13] character set (a superset of Unicode) is used, encoded following the UTF-8 algorithm [14]. Note that in the UTF-8 algorithm characters which are the same as ASCII (0x0000 through 0x007F) are represented as that same ASCII character in a single byte. The other byte values are used to form a variable-length encoding of an arbitrary character. LDAPString �^�̕������ OCTET STRING �^�Ƃ��ăG���R�[�h����邪�ALDAPString �� UTF-8 �A���S���Y�� [14] �ɂ��������ăG���R�[�h���ꂽ ISO 10646 [13] �����Z�b�g(���j�R�[�h�̏�ʃZ�b�g)���g�p����Ă��邱�Ƃ�\�����߂̕\�L�@�ł���BURF-8 �A���S���Y���ɂ����� ASCII (0x000�`0x007F) �Ɠ��������́A�P��o�C�g�̓��� ASCII �����ŕ\������邱�Ƃɒ��ӂ��Ăق����B���̑��̃o�C�g�l�͔C�ӂ̕����̉ϒ��G���R�[�h���`�����邽�߂Ɏg�p�����B
LDAPString ::= OCTET STRING
The LDAPOID is a notational convenience to indicate that the permitted value of this string is a (UTF-8 encoded) dotted-decimal representation of an OBJECT IDENTIFIER. LDAPIOD �́A���̕�����ɋ������l��(UTF-8 �G���R�[�h���ꂽ) OBJECT IDENTIFIER �̃h�b�g���� 10 �i�\���ł��邱�Ƃ�\�����߂̕\�L�@�ł���B
LDAPOID ::= OCTET STRING
For example, ��
1.3.6.1.4.1.1466.1.2.3
An LDAPDN and a RelativeLDAPDN are respectively defined to be the representation of a Distinguished Name and a Relative Distinguished Name after encoding according to the specification in [4], such that LDAPDN �� RelativeLDAPDN �́A���ꂼ�� [4] �̎d�l�ɂ��������ăG���R�[�h���ꂽ��̎��ʖ�����ё��Ύ��ʖ��̕\���ł���ƒ�`�����F
<distinguished-name> ::= <name> <relative-distinguished-name> ::= <name-component>
where <name> and <name-component> are as defined in [4]. <name> �� <name-component> �� [4] �Œ�`����Ă���ʂ�ł���B
LDAPDN ::= LDAPString RelativeLDAPDN ::= LDAPString
Only Attribute Types can be present in a relative distinguished name component; the options of Attribute Descriptions (next section) MUST NOT be used in specifying distinguished names. ���Ύ��ʖ��̍\���v�f�̒��Ɍ���邱�Ƃ��ł���̂͑����^�����ł���B�I�v�V�����̑����L�q(���Z�N�V����)�����ʖ��̓���Ɏg�p���Ă͂Ȃ�Ȃ�(MUST NOT)�B
An AttributeType takes on as its value the textual string associated with that AttributeType in its specification. �����^(AttributeType)�͂��̒l�Ƃ��āA���̎d�l�ɂ����鑮���^�Ɋ֘A����e�L�X�g����������B
AttributeType ::= LDAPString
Each attribute type has a unique OBJECT IDENTIFIER which has been assigned to it. This identifier may be written as decimal digits with components separated by periods, e.g. "2.5.4.10". �e�X�̑����^�́A����Ɋ��蓖�Ă�ꂽ���j�[�N�� OBJECT IDENTIFIER �����B���̎��ʎq�͗Ⴆ�� "2.5.4.10" �̂悤�ȁA�\���v�f���s���I�h�ŋ���� 10 �i���l�Ƃ��ď������Ƃ��ł���B
A specification may also assign one or more textual names for an attribute type. These names MUST begin with a letter, and only contain ASCII letters, digit characters and hyphens. They are case insensitive. (These ASCII characters are identical to ISO 10646 characters whose UTF-8 encoding is a single byte between 0x00 and 0x7F.) �܂��d�l�́A�ЂƂ̑����^�ɂЂƂ܂��͕����̃e�L�X�g�������蓖�ĂĂ悢�B���O�͕����Ŏn�܂�AASCII �����A�����A�n�C�t���݂̂ō\������Ȃ���Ȃ�Ȃ�(MUST)�B�啶���E�������͋�ʂ���Ȃ��B(������ ASCII �����́A���� UTF-8 �G���R�[�h�� 0x00 ���� 0x7F �̒P�ƃo�C�g�ł��� ISO 10646 �����Ɠ���ł���B)
If the server has a textual name for an attribute type, it MUST use a textual name for attributes returned in search results. The dotted- decimal OBJECT IDENTIFIER is only used if there is no textual name for an attribute type. �T�[�o�[�������^�̂��߂̃e�L�X�g�������ꍇ�A�������ʂɕԂ���鑮���ɂ̓e�L�X�g�����g�p���Ȃ���Ȃ�Ȃ�(MUST)�B�����^�̂��߂̃e�L�X�g�������݂��Ȃ��ꍇ�ɂ̂݁A�h�b�g��� 10 �i���� OBJECT IDENTIFIER ���g�p�����B
Attribute type textual names are non-unique, as two different specifications (neither in standards track RFCs) may choose the same name. 2 �̈قȂ�d�l(�ǂ�����X�^���_�[�h�g���b�N RFC �ł͂Ȃ�)���������O��I������\�������邽�߁A�����^�̃e�L�X�g���̓��j�[�N�ł͂Ȃ��B
A server which masters or shadows entries SHOULD list all the attribute types it supports in the subschema entries, using the attributeTypes attribute. Servers which support an open-ended set of attributes SHOULD include at least the attributeTypes value for the 'objectClass' attribute. Clients MAY retrieve the attributeTypes value from subschema entries in order to obtain the OBJECT IDENTIFIER and other information associated with attribute types. �G���g�����Ǘ��܂��̓V���h�E���Ă���T�[�o�[�́AattributeTypes �������g�p���āA�T�u�X�L�[�}�G���g���ɂ����Ď��g���T�|�[�g���Ă���S�Ă̑����^�����X�g����ׂ��ł���(SHOULD)�B�����̖������W�����T�|�[�g����T�[�o�[�́A���Ȃ��Ƃ� 'objectClass' �����̂��߂� attributeType �l���܂ނׂ��ł���(SHOULD)�B�N���C�A���g�� OBJECT IDENTIFIER �Ƒ����^�Ɋ֘A���鑼�̏��Ƃ��擾���邽�߂ɁA�T�u�X�L�[�}�G���g������ attributeTypes �l���擾���Ă��悢(MAY)�B
Some attribute type names which are used in this version of LDAP are described in [5]. Servers may implement additional attribute types. LDAP �̂��̃o�[�W�����Ŏg�p����Ă���ꕔ�̑����^���� [5] �Ő�������Ă���B�T�[�o�[�͒lj��̑����^���������Ă��悢�B
An AttributeDescription is a superset of the definition of the AttributeType. It has the same ASN.1 definition, but allows additional options to be specified. They are also case insensitive. AttributeDescription �� AttributeType �̒�`�̏�ʃZ�b�g�ł���A���� ASN.1 ��`�������A�lj��I�v�V�����̎w�肪�\�ł���BAttributeDescription ���啶���E��������ʂ���Ȃ��B
AttributeDescription ::= LDAPString
A value of AttributeDescription is based on the following BNF: AttributeDescription �̒l�͈ȉ��� BNF �Ɋ�Â��F
<AttributeDescription> ::= <AttributeType> [ ";" <options> ] <options> ::= <option> | <option> ";" <options> <option> ::= <opt-char> <opt-char>* <opt-char> ::= ASCII-equivalent letters, numbers and hyphen
Examples of valid AttributeDescription: �L���� AttributeDescription �̗�F
cn userCertificate;binary
One option, "binary", is defined in this document. Additional options may be defined in IETF standards-track and experimental RFCs. Options beginning with "x-" are reserved for private experiments. Any option could be associated with any AttributeType, although not all combinations may be supported by a server. ���̕����ł͂ЂƂ̃I�v�V���� "binary" ����`����Ă���BIETF �X�^���_�[�h�g���b�N�Ǝ����I RFC �Ƃɂ����Ēlj��I�v�V��������`����Ă��悢�B"x-" �Ŏn�܂�I�v�V�����̓v���C�x�[�g�Ȏ����̂��߂ɗ\��Ă���B���Ƃ��T�[�o�[���S�Ă̑g�ݍ��킹���T�|�[�g���Ă��Ȃ��Ă��A�C�ӂ̃I�v�V������C�ӂ� AttributeType �Ɗ֘A�t���邱�Ƃ��ł���B
An AttributeDescription with one or more options is treated as a subtype of the attribute type without any options. Options present in an AttributeDescription are never mutually exclusive. Implementations MUST generate the <options> list sorted in ascending order, and servers MUST treat any two AttributeDescription with the same AttributeType and options as equivalent. A server will treat an AttributeDescription with any options it does not implement as an unrecognized attribute type. �ЂƂȏ�̃I�v�V���������� AttributeDescription �́A�I�v�V�����������Ȃ������^�̃T�u�^�C�v�Ƃ��Ĉ�����BAttributeDescription ���Ɍ����I�v�V�����݂͌��ɔr���I�ł͂Ȃ��B�����́A�����Ƀ\�[�g���ꂽ <�I�v�V����(options)> ���X�g�����Ȃ���ȂȂ�(MUST)�B�܂��T�[�o�[�́A���� AttributeType �ƃI�v�V�����Ƃ����ǂ� 2 �� AttributeDescription �������Ɉ���Ȃ���Ȃ�Ȃ�(MUST)�B�T�[�o�[�́A��������Ă��Ȃ��I�v�V���������� AttributeDescription ��F���ł��Ȃ������^�Ƃ��Ĉ������낤�B
The data type "AttributeDescriptionList" describes a list of 0 or more attribute types. (A list of zero elements has special significance in the Search request.) �f�[�^�^�C�v "AttributeDescriptionList" �́A�[���ȏ�̑����^�̃��X�g���L�q����B(�v�f���[���̃��X�g�� Search ���N�G�X�g�ɂ����ē��ʂȈӖ������B)
AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
If the "binary" option is present in an AttributeDescription, it overrides any string-based encoding representation defined for that attribute in [5]. Instead the attribute is to be transferred as a binary value encoded using the Basic Encoding Rules [11]. The syntax of the binary value is an ASN.1 data type definition which is referenced by the "SYNTAX" part of the attribute type definition. AttributeDescription �̒��� "�o�C�i��(binary)" �I�v�V���������ꂽ�ꍇ�A����� [5] �ɂ����đ����̂��߂ɒ�`����Ă��邷�ׂĂ̕�����x�[�X�̃G���R�[�h�\�����㏑�����A����ɂ��̑����́A��{�G���R�[�h�K��(Basic Encoding Rules)[11] ���g�p���ăG���R�[�h���ꂽ�o�C�i���l�Ƃ��ĕϊ������B�o�C�i���l�̍\���́A����^��`�� "SYNTAX" ���Ɍ����� ASN.1 �f�[�^�^��`�ł���B
The presence or absence of the "binary" option only affects the transfer of attribute values in protocol; servers store any particular attribute in a single format. If a client requests that a server return an attribute in the binary format, but the server cannot generate that format, the server MUST treat this attribute type as an unrecognized attribute type. Similarly, clients MUST NOT expect servers to return an attribute in binary format if the client requested that attribute by name without the binary option. "�o�C�i��(binary)" �I�v�V�����̗L���̓v���g�R���ɂ����鑮���l�̕ϊ��ɂ̂݉e�����A�T�[�o�[�͒P��t�H�[�}�b�g�̒��ɔC�ӂ̑�����ۑ�����B�N���C�A���g���T�[�o�[�Ƀo�C�i���t�H�[�}�b�g�̑�����Ԃ����Ƃ�v���������A�T�[�o�[�����̃t�H�[�}�b�g���ł��Ȃ��ꍇ�A�T�[�o�[�͂����F���ł��Ȃ������^�Ƃ��Ĉ���Ȃ���Ȃ�Ȃ�(MUST)�B�����悤�ɁA�N���C�A���g���o�C�i���I�v�V������t�����ɖ��O�ɂ���đ�����v�������ꍇ�A�N���C�A���g�̓T�[�o�[���炻�̑������o�C�i���t�H�[�}�b�g�ŕԂ���邱�Ƃ����҂��Ă͂Ȃ�Ȃ�(MUST NOT)�B
This option is intended to be used with attributes whose syntax is a complex ASN.1 data type, and the structure of values of that type is needed by clients. Examples of this kind of syntax are "Certificate" and "CertificateList". ���̃I�v�V�����͍\�������G�� ASN.1 �f�[�^�^�̑����Ƌ��Ɏg�p����邱�Ƃ��Ӑ}���Ă���A���̌^�̒l�̍\���̓N���C�A���g�ɂ���ĕK�v�Ƃ����B���̎�̕��@�̗�́A"Certificate" �� "CertificateList" �ł���B
A field of type AttributeValue takes on as its value either a string encoding of a AttributeValue data type, or an OCTET STRING containing an encoded binary value, depending on whether the "binary" option is present in the companion AttributeDescription to this AttributeValue. AttributeValue �^�̃t�B�[���h�́A"�o�C�i��(binary)" �I�v�V���������� AttributeValue �Ƌ��� AttributeDescription �Ɍ���邩�ǂ����ɂ���āAAttributeValue �f�[�^�^�̕�����G���R�[�h�A�܂��̓G���R�[�h�ς݃o�C�i���l���܂� OCTET STRING �̂ǂ��炩�����̒l�Ƃ��Ď��B
The definition of string encodings for different syntaxes and types may be found in other documents, and in particular [5]. �قȂ�\���ƌ^�Ƃ̂��߂̕�����G���R�[�h�̒�`�́A���̕���(��̓I�ɂ� [5])�Ɍ������邾�낤�B
AttributeValue ::= OCTET STRING
Note that there is no defined limit on the size of this encoding; thus protocol values may include multi-megabyte attributes (e.g. photographs). ���̃G���R�[�h�̃T�C�Y�ɂ͒�`��̐������Ȃ����߁A�v���g�R���l�͐����K�o�C�g�̑���(�Ⴆ�Ύʐ^)���܂މ\�������邱�Ƃɒ��ӂ��Ăق����B
Attributes may be defined which have arbitrary and non-printable syntax. Implementations MUST NEITHER simply display nor attempt to decode as ASN.1 a value if its syntax is not known. The implementation may attempt to discover the subschema of the source entry, and retrieve the values of attributeTypes from it. �C�ӂ̈���s�\�ȍ\��������������`����Ă悢�B�l�̍\�������m�̏ꍇ�A�����͂��̒l�� ASN.1 �Ƃ��ĒP���ɉ�ǂ����݂Ă͂Ȃ�Ȃ�(MUST NOT)���A�\�����Ă͂Ȃ�Ȃ�(MUST NOT)�B�����͌��̃G���g���̃T�u�X�L�[�}��T���A�������� attributeTypes �̒l���擾���悤�Ǝ��݂Ă��悢�B
Clients MUST NOT send attribute values in a request which are not valid according to the syntax defined for the attributes. �N���C�A���g�̓��N�G�X�g�ɂ����āA���̑����̂��߂ɒ�`���ꂽ�\���ɂ��������Ă��Ȃ������ȑ����l�𑗐M���Ă͂Ȃ�Ȃ�(MUST NOT)�B
The AttributeValueAssertion type definition is similar to the one in the X.500 directory standards. It contains an attribute description and a matching rule assertion value suitable for that type. AttributeValueAssertion �^�̒�`�́AX.500 �f�B���N�g���W���̂���Ɠ����ł���B����͑����̐����ƁA���̌^�ɓK������v�K���̃A�T�[�V�����l�Ƃ��܂ށB
AttributeValueAssertion ::= SEQUENCE { attributeDesc AttributeDescription, assertionValue AssertionValue } AssertionValue ::= OCTET STRING
If the "binary" option is present in attributeDesc, this signals to the server that the assertionValue is a binary encoding of the assertion value. "�o�C�i��(binary)" �I�v�V������ attributeDesc �Ɍ��ꂽ�ꍇ�A����� assertionValue �����̃A�T�[�V�����l�̃o�C�i���G���R�[�h�ł��邱�Ƃ��T�[�o�[�ɒm�点��B
For all the string-valued user attributes described in [5], the assertion value syntax is the same as the value syntax. Clients may use attribute values as assertion values in compare requests and search filters. [5] �Ő�������Ă��镶����l�������ׂẴ��[�U�[�����̏ꍇ�A�A�T�[�V�����l�̍\���͒l�̍\���Ɠ����ł���BCompare Request �ƌ����t�B���^�Ƃɂ����ăN���C�A���g�́A���[�U�[�����l���A�T�[�V�����l�Ƃ��Ďg�p���Ă悢�B
Note however that the assertion syntax may be different from the value syntax for other attributes or for non-equality matching rules. These may have an assertion syntax which contains only part of the value. See section 20.2.1.8 of X.501 [6] for examples. �������Ȃ���A�T�[�V�����̍\���́A���̑����̂��߁A�܂��͕s��v�K���̂��߂̒l�̍\��(�����͒l�̈ꕔ�������܂ރA�T�[�V�����̍\���������Ƃ��ł���)�Ƃ͈قȂ��Ă��悢���Ƃɒ��ӂ��Ăق����B��ɕt���Ă� X.501 [6] �̃Z�N�V���� 20.2.1.8 ���Q�Ƃ��Ăق����B
An attribute consists of a type and one or more values of that type. (Though attributes MUST have at least one value when stored, due to access control restrictions the set may be empty when transferred in protocol. This is described in section 4.5.2, concerning the PartialAttributeList type.) �ЂƂ̑����́A�ЂƂ̌^�ƁA�ЂƂȏ�̂��̌^�̒l����\�������B(�������ۑ������Ƃ��ɂ͏��Ȃ��Ƃ��ЂƂ̒l�������Ȃ���Ȃ�Ȃ�(MUST)���A�A�N�Z�X�R���g���[���ɂ�鐧���̂��߁A�v���g�R���ɂ����ē]�������ꍇ�ɂ͋�ɂȂ�\��������B����̓Z�N�V���� 4.5.2 �� PartialAttributeList �^�̕����Ő�������Ă���B)
Attribute ::= SEQUENCE { type AttributeDescription, vals SET OF AttributeValue }
Each attribute value is distinct in the set (no duplicates). The order of attribute values within the vals set is undefined and implementation-dependent, and MUST NOT be relied upon. �e�X�̑����l�͂��̏W�����ŋ�ʂ����(�d���͂Ȃ�)�Bvals �W�����ł̑����l�̏����͖���`�������ˑ��ł���̂ŁA����Ɉˑ����Ă͂Ȃ�Ȃ�(MUST NOT)�B
A matching rule is a means of expressing how a server should compare an AssertionValue received in a search filter with an abstract data value. The matching rule defines the syntax of the assertion value and the process to be performed in the server. ��v�K���́A���ۃf�[�^�l���������t�B���^���Ŏ���� AssertionValue ���T�[�o�[���ǂ̂悤�ɔ�r����ׂ�����\����i�ł���B��v�K���̓A�T�[�V�����l�̍\���ƁA�T�[�o�[��Ŏ��s�����ׂ������Ƃ��`����B
An X.501(1993) Matching Rule is identified in the LDAP protocol by the printable representation of its OBJECT IDENTIFIER, either as one of the strings given in [5], or as decimal digits with components separated by periods, e.g. "caseIgnoreIA5Match" or "1.3.6.1.4.1.453.33.33". LDAP �v���g�R���ɂ����� X.501(1993) �̈�v�K���́AOBJECT IDENTIFIER �̈���\�\���Ŏ��ʂ����B����� [5] �ŗ^�����镶����̂ЂƂA�܂��͊e�v�f���s���I�h�ŋ���� 10 �i���l�Ƃ��ĕ\����A�Ⴆ�� "caseIgnoreIA5Match" �� "1.3.6.1.4.1.453.33.33" �ƂȂ�B
MatchingRuleId ::= LDAPString
Servers which support matching rules for use in the extensibleMatch search filter MUST list the matching rules they implement in subschema entries, using the matchingRules attributes. The server SHOULD also list there, using the matchingRuleUse attribute, the attribute types with which each matching rule can be used. More information is given in section 4.4 of [5]. �����t�B���^ extensibleMatch ���g�p������v�K�����T�|�[�g����T�[�o�[�́A�T�u�X�L�[�}�G���g���ɂ����Ď������Ă����v�K�����AmatchingRules �������g�p���ă��X�g���Ȃ���Ȃ�Ȃ�(MUST)�B�܂��T�[�o�[�͂����� matchingRuleUse �������g�p���āA�g�p�\�Ȉ�v�K���̑����^���ƂɃ��X�g����ׂ��ł���(MUST)�B����ɑ����̏��� [5] �̃Z�N�V���� 4.4 �ŗ^������B
The LDAPResult is the construct used in this protocol to return success or failure indications from servers to clients. In response to various requests servers will return responses containing fields of type LDAPResult to indicate the final status of a protocol operation request. LDAPResult �́A�T�[�o�[���N���C�A���g�ɐ����܂��͎��s��Ԃ����߂Ɏg�p����\���̂ł���B���܂��܂ȃ��N�G�X�g�ւ̉����ɂ����āA�T�[�o�[�̓v���g�R������v���̍ŏI��Ԃ��������߂� LDAPResult �^�̃t�B�[���h���܂މ�����Ԃ��B
LDAPResult ::= SEQUENCE { resultCode ENUMERATED { success (0), operationsError (1), protocolError (2), timeLimitExceeded (3), sizeLimitExceeded (4), compareFalse (5), compareTrue (6), authMethodNotSupported (7), strongAuthRequired (8), -- 9 reserved -- referral (10), -- new adminLimitExceeded (11), -- new unavailableCriticalExtension (12), -- new confidentialityRequired (13), -- new saslBindInProgress (14), -- new noSuchAttribute (16), undefinedAttributeType (17), inappropriateMatching (18), constraintViolation (19), attributeOrValueExists (20), invalidAttributeSyntax (21), -- 22-31 unused -- noSuchObject (32), aliasProblem (33), invalidDNSyntax (34), -- 35 reserved for undefined isLeaf -- aliasDereferencingProblem (36), -- 37-47 unused -- inappropriateAuthentication (48), invalidCredentials (49), insufficientAccessRights (50), busy (51), unavailable (52), unwillingToPerform (53), loopDetect (54), -- 55-63 unused -- namingViolation (64), objectClassViolation (65), notAllowedOnNonLeaf (66), notAllowedOnRDN (67), entryAlreadyExists (68), objectClassModsProhibited (69), -- 70 reserved for CLDAP -- affectsMultipleDSAs (71), -- new -- 72-79 unused -- other (80) }, -- 81-90 reserved for APIs -- matchedDN LDAPDN, errorMessage LDAPString, referral [3] Referral OPTIONAL }
LDAPResult ::= SEQUENCE { resultCode ENUMERATED { success (0), operationsError (1), protocolError (2), timeLimitExceeded (3), sizeLimitExceeded (4), compareFalse (5), compareTrue (6), authMethodNotSupported (7), strongAuthRequired (8), -- 9 �͗\��ς� -- referral (10), -- �V�K adminLimitExceeded (11), -- �V�K unavailableCriticalExtension (12), -- �V�K confidentialityRequired (13), -- �V�K saslBindInProgress (14), -- �V�K noSuchAttribute (16), undefinedAttributeType (17), inappropriateMatching (18), constraintViolation (19), attributeOrValueExists (20), invalidAttributeSyntax (21), -- 22-31 �͖��g�p -- noSuchObject (32), aliasProblem (33), invalidDNSyntax (34), -- 35 �͖���`�� isLeaf �̂��߂ɗ\��ς� -- aliasDereferencingProblem (36), -- 37-47 �͖��g�p -- inappropriateAuthentication (48), invalidCredentials (49), insufficientAccessRights (50), busy (51), unavailable (52), unwillingToPerform (53), loopDetect (54), -- 55-63 �͖��g�p -- namingViolation (64), objectClassViolation (65), notAllowedOnNonLeaf (66), notAllowedOnRDN (67), entryAlreadyExists (68), objectClassModsProhibited (69), -- 70 �� CLDAP �̂��߂ɗ\��ς� -- affectsMultipleDSAs (71), -- �V�K -- 72-79 �͖��g�p -- other (80) }, -- 81-90 �� API �̂��߂ɗ\��ς� -- matchedDN LDAPDN, errorMessage LDAPString, referral [3] Referral OPTIONAL }
All the result codes with the exception of success, compareFalse and compareTrue are to be treated as meaning the operation could not be completed in its entirety. success�AcompareFalse�AcompareTrue �������S�Ă� resultCode �́A���삪���S�ɂ͏I�����Ă��Ȃ����Ƃ��Ӗ�������̂Ƃ��Ĉ�����B
Most of the result codes are based on problem indications from X.511 error data types. Result codes from 16 to 21 indicate an AttributeProblem, codes 32, 33, 34 and 36 indicate a NameProblem, codes 48, 49 and 50 indicate a SecurityProblem, codes 51 to 54 indicate a ServiceProblem, and codes 64 to 69 and 71 indicates an UpdateProblem. �啔���� resultCode �� X.511 �̃G���[�f�[�^��ʂɗR�������莦�������ɂ��Ă���B16 ���� 21 �� resultCode �� AttributeProblem�A32�E33�E34�E36 �� NameProblem�A48�E49�E50 �� SecurityProblem�A51 ���� 54 �� ServiceProblem�A64�E69�E71 �� UpdateProblem ��\���B
If a client receives a result code which is not listed above, it is to be treated as an unknown error condition. �N���C�A���g����L�̃��X�g�ɖ����G���[�R�[�h��������ꍇ�A����͖��m�̃G���[��ԂƂ��Ĉ�����ׂ��ł���B
The errorMessage field of this construct may, at the server's option, be used to return a string containing a textual, human-readable (terminal control and page formatting characters should be avoided) error diagnostic. As this error diagnostic is not standardized, implementations MUST NOT rely on the values returned. If the server chooses not to return a textual diagnostic, the errorMessage field of the LDAPResult type MUST contain a zero length string. ���̍\���̂� errorMessage �t�B�[���h�́A�T�[�o�[�̔��f�ɂ��A�ǃe�L�X�g�̃G���[�f�f���ʂ�Ԃ����߂Ɏg�p���邱�Ƃ��ł���(�������䕶���ƃy�[�W�t�H�[�}�b�g�����Ƃ͔�����ׂ��ł���)�B���̃G���[�f�f���ʂ͕W��������Ă��Ȃ����߁A�����͂����ŕԂ��ꂽ�l�Ɉˑ����Ă͂Ȃ�Ȃ�(MUST NOT)�B�T�[�o�[���e�L�X�g�̐f�f���ʂ�Ԃ����Ƃ�I�����Ȃ������ꍇ�ALDAPResult �� errorMessage �t�B�[���h�͒����[���̕�������܂܂Ȃ���Ȃ�Ȃ�(MUST)�B
For result codes of noSuchObject, aliasProblem, invalidDNSyntax and aliasDereferencingProblem, the matchedDN field is set to the name of the lowest entry (object or alias) in the directory that was matched. If no aliases were dereferenced while attempting to locate the entry, this will be a truncated form of the name provided, or if aliases were dereferenced, of the resulting name, as defined in section 12.5 of X.511 [8]. The matchedDN field is to be set to a zero length string with all other result codes. resultCode �� noSuchObject�A aliasProblem�A invalidDNSyntax�A aliasDereferencingProblem �̉��ꂩ�ꍇ�AmatchedDN �t�B�[���h�ɂ́A���̃f�B���N�g�����ň�v�����ʼn��ʃG���g��(�I�u�W�F�N�g�܂��̓G�C���A�X)�̖��O���Z�b�g�����B�G���g���ւ̈ʒu�t�������݂�ԂɃG�C���A�X�̋t�Q�Ƃ����������ꍇ�A���ꂽ���O����̂Ă�ꂽ�`�ƂȂ�A�G�C���A�X���t�Q�Ƃ��ꂽ�ꍇ�AX.511 [8] �̃Z�N�V���� 12.5 �Œ�`����Ă���ʂ�̌��ʖ�(resulting name)�ɂȂ�B���� resultCode �̏ꍇ�AmatchedDN �t�B�[���h�ɂ͒����[���̕����Z�b�g�����B
The referral error indicates that the contacted server does not hold the target entry of the request. The referral field is present in an LDAPResult if the LDAPResult.resultCode field value is referral, and absent with all other result codes. It contains a reference to another server (or set of servers) which may be accessed via LDAP or other protocols. Referrals can be returned in response to any operation request (except unbind and abandon which do not have responses). At least one URL MUST be present in the Referral. referral �G���[�́A�ʐM���̃T�[�o�[�����̃��N�G�X�g�̖ړI�G���g���������Ă��Ȃ����Ƃ�\���Breferral �t�B�[���h�� LDAPResult.resultCode �t�B�[���h�̒l�� referral �̏ꍇ�ɂ̂� LDAPResult �̒��Ɍ���A���̑��̌��ʃR�[�h�̏ꍇ�ɂ͌���Ȃ��Breferral �t�B�[���h�ɂ́ALDAP �܂��͂��̑��̃v���g�R���o�R�ŃA�N�Z�X�ł��鑼�̃T�[�o�[(�܂��̓T�[�o�[�̏W��)�ւ̎Q�Ƃ��܂܂��B���ׂĂ̑���v���̉����ɂ����� referral ��Ԃ����Ƃ��ł���(�����������Ȃ��A���o�C���h��j��������)�Breferral �̒��ɂ͏��Ȃ��Ƃ��ЂƂ� URL ������Ȃ���Ȃ�Ȃ�(MUST)�B
The referral is not returned for a singleLevel or wholeSubtree search in which the search scope spans multiple naming contexts, and several different servers would need to be contacted to complete the operation. Instead, continuation references, described in section 4.5.3, are returned. �����X�R�[�v�������̖��O�t���R���e�L�X�g�ɂ܂�����A������������邽�߂ɂ͕����̃T�[�o�[���A�g����K�v������悤�� singleLevel �����܂��� wholeSubtree �����ɑ��āAreferral ���Ԃ���邱�Ƃ͂Ȃ��B����ɁA�p���Q��(continuation references�F�Z�N�V���� 4.5.3 �Ő�������Ă���)���Ԃ����B
Referral ::= SEQUENCE OF LDAPURL -- one or more LDAPURL ::= LDAPString -- limited to characters permitted in URLs
Referral ::= SEQUENCE OF LDAPURL -- �ЂƂȏ� LDAPURL ::= LDAPString -- URL �ɋ�����镶���ɐ��������
If the client wishes to progress the operation, it MUST follow the referral by contacting any one of servers. All the URLs MUST be equally capable of being used to progress the operation. (The mechanisms for how this is achieved by multiple servers are outside the scope of this document.) �N���C�A���g������̐i�s��]�ޏꍇ�A�ǂꂩ�ЂƂ̃T�[�o�[�ɘA�����邱�Ƃɂ���āA���� referral �ɏ]��Ȃ���Ȃ�Ȃ�(MUST)�B�����S�Ă� URL �́A������i�s���邽�߂Ɏg�p�����\�͂��������Ȃ���Ȃ�Ȃ�(MUST)�B(�����̃T�[�o�[�������B�����郁�J�j�Y���͂��̕����͈̔͊O�ł���B)
URLs for servers implementing the LDAP protocol are written according to [9]. If an alias was dereferenced, the <dn> part of the URL MUST be present, with the new target object name. If the "dn" part is present, the client MUST use this name in its next request to progress the operation, and if it is not present the client will use the same name as in the original request. Some servers (e.g. participating in distributed indexing) may provide a different filter in a referral for a search operation. If the filter part of the URL is present in an LDAPURL, the client MUST use this filter in its next request to progress this search, and if it is not present the client MUST use the same filter as it used for that search. Other aspects of the new request may be the same or different as the request which generated the referral. LDAP �v���g�R������������T�[�o�[�̂��߂� URL �� [9] �ɂ��������ď������B�G�C���A�X���t�Q�Ƃ����ꍇ�A�V�����ړI�I�u�W�F�N�g�������� <dn" ���� URL �Ɍ���Ȃ���Ȃ�Ȃ�(MUST)�B���� "dn" ���������ꍇ�A�N���C�A���g�͑����i�s���邽�߂̎��̃��N�G�X�g�̒��ł��̖��O���g��Ȃ���Ȃ�Ȃ�(MUST)�B���� "dn" ��������Ȃ��ꍇ�A�N���C�A���g�͌��̃��N�G�X�g�Ɠ������O���g�p���邱�ƂɂȂ邾�낤�B�ꕔ�̃T�[�o�[(�Ⴆ�Ε��U�C���f�b�N�X�ɎQ�����Ă���T�[�o�[)�́ASearch Operation �̂��߂̎Q�Ƃɂ����ĈقȂ�t�B���^����Ă��悢�BURL �̃t�B���^���� LDAPURL �̒��Ɍ��ꂽ�ꍇ�A�N���C�A���g�͂��̌�����i�s���邽�߂̎��̃��N�G�X�g�ł��̃t�B���^���g�p���Ȃ���Ȃ�Ȃ�(MUST)�B�܂����̃t�B���^��������Ȃ��ꍇ�A�N���C�A���g�͂��̌����Ɏg�p�������̂Ɠ����t�B���^���g��Ȃ���Ȃ�Ȃ�(MUST)�B�V�������N�G�X�g�̂��̑��̓_�́A���̎Q�Ƃ��������N�G�X�g�Ɠ����ł������Ă��A�قȂ��Ă��Ă��悢�B
Note that UTF-8 characters appearing in a DN or search filter may not be legal for URLs (e.g. spaces) and MUST be escaped using the % method in RFC 1738 [7]. DN �̒��A�܂��͌����t�B���^�̒��Ɍ���� UTF-8 ����(�Ⴆ����)�� URL �Ƃ��Đ����ł͂Ȃ��\�������邽�߁ARFC 1738 [7] �� % �ɂ���@���g���ăG�X�P�[�v����Ȃ���Ȃ�Ȃ�(MUST)���Ƃɒ��ӂ��Ăق����B
Other kinds of URLs may be returned, so long as the operation could be performed using that protocol. �ʂ̎�ނ� URL ���Ԃ���Ă��悢���A���̑��삪���̃v���g�R�����g�p���Ď��s�\�ȏꍇ�Ɍ�����B
A control is a way to specify extension information. Controls which are sent as part of a request apply only to that request and are not saved. control �͊g�������w�肷�邽�߂̎�i�ł���B���N�G�X�g�̈ꕔ�Ƃ��đ��M����� controls �͂��̃��N�G�X�g�ɂ̂ݓK�p����A�ۑ��͂���Ȃ��B
Controls ::= SEQUENCE OF Control Control ::= SEQUENCE { controlType LDAPOID, criticality BOOLEAN DEFAULT FALSE, controlValue OCTET STRING OPTIONAL }
The controlType field MUST be a UTF-8 encoded dotted-decimal representation of an OBJECT IDENTIFIER which uniquely identifies the control. This prevents conflicts between control names. controlType �t�B�[���h�́A���� control ����ӂɎ��ʂ��� OBJECT IDENTIFIER �� UTF-8 �G���R�[�h���ꂽ�h�b�g��� 10 �i�\���łȂ���Ȃ�Ȃ�(MUST)�B����ɂ�� control �̖��O�̏Փ˂���������B
The criticality field is either TRUE or FALSE. criticality �t�B�[���h�� TRUE�AFALSE �̂ǂ��炩�ł���B
If the server recognizes the control type and it is appropriate for the operation, the server will make use of the control when performing the operation. �T�[�o�[�� controlType ��F�����A���ꂪ����ɑ��ēK�ł���A�T�[�o�[�͂��̑�������s����Ƃ��ɂ��� control ���g�p����B
If the server does not recognize the control type and the criticality field is TRUE, the server MUST NOT perform the operation, and MUST instead return the resultCode unsupportedCriticalExtension. �T�[�o�[�� controlType ��F�������Acriticality �t�B�[���h�� TRUE �̏ꍇ�A�T�[�o�[�͂��̑�������s���Ă͂Ȃ炸(MUST NOT)�A����� resultCode �� unsupportedCriticalExtension ��Ԃ��Ȃ���Ȃ�Ȃ�(MUST)�B
If the control is not appropriate for the operation and criticality field is TRUE, the server MUST NOT perform the operation, and MUST instead return the resultCode unsupportedCriticalExtension. control �����̑���ɑ��ēK�ł͂Ȃ��Acriticality �t�B�[���h�� TRUE �̏ꍇ�A�T�[�o�[�͂��̑�������s���Ă͂Ȃ炸(MUST NOT)�A����� resultCode �� unsupportedCriticalExtension ��Ԃ��Ȃ���Ȃ�Ȃ�(MUST)�B
If the control is unrecognized or inappropriate but the criticality field is FALSE, the server MUST ignore the control. control ���F������Ȃ��A�܂��͕s�K�ł��邪�Acriticality �t�B�[���h�� FALSE �̏ꍇ�A�T�[�o�[�͂��� control �����Ȃ���Ȃ�Ȃ�(MUST)�B
The controlValue contains any information associated with the control, and its format is defined for the control. The server MUST be prepared to handle arbitrary contents of the controlValue octet string, including zero bytes. It is absent only if there is no value information which is associated with a control of its type. controlValue �͂��� control �Ɋ֘A����C�ӂ̏����܂݁A�`���͂��� control �̂��߂ɒ�`���ꂽ���̂ƂȂ�B�T�[�o�[�� controlValue �̃I�N�e�b�g������(�[���o�C�g���܂�)�̔C�ӂ̓��e�������������ł��Ă��Ȃ���Ȃ�Ȃ�(MUST)�B���� controlType �Ɋ֘A����l�̏���݂��Ȃ��ꍇ�ɂ̂݁AcontrolValue �͑��݂��Ȃ��B
This document does not define any controls. Controls may be defined in other documents. The definition of a control consists of: ���̕����͂����Ȃ� control ����`���Ȃ��B�ʂ̕����� control ����`����Ă��悢�Bcontrol �̒�`�͈ȉ��̗v�f����\�������F
Servers list the controls which they recognize in the supportedControl attribute in the root DSE. �T�[�o�[�̓��[�g DSE �� supportedControl �����̒��ŁA���g���F������ control �����X�g����B
The function of the Bind Operation is to allow authentication information to be exchanged between the client and server. Bind Operation �̓N���C�A���g�ƃT�[�o�[�Ƃ̊ԂŔF�؏��̌������\�ɂ��邽�߂̋@�\�ł���B
The Bind Request is defined as follows: Bind Request �̒�`�͈ȉ��̒ʂ�F
BindRequest ::= [APPLICATION 0] SEQUENCE { version INTEGER (1 .. 127), name LDAPDN, authentication AuthenticationChoice } AuthenticationChoice ::= CHOICE { simple [0] OCTET STRING, -- 1 and 2 reserved sasl [3] SaslCredentials } SaslCredentials ::= SEQUENCE { mechanism LDAPString, credentials OCTET STRING OPTIONAL }
BindRequest ::= [APPLICATION 0] SEQUENCE { version INTEGER (1 .. 127), name LDAPDN, authentication AuthenticationChoice } AuthenticationChoice ::= CHOICE { simple [0] OCTET STRING, -- 1 �� 2 �͗\��ς� sasl [3] SaslCredentials } SaslCredentials ::= SEQUENCE { mechanism LDAPString, credentials OCTET STRING OPTIONAL }
Parameters of the Bind Request are: Bind Request �̃p�����[�^�͈ȉ��̒ʂ�F
Upon receipt of a Bind Request, a protocol server will authenticate the requesting client, if necessary. The server will then return a Bind Response to the client indicating the status of the authentication. Bind Request ����M�����v���g�R���T�[�o�[�́A�K�v�ł�����N�G�X�g���Ă����N���C�A���g��F����B���̌�T�[�o�[�́A�N���C�A���g�ɔF�̏�Ԃ�\�� Bind Response ��Ԃ��B
Authorization is the use of this authentication information when performing operations. Authorization MAY be affected by factors outside of the LDAP Bind request, such as lower layer security services. ���F�Ƃ́A��������s���鎞�ɂ��̔F�؏����g�p���邱�Ƃł���B���F�͉��ʑw�̃Z�L�����e�B�T�[�r�X�ȂǁALDAP Bind Request �̊O���̗v���ɂ��e�����Ă��悢(MAY)�B
For some SASL authentication mechanisms, it may be necessary for the client to invoke the BindRequest multiple times. If at any stage the client wishes to abort the bind process it MAY unbind and then drop the underlying connection. Clients MUST NOT invoke operations between two Bind requests made as part of a multi-stage bind. SASL �F���J�j�Y���ɂ���Ă̓N���C�A���g�� BindRequest ����Ăяo���K�v�����邾�낤�B�o�C���h�����������������N���C�A���g�́A�C�ӂ̒i�K�ŃA���o�C���h���s�����w�ڑ���ؒf���Ă悢(MAY)�B�N���C�A���g�͕����i�K�̃o�C���h�̈ꕔ�Ƃ��Ď��s����� 2 �� Bind Request �̊Ԃɑ�����Ăяo���Ă͂Ȃ�Ȃ�(MUST NOT)�B
A client may abort a SASL bind negotiation by sending a BindRequest with a different value in the mechanism field of SaslCredentials, or an AuthenticationChoice other than sasl. �N���C�A���g�́ASaslCredentials �� mechanism �t�B�[���h�ɈقȂ�l������ BindRequest�A�܂��� sasl �ȊO�� AuthenticationChoice ������ BindRequest �𑗐M���邱�Ƃɂ��ASASL �̃o�C���h�������������Ƃ��ł���B
If the client sends a BindRequest with the sasl mechanism field as an empty string, the server MUST return a BindResponse with authMethodNotSupported as the resultCode. This will allow clients to abort a negotiation if it wishes to try again with the same SASL mechanism. SASL mechanism �t�B�[���h�ɋ������� BindRequest ���N���C�A���g�����M�����ꍇ�A�T�[�o�[�� resultCode �Ƃ��� authMethodNotSupported ������ BindResponse ��Ԃ��Ȃ���Ȃ�Ȃ�(MUST)�B����ɂ��N���C�A���g�́A���� SASL ���J�j�Y���ōĎ��s�������ꍇ�Ɍ������������Ƃ��ł��邾�낤�B
Unlike LDAP v2, the client need not send a Bind Request in the first PDU of the connection. The client may request any operations and the server MUST treat these as unauthenticated. If the server requires that the client bind before browsing or modifying the directory, the server MAY reject a request other than binding, unbinding or an extended request with the "operationsError" result. LDAP v2 �Ƃ͈قȂ�A�N���C�A���g�͐ڑ��̍ŏ��� PDU �� Bind Request �𑗂�K�v�͂Ȃ��B�N���C�A���g�͔C�ӂ̑����v�����Ă悭�A�T�[�o�[�͂�����F����Ă��Ȃ����̂Ƃ��Ĉ���Ȃ���Ȃ�Ȃ�(MUST)�B�f�B���N�g���̌�����ύX�̑O�ɃN���C�A���g���o�C���h���邱�Ƃ�v������T�[�o�[�́ABind Request �܂��� Unbind Request �܂��� Extended Request �ȊO�̃��N�G�X�g���A"operationsError" �ɂ���ċ��ۂ��Ă��悢(MAY)�B
If the client did not bind before sending a request and receives an operationsError, it may then send a Bind Request. If this also fails or the client chooses not to bind on the existing connection, it will close the connection, reopen it and begin again by first sending a PDU with a Bind Request. This will aid in interoperating with servers implementing other versions of LDAP. ���N�G�X�g�𑗐M����O�Ƀo�C���h���Ă��Ȃ��N���C�A���g�� operationsError ��������ꍇ�A���̃N���C�A���g�͂��̌� BindRequest �𑗐M���Ă��悢�B����ɂ����s���邩�A�N���C�A���g�����݂̐ڑ��ł̓o�C���h���Ȃ����Ƃ�I������ꍇ�A�N���C�A���g�͐ڑ�����ĊJ�������ABind Request �����ŏ��� PDU �̑��M�����蒼�����ƂɂȂ邾�낤�B����͑��̃o�[�W������ LDAP ����������T�[�o�[�Ƃ̑��݉^�p�ɂ�����菕���ƂȂ邾�낤�B
Clients MAY send multiple bind requests on a connection to change their credentials. A subsequent bind process has the effect of abandoning all operations outstanding on the connection. (This simplifies server implementation.) Authentication from earlier binds are subsequently ignored, and so if the bind fails, the connection will be treated as anonymous. If a SASL transfer encryption or integrity mechanism has been negotiated, and that mechanism does not support the changing of credentials from one identity to another, then the client MUST instead establish a new connection. �ؖ�����ύX���邽�߂ɁA�N���C�A���g�͂ЂƂ̐ڑ��ɂ����ĕ����� Bind Request �𑗐M���Ă悢(MAY)�B�ォ��̃o�C���h�����́A���̐ڑ��Ŗ������̑�������ׂĔj��������ʂ����B(����ɂ��T�[�o�[�̎������ȒP�ɂȂ�B) ��̃o�C���h�ł̔F�͂���ȍ~���������B���������ăo�C���h�Ɏ��s����ƁA���̐ڑ��͓����Ƃ��Ĉ����邱�ƂɂȂ�BSASL �]���̈Í����܂��͊��S���̃��J�j�Y������茈�߂��Ă���A�����̃��J�j�Y��������F����ʂ̔F�ւ̏ؖ����̕ύX���T�|�[�g���Ă��Ȃ��ꍇ�A�N���C�A���g�͑���ɐV�����ڑ����m�����Ȃ���Ȃ�Ȃ�(MUST)�B
The simple authentication option provides minimal authentication facilities, with the contents of the authentication field consisting only of a cleartext password. Note that the use of cleartext passwords is not recommended over open networks when there is no authentication or encryption being performed by a lower layer; see the "Security Considerations" section. �P���F�I�v�V�����́Aauthentication �t�B�[���h�ɕ����p�X���[�h�݂̂��܂ލŒ���̔F�؋@�\�����B���w�ɂ����ĔF�܂��͈Í��������s����Ă��Ȃ��ꍇ�A���J���ꂽ�l�b�g���[�N��ł̕����p�X���[�h�̎g�p�͐�������Ȃ����Ƃɒ��ӂ��Ăق���("�Z�L�����e�B�l�@" �Z�N�V�������Q��)�B
If no authentication is to be performed, then the simple authentication option MUST be chosen, and the password be of zero length. (This is often done by LDAPv2 clients.) Typically the DN is also of zero length. �F�����s����Ȃ��ꍇ�A�P���F�I�v�V�������I������Ȃ���Ȃ炸(MUST)�A�p�X���[�h�͒����[���ƂȂ�B(����͂����� LDAPv2 �N���C�A���g�ɂ���čs����B) �ʏ�� DN �̒������[���ƂȂ�B
The sasl choice allows for any mechanism defined for use with SASL [12]. The mechanism field contains the name of the mechanism. The credentials field contains the arbitrary data used for authentication, inside an OCTET STRING wrapper. Note that unlike some Internet application protocols where SASL is used, LDAP is not text-based, thus no base64 transformations are performed on the credentials. sasl �̑I���́ASASL [12] �Ƌ��ɗ��p����邽�߂ɒ�`���ꂽ�C�ӂ̃��J�j�Y�����\�ɂ���Bmechanism �t�B�[���h�͂��̃��J�j�Y���̖��O���܂ށBcredentials �t�B�[���h�͔F�Ɏg�p�����C�ӂ̃f�[�^���܂݁AOCTET STRING �Ƀ��b�v�����B LDAP �� SASL ���g�p����ꕔ�̃C���^�[�l�b�g�A�v���P�[�V�����v���g�R���Ƃ͈قȂ�e�L�X�g�x�[�X�ł͂Ȃ����߁A�ؖ����ɑ��� base64 �ϊ��͎��s����Ȃ��B
If any SASL-based integrity or confidentiality services are enabled, they take effect following the transmission by the server and reception by the client of the final BindResponse with resultCode success. SASL �x�[�X�̊��S���܂��͋@�����̃T�[�r�X��L���ɂ����ꍇ�AresultCode �� success �� BindResponse ���T�[�o�[�����M���A�N���C�A���g���������M������A�����͌��ʂ������B
The client can request that the server use authentication information from a lower layer protocol by using the SASL EXTERNAL mechanism. �N���C�A���g�� SASL EXTERNAL ���J�j�Y�����g�p���邱�Ƃɂ��A�T�[�o�[�ɉ��w�v���g�R���̔F�؏����g�p����悤�v�����邱�Ƃ��ł���B
The Bind Response is defined as follows. Bind Response �̒�`�͈ȉ��̒ʂ�B
BindResponse ::= [APPLICATION 1] SEQUENCE { COMPONENTS OF LDAPResult, serverSaslCreds [7] OCTET STRING OPTIONAL }
BindResponse consists simply of an indication from the server of the status of the client's request for authentication. BindResponse �́A�N���C�A���g����̔F�ؗv���̏�Ԃ�\���T�[�o�[����̎����ō\�������B
If the bind was successful, the resultCode will be success, otherwise it will be one of: �o�C���h�ɐ��������ꍇ resultCode �� success �ƂȂ�A�����łȂ��ꍇ�͈ȉ��̉��ꂩ�ƂȂ�F
If the server does not support the client's requested protocol version, it MUST set the resultCode to protocolError. �N���C�A���g�̗v�������v���g�R���o�[�W�������T�|�[�g���Ȃ��T�[�o�[�́AresultCode �� protocolError ���Z�b�g���Ȃ���Ȃ�Ȃ�(MUST)�B
If the client receives a BindResponse response where the resultCode was protocolError, it MUST close the connection as the server will be unwilling to accept further operations. (This is for compatibility with earlier versions of LDAP, in which the bind was always the first operation, and there was no negotiation.) resultCode �� protocolError �ł��� BindResponse �������N���C�A���g��������ꍇ�A�T�[�o�[�͂���ȏ�̑�����t���悤�Ƃ��Ȃ����߁A�N���C�A���g�͐ڑ�����Ȃ���Ȃ�Ȃ�(MUST)�B(����͉ߋ��̃o�[�W������ LDAP �Ƃ̌݊����̂��߂ł���B�ߋ��̃o�[�W�����ł̓o�C���h����ɍŏ��̑���ł���A���͑��݂��Ȃ������B)
The serverSaslCreds are used as part of a SASL-defined bind mechanism to allow the client to authenticate the server to which it is communicating, or to perform "challenge-response" authentication. If the client bound with the password choice, or the SASL mechanism does not require the server to return information to the client, then this field is not to be included in the result. serverSaslCreds �́A�ʐM���̃T�[�o�[�̔F�A�܂��� "�`�������W���X�|���X(challenge-response)" �F�̎��s���N���C�A���g�ɋ����邽�߂ɁASASL �̒�`����o�C���h���J�j�Y���̈ꕔ�Ƃ��Ďg�p�����B�N���C�A���g���p�X���[�h�I���ɔ����Ă���ꍇ�A�܂��� SASL ���J�j�Y�����T�[�o�[����N���C�A���g�ɏ���Ԃ��悤�v�����Ȃ��ꍇ�A���̃t�B�[���h�͌��ʂ��܂܂Ȃ��ׂ��ł���B
The function of the Unbind Operation is to terminate a protocol session. The Unbind Operation is defined as follows: Unbind Operation �̓v���g�R���Z�b�V�������I�����邽�߂̋@�\�ł���BUnbind Operation �̒�`�͈ȉ��̒ʂ�F
UnbindRequest ::= [APPLICATION 2] NULL
The Unbind Operation has no response defined. Upon transmission of an UnbindRequest, a protocol client may assume that the protocol session is terminated. Upon receipt of an UnbindRequest, a protocol server may assume that the requesting client has terminated the session and that all outstanding requests may be discarded, and may close the connection. Unbind Operation �ɉ����͒�`����Ă��Ȃ��B�N���C�A���g�� UnbindRequest �𑗐M�������_�Ńv���g�R���Z�b�V�������I�������Ɖ��肵�Ă悢�B�T�[�o�[�� UnbindRequest ����M�������_�ŗv�����Ă����N���C�A���g���Z�b�V�������I�������Ɖ��肵�Ă悭�A�������̃��N�G�X�g�����ׂĔj�����Ă悭�A�Z�b�V��������Ă悢�B
An unsolicited notification is an LDAPMessage sent from the server to the client which is not in response to any LDAPMessage received by the server. It is used to signal an extraordinary condition in the server or in the connection between the client and the server. The notification is of an advisory nature, and the server will not expect any response to be returned from the client. �������ʒm�̓T�[�o�[����N���C�A���g�֑��M����� LDAPMessage �����A�T�[�o�[�̎�M���������Ȃ� LDAPMessage �ւ̉����ł��Ȃ��B�T�[�o�[�ُ̈�A�܂��̓N���C�A���g�ƃT�[�o�[�Ƃ̊Ԃ̐ڑ��ɂ�����ُ��m�点�邽�߂Ɏg�p�����B����͕I�ȈӖ������̒ʒm�ł��邽�߁A�T�[�o�[�̓N���C�A���g����̉��������҂��Ȃ��B
The unsolicited notification is structured as an LDAPMessage in which the messageID is 0 and protocolOp is of the extendedResp form. The responseName field of the ExtendedResponse is present. The LDAPOID value MUST be unique for this notification, and not be used in any other situation. �������ʒm�� messageID �� 0 �� protocolOp �� extendedResp �� LDAPMessage �Ƃ��Đ��������BExtendedResponse �� responseName �t�B�[���h�������BLDAPIOD �l�͂��̒ʒm�ɑ��ă��j�[�N�łȂ���Ȃ炸�A���̑��̏Ŏg�p����Ă͂Ȃ�Ȃ�(MUST)�B
One unsolicited notification is defined in this document. ���̕����ł͖������ʒm���ЂƂ�����`����Ă���B
This notification may be used by the server to advise the client that the server is about to close the connection due to an error condition. Note that this notification is NOT a response to an unbind requested by the client: the server MUST follow the procedures of section 4.3. This notification is intended to assist clients in distinguishing between an error condition and a transient network failure. As with a connection close due to network failure, the client MUST NOT assume that any outstanding requests which modified the directory have succeeded or failed. ���̒ʒm�́A�G���[��Ԃ̂��߂ɃT�[�o�[���ڑ���ؒf���悤�Ƃ��Ă��邱�Ƃ��N���C�A���g�ɒʒm���邽�߂Ɏg�p�����B����̓N���C�A���g�ɂ�� Unbind Request �ւ̉����ł͂Ȃ��A�T�[�o�[�̓Z�N�V���� 4.3 �̎葱���ɏ]��Ȃ���Ȃ�Ȃ�(MUST)���Ƃɒ��ӂ��Ăق����B���̒ʒm�̓G���[��Ԃƈꎞ�I�ȃl�b�g���[�N��Q�Ƃ��N���C�A���g����ʂ���菕���ƂȂ邱�Ƃ�ړI�Ƃ��Ă���B�l�b�g���[�N��Q�ɂ���Đڑ����ꂽ�ꍇ�A�N���C�A���g�̓f�B���N�g����ύX�������ׂĂ̖������̃��N�G�X�g�������܂��͎��s�����Ɖ��肵�Ă͂Ȃ�Ȃ�(MUST NOT)�B
The responseName is 1.3.6.1.4.1.1466.20036, the response field is absent, and the resultCode is used to indicate the reason for the disconnection. responseName �� 1.3.6.1.4.1.1466.20036�Aresponse �t�B�[���h�͖����AresultCode �͐ؒf�̗��R��\�����߂Ɏg�p�����B
The following resultCode values are to be used in this notification: ���̒ʒm�ł͈ȉ��� resultCode �̒l���g�p�����F
The Search Operation allows a client to request that a search be performed on its behalf by a server. This can be used to read attributes from a single entry, from entries immediately below a particular entry, or a whole subtree of entries. Search Operation �ɂ��N���C�A���g�́A�T�[�o�[�ɑ�s������v�����邱�Ƃ��ł���B���̑���́A�P�Ƃ̃G���g���A�܂��͂������̃G���g���̒����A�܂��̓G���g���̃T�u�c���[�S�̂��瑮����ǂݎ�邽�߂Ɏg�p���邱�Ƃ��ł���B
The Search Request is defined as follows: Search Request �̒�`�͈ȉ��̒ʂ�F
SearchRequest ::= [APPLICATION 3] SEQUENCE { baseObject LDAPDN, scope ENUMERATED { baseObject (0), singleLevel (1), wholeSubtree (2) }, derefAliases ENUMERATED { neverDerefAliases (0), derefInSearching (1), derefFindingBaseObj (2), derefAlways (3) }, sizeLimit INTEGER (0 .. maxInt), timeLimit INTEGER (0 .. maxInt), typesOnly BOOLEAN, filter Filter, attributes AttributeDescriptionList } Filter ::= CHOICE { and [0] SET OF Filter, or [1] SET OF Filter, not [2] Filter, equalityMatch [3] AttributeValueAssertion, substrings [4] SubstringFilter, greaterOrEqual [5] AttributeValueAssertion, lessOrEqual [6] AttributeValueAssertion, present [7] AttributeDescription, approxMatch [8] AttributeValueAssertion, extensibleMatch [9] MatchingRuleAssertion } SubstringFilter ::= SEQUENCE { type AttributeDescription, -- at least one must be present substrings SEQUENCE OF CHOICE { initial [0] LDAPString, any [1] LDAPString, final [2] LDAPString } } MatchingRuleAssertion ::= SEQUENCE { matchingRule [1] MatchingRuleId OPTIONAL, type [2] AttributeDescription OPTIONAL, matchValue [3] AssertionValue, dnAttributes [4] BOOLEAN DEFAULT FALSE }
SearchRequest ::= [APPLICATION 3] SEQUENCE { baseObject LDAPDN, scope ENUMERATED { baseObject (0), singleLevel (1), wholeSubtree (2) }, derefAliases ENUMERATED { neverDerefAliases (0), derefInSearching (1), derefFindingBaseObj (2), derefAlways (3) }, sizeLimit INTEGER (0 .. maxInt), timeLimit INTEGER (0 .. maxInt), typesOnly BOOLEAN, filter Filter, attributes AttributeDescriptionList } Filter ::= CHOICE { and [0] SET OF Filter, or [1] SET OF Filter, not [2] Filter, equalityMatch [3] AttributeValueAssertion, substrings [4] SubstringFilter, greaterOrEqual [5] AttributeValueAssertion, lessOrEqual [6] AttributeValueAssertion, present [7] AttributeDescription, approxMatch [8] AttributeValueAssertion, extensibleMatch [9] MatchingRuleAssertion } SubstringFilter ::= SEQUENCE { type AttributeDescription, -- �Œ�ЂƂ͕K�v substrings SEQUENCE OF CHOICE { initial [0] LDAPString, any [1] LDAPString, final [2] LDAPString } } MatchingRuleAssertion ::= SEQUENCE { matchingRule [1] MatchingRuleId OPTIONAL, type [2] AttributeDescription OPTIONAL, matchValue [3] AssertionValue, dnAttributes [4] BOOLEAN DEFAULT FALSE }
Parameters of the Search Request are: Search Request �̃p�����[�^�͈ȉ��̒ʂ�F
The 'and', 'or' and 'not' choices can be used to form combinations of filters. At least one filter element MUST be present in an 'and' or 'or' choice. The others match against individual attribute values of entries in the scope of the search. (Implementor's note: the 'not' filter is an example of a tagged choice in an implicitly-tagged module. In BER this is treated as if the tag was explicit.) �t�B���^�̑g�ݍ��킹���\�����邽�߂� 'and'�A'or'�A'not' ���g�p�ł���B'and' �܂��� 'or' �ɂ́A���Ȃ��Ƃ��ЂƂ̃t�B���^�v�f�����݂��Ȃ��Ă͂Ȃ�Ȃ�(MUST)�B����ȊO�͌����X�R�[�v���̃G���g���̌X�̑����l�ɑ��Ĉ�v����B(�����҂ւ̒���: 'not' �t�B���^�́A�ÖٓI�Ƀ^�O�t�����ꂽ���W���[���ɂ�����^�O�t���I���̈��ł���BBER �ł́A���̃^�O����������Ă��邩�̂悤�Ɉ�����B)
A server MUST evaluate filters according to the three-valued logic of X.511(93) section 7.8.1. In summary, a filter is evaluated to either "TRUE", "FALSE" or "Undefined". If the filter evaluates to TRUE for a particular entry, then the attributes of that entry are returned as part of the search result (subject to any applicable access control restrictions). If the filter evaluates to FALSE or Undefined, then the entry is ignored for the search. �T�[�o�[�́AX.511(93) �̃Z�N�V���� 7.8.1 �̎O�l���_�ɂ��������ăt�B���^��]�����Ȃ���Ȃ�Ȃ�(MUST)�B�v��ƁA�t�B���^�� "TRUE"�A"FALSE"�A"Undefined" �̉��ꂩ�ƕ]�������B�t�B���^���������̃G���g���ɑ��� TRUE �ƕ]�����ꂽ�ꍇ�A���̃G���g���̑����͌������ʂ̈ꕔ�Ƃ���(�C�ӂ̓K�p�\�ȃA�N�Z�X�R���g���[���̐����ɂ���������)�Ԃ����B�t�B���^�� FALSE �܂��� Undefined �ƕ]�����ꂽ�ꍇ�A���̃G���g���͂��̌����ɂ����Ė��������B
A filter of the "and" choice is TRUE if all the filters in the SET OF evaluate to TRUE, FALSE if at least one filter is FALSE, and otherwise Undefined. A filter of the "or" choice is FALSE if all of the filters in the SET OF evaluate to FALSE, TRUE if at least one filter is TRUE, and Undefined otherwise. A filter of the "not" choice is TRUE if the filter being negated is FALSE, FALSE if it is TRUE, and Undefined if it is Undefined. "and" �I���̃t�B���^�́ASET OF ���̂��ׂẴt�B���^�� TRUE �ƕ]�������ꍇ�ɂ� TRUE�A���Ȃ��Ƃ��ЂƂ̃t�B���^�� FALSE �̏ꍇ�ɂ� FALSE�A����ȊO�̏ꍇ�� Undefined �ƂȂ�B"or" �I���́ASET OF ���̂��ׂẴt�B���^�� FALSE �ƕ]�������ꍇ�ɂ� FALSE�A���Ȃ��Ƃ��ЂƂ̃t�B���^�� TRUE �̏ꍇ�ɂ� TRUE�A����ȊO�̏ꍇ�� Undefined �ƂȂ�B"not" �I���̃t�B���^�́A�Ώۂ̃t�B���^�� FALSE �̏ꍇ�� TRUE�ATRUE �̏ꍇ�� FALSE �ƂȂ�AUndefined �̏ꍇ�ɂ� Undefined �ƂȂ�B
The present match evaluates to TRUE where there is an attribute or subtype of the specified attribute description present in an entry, and FALSE otherwise (including a presence test with an unrecognized attribute description.) ����G���g�����ɁA�w�肳�ꂽ�����L�q�̑����܂��̓T�u�^�C�v������ꍇ�A�������ʂ� TRUE �ƕ]�������B�����łȂ��ꍇ(�F������Ȃ������L�q�����݂���ꍇ���܂�)�� FALSE �ƕ]�������B
The extensibleMatch is new in this version of LDAP. If the matchingRule field is absent, the type field MUST be present, and the equality match is performed for that type. If the type field is absent and matchingRule is present, the matchValue is compared against all attributes in an entry which support that matchingRule, and the matchingRule determines the syntax for the assertion value (the filter item evaluates to TRUE if it matches with at least one attribute in the entry, FALSE if it does not match any attribute in the entry, and Undefined if the matchingRule is not recognized or the assertionValue cannot be parsed.) If the type field is present and matchingRule is present, the matchingRule MUST be one permitted for use with that type, otherwise the filter item is undefined. If the dnAttributes field is set to TRUE, the match is applied against all the attributes in an entry's distinguished name as well, and also evaluates to TRUE if there is at least one attribute in the distinguished name for which the filter item evaluates to TRUE. (Editors note: The dnAttributes field is present so that there does not need to be multiple versions of generic matching rules such as for word matching, one to apply to entries and another to apply to entries and dn attributes as well). extensibleMatch �� LDAP �̂��̃o�[�W�����ŐV���ɒlj����ꂽ�BmatchingRule �t�B�[���h����̏ꍇ�ɂ͕K�� type �t�B�[���h������Ȃ���Ȃ炸(MUST)�A��v�����͂��̃^�C�v�ɑ��Ď��s�����Btype �t�B�[���h����A���� matchingRule ���^�����Ă���ꍇ�A���� matchValue �� matchingRule ���T�|�[�g����G���g���̑S�����Ɣ�r����AmatchingRule �͂��̃A�T�[�V�����l�̍\�������肷��(�t�B���^���ڂ́A���ꂪ�G���g�����̏��Ȃ��Ƃ��ЂƂ̑����ƈ�v����ꍇ�ɂ� TRUE�A�G���g�����̂ǂ̑����Ƃ���v���Ȃ��ꍇ�ɂ� FALSE�AmatchingRule ��F���ł��Ȃ��� assertionValue ����͂ł��Ȃ��ꍇ�ɂ� Undefined �ƕ]�������B) type �t�B�[���h�� matchingRule �Ƃ������^�����Ă���ꍇ�A���� matchingRule �͂��̃^�C�v�̎g�p�������ꂽ���̂łȂ���Ȃ炸(MUST)�A������Ă��Ȃ�����̃t�B���^���ڂ� undefined �ƂȂ�BdnAttributes �t�B�[���h�� TRUE �̏ꍇ�A���̌����̓G���g���̎��ʖ��̑S�����ɑ��Ă����l�ɓK�p����A���ʖ��̒��ɂ��̃t�B���^���ڂ� TRUE �ƕ]������鑮�����ЂƂł����݂���� TRUE �ƕ]�������B(���Ғ�: dnAttributes �t�B�[���h�́A�������̂悤�Ȉ�ʓI�Ȉ�v�K���ɂ����āA������̂̓G���g���ɓK�p����A�܂�������̂̓G���g���Ƃ���� dn �����ɂ��K�p�����Ƃ����悤�ȁA�����̉��߂̕K�v�������ړI�ŗp�ӂ���Ă���B)
A filter item evaluates to Undefined when the server would not be able to determine whether the assertion value matches an entry. If an attribute description in an equalityMatch, substrings, greaterOrEqual, lessOrEqual, approxMatch or extensibleMatch filter is not recognized by the server, a matching rule id in the extensibleMatch is not recognized by the server, the assertion value cannot be parsed, or the type of filtering requested is not implemented, then the filter is Undefined. Thus for example if a server did not recognize the attribute type shoeSize, a filter of (shoeSize=*) would evaluate to FALSE, and the filters (shoeSize=12), (shoeSize>=12) and (shoeSize<=12) would evaluate to Undefined. �t�B���^���ڂ̃A�T�[�V�����l���G���g���Ɉ�v���邩�ǂ������T�[�o�[�����f�ł��Ȃ��ꍇ�A���̃t�B���^���ڂ� Undefined �ƕ]�������BequalityMatch�A substrings�A greaterOrEqual�A lessOrEqual�A approxMatch�A extensibleMatch �̊e�t�B���^���̑����L�q���T�[�o�[���F���ł��Ȃ��ꍇ�A�T�[�o�[�� extensibleMatch ���̈�v�K�����ʎq��F�������A���̃A�T�[�V�����l����͂ł��Ȃ����A�v�����ꂽ��ނ̃t�B���^�����O���������Ă��Ȃ��Ƃ������Ƃł���A�t�B���^�� Undefined �ƂȂ�B���������āA�Ⴆ�T�[�o�[�������^ shoeSize ��F�����Ȃ��ꍇ�A�t�B���^ (shoeSize=*) �� FALSE �ƕ]������A�t�B���^ (shoeSize=12)�A(shoeSize>=12) and (shoeSize<=12) �� Undefined �ƕ]������邱�ƂɂȂ�B
Servers MUST NOT return errors if attribute descriptions or matching rule ids are not recognized, or assertion values cannot be parsed. More details of filter processing are given in section 7.8 of X.511 [8]. �����L�q�܂��͈�v�K�����ʎq��F���ł��Ȃ��ꍇ�A�܂��̓A�T�[�V�����l����͂ł��Ȃ��ꍇ�A�T�[�o�[�̓G���[��Ԃ��Ă͂Ȃ�Ȃ�(MUST NOT)�B�t�B���^�����̏ڍׂ́AX.511[8] �̃Z�N�V���� 7.8 �Ɏ�����Ă���B
Attributes MUST be named at most once in the list, and are returned at most once in an entry. If there are attribute descriptions in the list which are not recognized, they are ignored by the server. �����͂��̃��X�g���� 2 ��ȏ�w�肳��Ă͂Ȃ炸(MUST)�A�ЂƂ̃G���g������ 2 ��ȏ�Ԃ���Ă͂Ȃ�Ȃ�(MUST)�B���X�g���ɔF���ł��Ȃ������L�q�����݂���ꍇ�A�T�[�o�[�͂���������B
If the client does not want any attributes returned, it can specify a list containing only the attribute with OID "1.1". This OID was chosen arbitrarily and does not correspond to any attribute in use. �ǂ̑������Ԃ���Ȃ����Ƃ��N���C�A���g���]�ޏꍇ�AOID "1.1" �̑����������܂ރ��X�g���w�肷�邱�Ƃ��ł���B���� OID �͈ȑO����C�ӂɎg�p����Ă���A�g�p���̂ǂ̑����Ƃ���v���Ȃ��B
Client implementors should note that even if all user attributes are requested, some attributes of the entry may not be included in search results due to access control or other restrictions. Furthermore, servers will not return operational attributes, such as objectClasses or attributeTypes, unless they are listed by name, since there may be extremely large number of values for certain operational attributes. (A list of operational attributes for use in LDAP is given in [5].) �N���C�A���g�����҂́A���Ƃ��S���[�U�[������v�������ꍇ�ł��A�A�N�Z�X�R���g���[���₻�̑��̐����̂��߂ɁA���̃G���g���̈ꕔ�̑������������ʂɊ܂܂�Ȃ��\�������邱�Ƃɒ��ӂ���ׂ��ł���B�܂��AobjectClasses �� attributeTypes �Ƃ���������̑��쑮���ɂ͋ɂ߂đ����̒l�����݂���\�������邽�߁A����炪���w���Ń��X�g����Ă��Ȃ�����A�T�[�o�[�͂��̂悤�ȑ��쑮����Ԃ��Ȃ����낤�B(LDAP �Ŏg�p����鑀�쑮���̃��X�g�� [5] �Ɏ�����Ă���B)
Note that an X.500 "list"-like operation can be emulated by the client requesting a one-level LDAP search operation with a filter checking for the existence of the objectClass attribute, and that an X.500 "read"-like operation can be emulated by a base object LDAP search operation with the same filter. A server which provides a gateway to X.500 is not required to use the Read or List operations, although it may choose to do so, and if it does must provide the same semantics as the X.500 search operation. X.500 �� "list" �̂悤�ȑ���� objectClass �����̑��݂��m�F����t�B���^������i�K�� LDAP Search Operation �̗v���Ŗ͕�ł��邱�ƁAX.500 �� "read" �̂悤�ȑ���͓����t�B���^�����x�[�X�I�u�W�F�N�g�� LDAP Search Operation �Ŗ͕�ł��邱�Ƃɒ��ӂ��Ăق����BX.500 �ւ̃Q�[�g�E�F�C�����T�[�o�[�́ARead ����� List ������g�p����K�v�͂Ȃ����AX.500 �̌�������Ɠ����Z�}���e�B�N�X����Ȃ���Ȃ�Ȃ��̂ł���A�������g�p���邱�Ƃ�I�����Ă��悢�B
The results of the search attempted by the server upon receipt of a Search Request are returned in Search Responses, which are LDAP messages containing either SearchResultEntry, SearchResultReference, ExtendedResponse or SearchResultDone data types. Search Request �̎��ɂ��T�[�o�[�����s���������̌��ʂ́ASearch Response ���ŕԂ����BSearch Response �� SearchResultEntry�A SearchResultReference�A ExtendedResponse�A SearchResultDone �̉��ꂩ�̃f�[�^�^���܂� LDAP ���b�Z�[�W�ł���B
SearchResultEntry ::= [APPLICATION 4] SEQUENCE { objectName LDAPDN, attributes PartialAttributeList } PartialAttributeList ::= SEQUENCE OF SEQUENCE { type AttributeDescription, vals SET OF AttributeValue } -- implementors should note that the PartialAttributeList may -- have zero elements (if none of the attributes of that entry -- were requested, or could be returned), and that the vals set -- may also have zero elements (if types only was requested, or -- all values were excluded from the result.) SearchResultReference ::= [APPLICATION 19] SEQUENCE OF LDAPURL -- at least one LDAPURL element must be present SearchResultDone ::= [APPLICATION 5] LDAPResult
SearchResultEntry ::= [APPLICATION 4] SEQUENCE { objectName LDAPDN, attributes PartialAttributeList } PartialAttributeList ::= SEQUENCE OF SEQUENCE { type AttributeDescription, vals SET OF AttributeValue } -- �����҂� PartialAttributeList �̗v�f�����[��(���̃G���g���� -- �ǂ̑������v������Ȃ������ꍇ�A�܂��͗v�f���Ԃ���Ȃ����� -- �ꍇ)�ł��悢���ƁAvals �W���̗v�f�����[��(�^�݂̂��v������ -- ���ꍇ�A�܂��͑S�Ă̒l�����ʂ��珜���ꂽ�ꍇ)�ł��悢���Ƃ� -- ���ӂ��ׂ��ł���B SearchResultReference ::= [APPLICATION 19] SEQUENCE OF LDAPURL -- ���Ȃ��Ƃ��ЂƂ� LDAPURL �̗v�f���Ȃ���Ȃ�Ȃ� SearchResultDone ::= [APPLICATION 5] LDAPResult
Upon receipt of a Search Request, a server will perform the necessary search of the DIT. Search Request ����M����ƁA�T�[�o�[�͕K�v�� DIT �̌��������s����B
If the LDAP session is operating over a connection-oriented transport such as TCP, the server will return to the client a sequence of responses in separate LDAP messages. There may be zero or more responses containing SearchResultEntry, one for each entry found during the search. There may also be zero or more responses containing SearchResultReference, one for each area not explored by this server during the search. The SearchResultEntry and SearchResultReference PDUs may come in any order. Following all the SearchResultReference responses and all SearchResultEntry responses to be returned by the server, the server will return a response containing the SearchResultDone, which contains an indication of success, or detailing any errors that have occurred. LDAP �Z�b�V������ TCP �̂悤�ȃR�l�N�V�����w���̃g�����X�|�[�g��ōs���Ă���ꍇ�A�T�[�o�[�͂��ꂼ��� LDAP ���b�Z�[�W�ɉ����̘A�Ԃ��܂߂ĕԂ����낤�B�������Ɍ��������G���g���ɑ��ASearchResultEntry ���܂߂ă[���ȏ�̉��������݂��Ă悢�B����ɁA�������ɃT�[�o�[�ɂ���Ē��ׂ��Ȃ������̈悲�ƂɁASearchResultReference ���܂ރ[���ȏ�̉��������݂��Ă��悢�BSearchResultEntry ����� SearchResultReference �� PDU �͂ǂ��炪��ɓ������Ă��悢�B�T�[�o�[�ɂ���ĕԂ����S�Ă� SearchResultReference �����ƑS�Ă� SearchResultEntry �����Ƃɑ����ăT�[�o�[�� SearchResultDone ���܂މ�����Ԃ��A����ɂ͐����܂��͔��������G���[�̏ڍׂ��܂܂��B
Each entry returned in a SearchResultEntry will contain all attributes, complete with associated values if necessary, as specified in the attributes field of the Search Request. Return of attributes is subject to access control and other administrative policy. Some attributes may be returned in binary format (indicated by the AttributeDescription in the response having the binary option present). SearchResultEntry ���ŕԂ����e�G���g���́A�K�v�ł���Ί֘A����l���܂߁ASearch Request �̑����t�B�[���h�Ŏw�肳�ꂽ�S�Ă̑������܂�ł���B�Ԃ���鑮���́A�A�N�Z�X�R���g���[���₻�̑��̊Ǘ��|���V�[�̉e������B�����ɂ���Ă̓o�C�i���`���ŕԂ���Ă��悢(�o�C�i���I�v�V�������������ɂ����� AttributeDescription �ɂ���Ė��������)�B
Some attributes may be constructed by the server and appear in a SearchResultEntry attribute list, although they are not stored attributes of an entry. Clients MUST NOT assume that all attributes can be modified, even if permitted by access control. �����ɂ���ẮA����炪�G���g���ɕۑ�����鑮���ł͂Ȃ������Ƃ��Ă��A�T�[�o�[�ɂ���č\�z���ꂽ��� SearchResultEntry �����̒��Ɍ����\��������B���Ƃ��A�N�Z�X�R���g���[���ŋ�����Ă����Ƃ��Ă��A�N���C�A���g�͑S�Ă̑�����ύX�\�ł���Ɖ��肵�Ă͂Ȃ�Ȃ�(MUST NOT)�B
LDAPMessage responses of the ExtendedResponse form are reserved for returning information associated with a control requested by the client. These may be defined in future versions of this document. ExtendedResponse �`���� LDAPMessage �����́A�N���C�A���g�ɂ���ėv�����ꂽ control �Ɋ֘A�������Ԃ����߂ɗ\��Ă���B�����͂��̕����̏����̃o�[�W�����Œ�`����Ă��悢�B
If the server was able to locate the entry referred to by the baseObject but was unable to search all the entries in the scope at and under the baseObject, the server may return one or more SearchResultReference, each containing a reference to another set of servers for continuing the operation. A server MUST NOT return any SearchResultReference if it has not located the baseObject and thus has not searched any entries; in this case it would return a SearchResultDone containing a referral resultCode. baseObject ���Q�Ƃ���G���g���Ɉʒu�t���͂ł������AbaseObject ��܂��͂��̉��ʂ̂��ׂẴG���g�����������邱�Ƃ͂ł��Ȃ������ꍇ�A�T�[�o�[�͑���𑱂��邽�߂̕ʂ̃T�[�o�[�W���ւ̎Q�Ƃ��܂ނЂƂȏ�� SearchResultReference ��Ԃ����Ƃ��ł���BbaseObject �ւ̈ʒu�t�����ł����A���������Ăǂ̃G���g���������ł��Ȃ������ꍇ�A�T�[�o�[�͂����Ȃ� SearchResultReference ���Ԃ��Ă͂Ȃ�Ȃ�(MUST NOT)�B���̏ꍇ�T�[�o�[�́AresultCode �� referral ���܂� SearchResultDone ��Ԃ��B
In the absence of indexing information provided to a server from servers holding subordinate naming contexts, SearchResultReference responses are not affected by search filters and are always returned when in scope. ���ʂ̖��O�t���R���e�L�X�g��ێ�����T�[�o�[�Q����C���f�b�N�X�����Ȃ��ꍇ�ASearchResultReferende �����͌����t�B���^�̉e�������A�X�R�[�v���ł���Ώ�ɕԂ����B
The SearchResultReference is of the same data type as the Referral. URLs for servers implementing the LDAP protocol are written according to [9]. The <dn> part MUST be present in the URL, with the new target object name. The client MUST use this name in its next request. Some servers (e.g. part of a distributed index exchange system) may provide a different filter in the URLs of the SearchResultReference. If the filter part of the URL is present in an LDAP URL, the client MUST use the new filter in its next request to progress the search, and if the filter part is absent the client will use again the same filter. Other aspects of the new search request may be the same or different as the search which generated the continuation references. SearchResultReference �� Referral �Ɠ����f�[�^�^�ł���BLDAP �v���g�R������������T�[�o�[�̂��߂� URL �� [9] �ɂ��������ď������BURL ���� <dn> ���́A�V�����^�[�Q�b�g�̃I�u�W�F�N�g�����ĕK���w�肳��Ȃ���Ȃ�Ȃ�(MUST)�B�N���C�A���g�͎��̃��N�G�X�g�ł��̖��O���g�p���Ȃ���Ȃ�Ȃ�(MUST)�B�����̃T�[�o�[(�Ⴆ�A���U�C���f�b�N�X�����V�X�e���̈ꕔ���\������T�[�o�[)�́ASearchResultReference �� URL ���ňقȂ�t�B���^�����BLDAP URL ���� URL �̃t�B���^�����w�肳�ꂽ�ꍇ�A�N���C�A���g��������i�߂邽�߂ɂ͂��̎��̃��N�G�X�g�ŐV�����t�B���^���g�p���Ȃ���Ȃ�Ȃ�(MUST)�B�t�B���^�������������ꍇ�A�N���C�A���g�͓����t�B���^���Ăюg�p���邱�ƂɂȂ邾�낤�B�V�����������N�G�X�g�̂��̑��̓_�́A�p���Q�Ƃ����������Ɠ����ł����Ă��A�قȂ��Ă��Ă��悢�B
Other kinds of URLs may be returned so long as the operation could be performed using that protocol. ���̎�ނ� URL ���Ԃ���Ă��悢���A���̑��삪���̃v���g�R�����g�p���Ď��s�\�ȏꍇ�Ɍ�����B
The name of an unexplored subtree in a SearchResultReference need not be subordinate to the base object. SearchResultReference �ɂ����Č�������Ă��Ȃ��T�u�c���[�̖��O�́A�x�[�X�I�u�W�F�N�g�̉��ʂł���K�v�͂Ȃ��B
In order to complete the search, the client MUST issue a new search operation for each SearchResultReference that is returned. Note that the abandon operation described in section 4.11 applies only to a particular operation sent on a connection between a client and server, and if the client has multiple outstanding search operations to different servers, it MUST abandon each operation individually. ���������������邽�߂ɂ́A�N���C�A���g�͕Ԃ��ꂽ SearchResultReference ���ƂɐV���� Search Operation �����s���Ȃ���Ȃ�Ȃ�(MUST)�B�Z�N�V���� 4.11 �Ő�������Ă��� Abandon Operation �̓N���C�A���g�E�T�[�o�[�Ԃ̐ڑ���𑗂�ꂽ����̑���ɑ��Ă̂ݓK�p����A���������ăN���C�A���g���قȂ�T�[�o�[�ɑ��ĕ����̖������� Search Operation ��ێ����Ă���ꍇ�A�X�̑��삲�Ƃɔj�������s���Ȃ���Ȃ�Ȃ�(MUST)���Ƃɒ��ӂ��Ăق����B
For example, suppose the contacted server (hosta) holds the entry "O=MNN,C=WW" and the entry "CN=Manager,O=MNN,C=WW". It knows that either LDAP-capable servers (hostb) or (hostc) hold "OU=People,O=MNN,C=WW" (one is the master and the other server a shadow), and that LDAP-capable server (hostd) holds the subtree "OU=Roles,O=MNN,C=WW". If a subtree search of "O=MNN,C=WW" is requested to the contacted server, it may return the following: ��Ƃ��āA�ڑ����̃T�[�o�[ (hosta) ���G���g�� "O=MNN,C=WW" �� "CN=Manager,O=MNN,C=WW" �Ƃ������Ă���Ɖ��肷��B���̃T�[�o�[�́ALDAP �@�\�����T�[�o�[ (hostb)�E(hostc) �̂ǂ��炩�� "OU=People,O=MNN,C=WW" ��ێ����Ă��邱�ƂƁALDAP �@�\�����T�[�o�[ (hostd) ���T�u�c���[ "OU=Roles,O=MNN,C=WW" ��ێ����Ă��邱�Ƃ�m���Ă���Ƃ���B"O=MNN,C=WW" �̃T�u�c���[�̌��������̃T�[�o�[�ɗv�������ꍇ�A�ȉ��̓��e���Ԃ���邾�낤�F
SearchResultEntry for O=MNN,C=WW SearchResultEntry for CN=Manager,O=MNN,C=WW SearchResultReference { ldap://hostb/OU=People,O=MNN,C=WW ldap://hostc/OU=People,O=MNN,C=WW } SearchResultReference { ldap://hostd/OU=Roles,O=MNN,C=WW } SearchResultDone (success)
Client implementors should note that when following a SearchResultReference, additional SearchResultReference may be generated. Continuing the example, if the client contacted the server (hostb) and issued the search for the subtree "OU=People,O=MNN,C=WW", the server might respond as follows: �N���C�A���g�����҂́ASearchResultReference �ɂ������������ʁA�V���� SearchResultReference �����������\�������邱�Ƃɒ��ӂ���ׂ��ł���B��̗�𑱂���ƁA�N���C�A���g���T�[�o�[ (hostb) �ɐڑ����A"OU=People,O=MNN,C=WW" �̃T�u�c���[�̌����s�����ꍇ�A���̃T�[�o�[�͈ȉ��̂悤�ȉ�����Ԃ����낤�F
SearchResultEntry for OU=People,O=MNN,C=WW SearchResultReference { ldap://hoste/OU=Managers,OU=People,O=MNN,C=WW } SearchResultReference { ldap://hostf/OU=Consultants,OU=People,O=MNN,C=WW } SearchResultDone (success)
If the contacted server does not hold the base object for the search, then it will return a referral to the client. For example, if the client requests a subtree search of "O=XYZ,C=US" to hosta, the server may return only a SearchResultDone containing a referral. �ڑ����Ă���T�[�o�[�����̌����̂��߂̃x�[�X�I�u�W�F�N�g��ێ����Ă��Ȃ��ꍇ�A���̃T�[�o�[�̓N���C�A���g�ɎQ�Ƃ�Ԃ��B�Ⴆ�A�N���C�A���g�� hosta �� "O=XYZ,C=US" �̃T�u�c���[������v�������ꍇ�A���̃T�[�o�[�͎Q�Ƃ��܂� SearchResultDone �݂̂�Ԃ��Ă��悢�B
SearchResultDone (referral) { ldap://hostg/ }
The Modify Operation allows a client to request that a modification of an entry be performed on its behalf by a server. The Modify Request is defined as follows: Modify Operation �ɂ��N���C�A���g�́A�T�[�o�[�ɃG���g���̍X�V��v�����邱�Ƃ��ł���BModify Request �̒�`�͈ȉ��̒ʂ�F
ModifyRequest ::= [APPLICATION 6] SEQUENCE { object LDAPDN, modification SEQUENCE OF SEQUENCE { operation ENUMERATED { add (0), delete (1), replace (2) }, modification AttributeTypeAndValues } } AttributeTypeAndValues ::= SEQUENCE { type AttributeDescription, vals SET OF AttributeValue }
Parameters of the Modify Request are: Modify Request �̃p�����[�^�͈ȉ��̒ʂ�F
The result of the modify attempted by the server upon receipt of a Modify Request is returned in a Modify Response, defined as follows: Modify Request �̎�M�ɂ���ăT�[�o�[�����݂��X�V�̌��ʂ́A�ȉ��̂悤�ɒ�`����� Modify Response �̒��ŕԂ����F
ModifyResponse ::= [APPLICATION 7] LDAPResult
Upon receipt of a Modify Request, a server will perform the necessary modifications to the DIT. Modify Request ����M����ƁA�T�[�o�[�� DIT �ɕK�v�ȕύX��������B
The server will return to the client a single Modify Response indicating either the successful completion of the DIT modification, or the reason that the modification failed. Note that due to the requirement for atomicity in applying the list of modifications in the Modify Request, the client may expect that no modifications of the DIT have been performed if the Modify Response received indicates any sort of error, and that all requested modifications have been performed if the Modify Response indicates successful completion of the Modify Operation. If the connection fails, whether the modification occurred or not is indeterminate. �T�[�o�[�̓N���C�A���g�ɁADIT �X�V�̐��������s���A�ǂ��炩�̗��R��\���P�Ƃ� Modify Response ��Ԃ��BModify Request �ɂ�����X�V���X�g�̓K�p�ɂ͌��q���̗v�������邽�߁A�N���C�A���g�́A���炩�̍X�V�G���[��\�� Modify Response ����M�����ꍇ�ɂ͂����Ȃ� DIT �̍X�V�����s����Ă��炸�AModify Operation �̐�����\�� Modify Response ����M�����ꍇ�ɂ͂��ׂĂ̍X�V�v�������s���ꂽ�Ɗ��҂��Ă悢�B�ڑ���Q�����������ꍇ�A���̍X�V�����s���ꂽ���ǂ����͕s��ƂȂ�B
The Modify Operation cannot be used to remove from an entry any of its distinguished values, those values which form the entry's relative distinguished name. An attempt to do so will result in the server returning the error notAllowedOnRDN. The Modify DN Operation described in section 4.9 is used to rename an entry. ����G���g�����炻�ꂪ�����ʖ�(���̒l�͂��̃G���g���̑��Ύ��ʖ��ł���)���폜����ړI�� Modify Operation ���g�p���邱�Ƃ͂ł��Ȃ��B���̂悤�ȑ�������s���悤�Ƃ����ꍇ�A�T�[�o�[�� notAllowedOnRDN �̃G���[��Ԃ��B�Z�N�V���� 4.9 �Ő�������Ă��� Modify DN Operation �́A�G���g���̖��O��ύX���邽�߂Ɏg�p�����B
If an equality match filter has not been defined for an attribute type, clients MUST NOT attempt to delete individual values of that attribute from an entry using the "delete" form of a modification, and MUST instead use the "replace" form. ���鑮���^�̂��߂̓��������t�B���^����`����Ă��Ȃ��ꍇ�A�N���C�A���g�� "delete" ���g�p���Ă��̃G���g������X�̑����l���폜���悤�Ǝ��݂Ă͂Ȃ炸(MUST NOT)�A����� "replace" ���g�p���Ȃ���Ȃ�Ȃ�(MUST)�B
Note that due to the simplifications made in LDAP, there is not a direct mapping of the modifications in an LDAP ModifyRequest onto the EntryModifications of a DAP ModifyEntry operation, and different implementations of LDAP-DAP gateways may use different means of representing the change. If successful, the final effect of the operations on the entry MUST be identical. LDAP �̍\���͒P��������Ă��邽�߁ALDAP �� ModifyRequest �̍X�V���ADAP �� ModifyEntry ����� EntryModifications �ɒ��ڃ}�b�s���O���邱�Ƃ͂ł��Ȃ��B���������� LDAP-DAP �Q�[�g�E�F�C�̗l�X�Ȏ������A���̕ύX������قȂ��i�ŕ\������\�������邱�Ƃɒ��ӂ��Ăق����B�X�V�ɐ��������ꍇ�A���̃G���g���ɑ��鑀��̍ŏI�I�Ȍ��ʂ͈�v���Ȃ���Ȃ�Ȃ�(MUST)�B
The Add Operation allows a client to request the addition of an entry into the directory. The Add Request is defined as follows: Add Operation �ɂ��N���C�A���g�́A�f�B���N�g���ւ̃G���g���̒lj���v�����邱�Ƃ��ł���BAdd Request �̒�`�͈ȉ��̒ʂ�F
AddRequest ::= [APPLICATION 8] SEQUENCE { entry LDAPDN, attributes AttributeList } AttributeList ::= SEQUENCE OF SEQUENCE { type AttributeDescription, vals SET OF AttributeValue }
Parameters of the Add Request are: Add Request �̃p�����[�^�͈ȉ��̒ʂ�F
The entry named in the entry field of the AddRequest MUST NOT exist for the AddRequest to succeed. The parent of the entry to be added MUST exist. For example, if the client attempted to add "CN=JS,O=Foo,C=US", the "O=Foo,C=US" entry did not exist, and the "C=US" entry did exist, then the server would return the error noSuchObject with the matchedDN field containing "C=US". If the parent entry exists but is not in a naming context held by the server, the server SHOULD return a referral to the server holding the parent entry. AddRequest �� entry �t�B�[���h���Ŏw�肳�ꂽ�G���g���́A�㑱�� AddRequest �Ɍ���Ă͂Ȃ�Ȃ�(MUST NOT)�B�lj������G���g���̐e�͕K�����݂��Ȃ���Ȃ�Ȃ�(MUST)�B�Ⴆ�N���C�A���g�� "CN=JS,O=Foo,C=US" ��lj����悤�Ƃ��Ă��邪�A"O=Foo,C=US" �Ƃ����G���g���͑��݂����A"C=US" �Ƃ����G���g���͑��݂���ꍇ�A�T�[�o�[�� "C=US" ���܂� matchedDN ������ noSuchObject �G���[��Ԃ����낤�B�e�G���g���͑��݂��邪���̃T�[�o�[�̕ێ����閼�O�t���R���e�L�X�g�ł͂Ȃ��ꍇ�A�T�[�o�[�͂��̐e�G���g����ێ����Ă���T�[�o�[�ւ̎Q�Ƃ�Ԃ��ׂ��ł���(SHOULD)�B
Servers implementations SHOULD NOT restrict where entries can be located in the directory. Some servers MAY allow the administrator to restrict the classes of entries which can be added to the directory. �T�[�o�[�����́A�f�B���N�g�����ŃG���g�����ʒu�t����ꏊ�𐧌�����ׂ��ł͂Ȃ�(SHOULD NOT)�B�T�[�o�[�ɂ���ẮA�f�B���N�g���ɒlj��ł���G���g���̃N���X���Ǘ��҂��������邱�Ƃ������Ă��悢(MAY)�B
Upon receipt of an Add Request, a server will attempt to perform the add requested. The result of the add attempt will be returned to the client in the Add Response, defined as follows: Add Request ����M����ƁA�T�[�o�[�͗v�����ꂽ�lj��̎��s�����݂�B�lj������݂����ʂ͈ȉ��̂悤�ɒ�`����� AddResponse ���ŃN���C�A���g�ɕԂ����F
AddResponse ::= [APPLICATION 9] LDAPResult
A response of success indicates that the new entry is present in the directory. ���������́A�V�����G���g�������̃f�B���N�g�����ɒlj����ꂽ���Ƃ�\���B
The Delete Operation allows a client to request the removal of an entry from the directory. The Delete Request is defined as follows: Delete Operation �ɂ��N���C�A���g�́A�f�B���N�g������̃G���g���폜��v�����邱�Ƃ��ł���BDelete Request �̒�`�͈ȉ��̒ʂ�F
DelRequest ::= [APPLICATION 10] LDAPDN
The Delete Request consists of the Distinguished Name of the entry to be deleted. Note that the server will not dereference aliases while resolving the name of the target entry to be removed, and that only leaf entries (those with no subordinate entries) can be deleted with this operation. Delete Request �͍폜�����G���g���̎��ʖ�����\�������B�T�[�o�[���폜�Ώۂ̃G���g��������������ۂɃG�C���A�X�̋t�Q�Ƃ��s��Ȃ����ƁA����сA���̑���ō폜�ł���͖̂��[�̃G���g��(�܂艺�ʃG���g���������Ȃ��G���g��)�݂̂ł��邱�Ƃɒ��ӂ��Ăق����B
The result of the delete attempted by the server upon receipt of a Delete Request is returned in the Delete Response, defined as follows: Delete Request �̎�M�ɂ���ăT�[�o�[�����݂��폜�̌��ʂ́A�ȉ��̂悤�ɒ�`����� Delete Response ���ŕԂ����B
DelResponse ::= [APPLICATION 11] LDAPResult
Upon receipt of a Delete Request, a server will attempt to perform the entry removal requested. The result of the delete attempt will be returned to the client in the Delete Response. Delete Request ����M����ƁA�T�[�o�[�͗v�����ꂽ�G���g���̍폜�����݂�B���̌��ʂ� Delete Response ���ŃN���C�A���g�ɕԂ����B
The Modify DN Operation allows a client to change the leftmost (least significant) component of the name of an entry in the directory, or to move a subtree of entries to a new location in the directory. The Modify DN Request is defined as follows: Modify DN Operation �ɂ��N���C�A���g�́A�f�B���N�g�����̃G���g���̖��O�̍ō�(�ʼn���)�̍\���v�f��ύX�A�܂��̓G���g���̃T�u�c���[���f�B���N�g�����̐V�����ʒu�Ɉړ����邱�Ƃ��ł���BModify DN Request �̒�`�͈ȉ��̒ʂ�F
ModifyDNRequest ::= [APPLICATION 12] SEQUENCE { entry LDAPDN, newrdn RelativeLDAPDN, deleteoldrdn BOOLEAN, newSuperior [0] LDAPDN OPTIONAL }
Parameters of the Modify DN Request are: Modify DN Request �̃p�����[�^�͈ȉ��̒ʂ�F
The result of the name change attempted by the server upon receipt of a Modify DN Request is returned in the Modify DN Response, defined as follows: Modify DN Request �̎�M�ɂ��T�[�o�[�����݂����O�ύX�̌��ʂ́A�ȉ��̂悤�ɒ�`����� Modify DN Response ���ŕԂ����F
ModifyDNResponse ::= [APPLICATION 13] LDAPResult
Upon receipt of a ModifyDNRequest, a server will attempt to perform the name change. The result of the name change attempt will be returned to the client in the Modify DN Response. Modify DN Request ����M����ƁA�T�[�o�[�͂��̖��O�ύX�����݂�B���̌��ʂ� Modify DN Response ���ŃN���C�A���g�ɕԂ����B
For example, if the entry named in the "entry" parameter was "cn=John Smith,c=US", the newrdn parameter was "cn=John Cougar Smith", and the newSuperior parameter was absent, then this operation would attempt to rename the entry to be "cn=John Cougar Smith,c=US". If there was already an entry with that name, the operation would fail with error code entryAlreadyExists. �Ⴆ�A"entry" �p�����[�^���Ŏw�肳�ꂽ�p�����[�^�� "cn=John Smith,c=US" �ŁAnewrdn �p�����[�^�� "cn=John Cougar Smith"�AnewSuperior �p�����[�^�������̏ꍇ�A���̑���̓G���g���� "cn=John Cougar Smith,c=US" �ɉ������悤�Ǝ��݂Ă��邱�ƂɂȂ�B���̖��O�̃G���g�������ɑ��݂���ꍇ�A�G���[�R�[�h entryAlreadyExists �̎��s�ƂȂ�B
If the deleteoldrdn parameter is TRUE, the values forming the old RDN are deleted from the entry. If the deleteoldrdn parameter is FALSE, the values forming the old RDN will be retained as non-distinguished attribute values of the entry. The server may not perform the operation and return an error code if the setting of the deleteoldrdn parameter would cause a schema inconsistency in the entry. deleteoldrdn �p�����[�^�� TRUE �̏ꍇ�A�Â� RDN ���`�����Ă����l�̓G���g���[����폜�����Bdeleteoldrdn �p�����[�^�� FALSE �̏ꍇ�A�Â� RDN ���`�����Ă����l�́A���̃G���g���̋�ʂł��Ȃ������l�Ƃ��ĕێ������Bdeleteoldrdn �p�����[�^�̓��e�����̃G���g���̃X�L�[�}�ɕs��v�������N�����ꍇ�A�T�[�o�[�͂��̑�������s�����A�G���[�R�[�h��Ԃ��B
Note that X.500 restricts the ModifyDN operation to only affect entries that are contained within a single server. If the LDAP server is mapped onto DAP, then this restriction will apply, and the resultCode affectsMultipleDSAs will be returned if this error occurred. In general clients MUST NOT expect to be able to perform arbitrary movements of entries and subtrees between servers. X.500 �ł́AModifyDN Operation ���e����^����̂͒P�Ƃ̃T�[�o�[���Ɋ܂܂��G���g���݂̂ɐ�������Ă��邱�Ƃɒ��ӂ��Ăق����BLDAP �T�[�o�[�� DAP �Ƀ}�b�v����Ă���ꍇ�ɂ��̐������K�p����A�G���[�����������ꍇ�ɂ� resultCode �Ƃ��� affectsMultipleDSAs ���Ԃ����B��ʂɃN���C�A���g�́A�����T�[�o�[�ԂŃG���g����T�u�c���[�̔C�ӂ̈ړ������s�ł���Ɗ��҂��Ă͂Ȃ�Ȃ�(MUST NOT)�B
The Compare Operation allows a client to compare an assertion provided with an entry in the directory. The Compare Request is defined as follows: Compare Operation �ɂ��N���C�A���g�́A�f�B���N�g�����̃G���g���Ƌ��ɒ����A�T�[�V�������r���邱�Ƃ��ł���BCompare Request �̒�`�͈ȉ��̒ʂ�F
CompareRequest ::= [APPLICATION 14] SEQUENCE { entry LDAPDN, ava AttributeValueAssertion }
Parameters of the Compare Request are: Compare Request �̃p�����[�^�͈ȉ��̒ʂ�F
The result of the compare attempted by the server upon receipt of a Compare Request is returned in the Compare Response, defined as follows: Compare Request �̎�M�ɂ��T�[�o�[�����݂���r�̌��ʂ́A�ȉ��̂悤�ɒ�`����� Compare Response ���ŕԂ����F
CompareResponse ::= [APPLICATION 15] LDAPResult
Upon receipt of a Compare Request, a server will attempt to perform the requested comparison. The result of the comparison will be returned to the client in the Compare Response. Note that errors and the result of comparison are all returned in the same construct. Compare Request ����M����ƁA�T�[�o�[�͗v�����ꂽ��r�̎��s�����݂�B���̌��ʂ� Compare Response ���ŃN���C�A���g�ɕԂ����B��r�̌��ʂƃG���[�Ƃ����ɓ����\���̂ŕԂ���邱�Ƃɒ��ӂ��Ăق����B
Note that some directory systems may establish access controls which permit the values of certain attributes (such as userPassword) to be compared but not read. In a search result, it may be that an attribute of that type would be returned, but with an empty set of values. �f�B���N�g���V�X�e���ɂ���ẮA����̑���(�Ⴆ�� userPassword)�̒l�ɑ��A��r�͂ł��邪�ǂݎ��͂ł��Ȃ��A�N�Z�X�R���g���[�����߂Ă���\�������邱�ƒ��ӂ��Ăق����B�����̌��ʂɂ����Ă��̂悤�Ȏ�ނ̑����ɂ͋�̒l���Ԃ���Ă��悢�B
The function of the Abandon Operation is to allow a client to request that the server abandon an outstanding operation. The Abandon Request is defined as follows: Abandon Operation �ɂ��N���C�A���g�́A�T�[�o�[�ɖ������̑����j������悤�ɗv�����邱�Ƃ��ł���BAbandon Request �̒�`�͈ȉ��̒ʂ�F
AbandonRequest ::= [APPLICATION 16] MessageID
The MessageID MUST be that of a an operation which was requested earlier in this connection. MessageID �͂��̐ڑ��ňȑO�ɗv�����ꂽ����� MessageID �łȂ���Ȃ�Ȃ�(MUST)�B
(The abandon request itself has its own message id. This is distinct from the id of the earlier operation being abandoned.) (Abandon Request ���g�����b�Z�[�W ID �������Ă���A�j������鑀��� ID �Ƃ͋�ʂ����B)
There is no response defined in the Abandon Operation. Upon transmission of an Abandon Operation, a client may expect that the operation identified by the Message ID in the Abandon Request has been abandoned. In the event that a server receives an Abandon Request on a Search Operation in the midst of transmitting responses to the search, that server MUST cease transmitting entry responses to the abandoned request immediately, and MUST NOT send the SearchResponseDone. Of course, the server MUST ensure that only properly encoded LDAPMessage PDUs are transmitted. Abandon Operation �ɉ����͒�`����Ă��Ȃ��BAbandon Operation �𑗐M�������_�ŁA�N���C�A���g�� Abandon Request ���� Message ID �ɂ���Ď��ʂ���鑀�삪�j�����ꂽ���Ƃ����҂��Ă悢�BSearch Operation �̉����𑗐M���ɃT�[�o�[�� Abandon Request ����M�����ꍇ�A�T�[�o�[�͒��f���ꂽ���N�G�X�g�ɉ�����G���g���̑��M���ɒ�~���Ȃ���Ȃ炸(MUST)�ASearchResponseDone �𑗐M���Ă͂Ȃ�Ȃ�(MUST NOT)�B���R�Ȃ���A�T�[�o�[�͓K�ɈÍ������ꂽ LDAPMessage PDU �݂̂����M���ꂽ���Ƃ�ۏ��Ȃ���Ȃ�Ȃ�(MUST)�B
Clients MUST NOT send abandon requests for the same operation multiple times, and MUST also be prepared to receive results from operations it has abandoned (since these may have been in transit when the abandon was requested). �N���C�A���g�͓�������ɑ��ĕ����� Abandon Request �𑗐M���Ă͂Ȃ�Ȃ�(MUST NOT)�B�܂��A�j����v���������_�ł��łɑ��M���̉\�������邽�߁A�j���������삩��̌��ʂ���M���鏀�������Ă��Ȃ���Ȃ�Ȃ�(MUST)�B
Servers MUST discard abandon requests for message IDs they do not recognize, for operations which cannot be abandoned, and for operations which have already been abandoned. �T�[�o�[�́A�F���ł��Ȃ� MessageID �ɑ��� Abandon Request�A�j���ł��Ȃ�����ɑ��� Abandon Request�A���ɔj�����ꂽ����ɑ��� Abandon Request ��j�����Ȃ���Ȃ�Ȃ�(MUST)�B
An extension mechanism has been added in this version of LDAP, in order to allow additional operations to be defined for services not available elsewhere in this protocol, for instance digitally signed operations and results. ���p�s�\�ȃT�[�r�X(�Ⴆ�f�W�^�������Ƃ��̌���)�̂��߂ɁALDAP �̂��̃o�[�W�����ł́A�t������̒�`���\�ɂ���g�����J�j�Y�����lj����ꂽ�B
The extended operation allows clients to make requests and receive responses with predefined syntaxes and semantics. These may be defined in RFCs or be private to particular implementations. Each request MUST have a unique OBJECT IDENTIFIER assigned to it. Extended Operation �ɂ��N���C�A���g�́A���O�ɒ�`�������@�ƃZ�}���e�B�N�X�Ƃ��g���ėv�����s���A���̉�������邱�Ƃ��\�ɂȂ�B���@�Ɠ���� RFC �ɂ����Ē�`����邩�A����̎����̂��߂Ƀv���C�x�[�g�ɒ�`���邱�Ƃ��ł���B�e���N�G�X�g�͂���Ɋ��蓖�Ă�ꂽ���j�[�N�� OBJECT IDENTIFIER �������Ȃ���Ȃ�Ȃ�(MUST)�B
ExtendedRequest ::= [APPLICATION 23] SEQUENCE { requestName [0] LDAPOID, requestValue [1] OCTET STRING OPTIONAL }
The requestName is a dotted-decimal representation of the OBJECT IDENTIFIER corresponding to the request. The requestValue is information in a form defined by that request, encapsulated inside an OCTET STRING. requestName �͂��̗v���ɑΉ����� OBJECT IDENTIFIER �̃h�b�g��� 10 �i�\���ł���BrequestValue �͂��̗v���ɂ���Ē�`�����`���̏��ŁAOBJECT STRING �����ɃJ�v�Z���������B
The server will respond to this with an LDAPMessage containing the ExtendedResponse. �T�[�o�[�� ExtendedResponse ���܂� LDAPMessage �ł���ɉ�������B
ExtendedResponse ::= [APPLICATION 24] SEQUENCE { COMPONENTS OF LDAPResult, responseName [10] LDAPOID OPTIONAL, response [11] OCTET STRING OPTIONAL }
If the server does not recognize the request name, it MUST return only the response fields from LDAPResult, containing the protocolError result code. �T�[�o�[�� requestName ��F���ł��Ȃ��ꍇ�AresultCode �� protocolError ������ LDAPResult �� response �t�B�[���h�݂̂̂�Ԃ��Ȃ���Ȃ�Ȃ�(MUST)�B
One underlying service is defined here. Clients and servers SHOULD implement the mapping of LDAP over TCP described in 5.2.1. �����ł͉��ʃT�[�r�X���ЂƂ�`�����B�N���C�A���g�ƃT�[�o�[�� 5.2.1 �Ő�������Ă��� LDAP over TCP �̃}�b�s���O����������ׂ��ł���(SHOULD)�B
The protocol elements of LDAP are encoded for exchange using the Basic Encoding Rules (BER) [11] of ASN.1 [3]. However, due to the high overhead involved in using certain elements of the BER, the following additional restrictions are placed on BER-encodings of LDAP protocol elements: LDAP �̃v���g�R���v�f�́AASN.1[3] �� Basic Encoding Rules (BER)[11] ���g�p���ăG���R�[�h���ꂽ��Ō��������B�������Ȃ��� BER �̓���̗v�f���g�p���邱�ƂɊ֘A���鍂���I�[�o�[�w�b�h�̂��߁ALDAP �v���g�R���v�f�� BER �G���R�[�h�ɂ͈ȉ��̐������lj������F
These restrictions do not apply to ASN.1 types encapsulated inside of OCTET STRING values, such as attribute values, unless otherwise noted. ���ɖ��L���Ȃ�����A�����̐����� OCTET STRING �l�̓����ɃJ�v�Z�������ꂽ ASN.1 �̌^�ɂ͓K�p����Ȃ��B
This protocol is designed to run over connection-oriented, reliable transports, with all 8 bits in an octet being significant in the data stream. ���̃v���g�R���́A�f�[�^�X�g���[������ 1 �I�N�e�b�g�� 8 �r�b�g���ׂĂ��L���ȃR�l�N�V�����w���̐M���ł���g�����X�|�[�g��œ��삷��悤�ɐv����Ă���B
The LDAPMessage PDUs are mapped directly onto the TCP bytestream. It is recommended that server implementations running over the TCP MAY provide a protocol listener on the assigned port, 389. Servers may instead provide a listener on a different port number. Clients MUST support contacting servers on any valid TCP port. LDAPMessage �� PDU �� TCP �̃o�C�g�X�g���[���ɒ��ڃ}�b�s���O�����BTCP ��œ��삷��T�[�o�[�����́A���蓖�čς݃|�[�g 389 �Ńv���g�R�����X�i�[����邱�Ƃ𐄏������B�T�[�o�[�͈قȂ�|�[�g�ԍ��Ń��X�i�[����Ă��悢(MAY)�B�N���C�A���g�͔C�ӂ̗L���� TCP �|�[�g��ł̃T�[�o�[�Ƃ̒ʐM���T�|�[�g���Ȃ���Ȃ�Ȃ�(MUST)�B
This document describes an Internet protocol. ���̕����̓C���^�[�l�b�g�v���g�R����������Ă���B
The server MUST be capable of recognizing all the mandatory attribute type names and implement the syntaxes specified in [5]. Servers MAY also recognize additional attribute type names. �T�[�o�[�́A���ׂĂ̕K�{�̑����^����F������\�͂������A[5] �̕��@�K����������Ȃ���Ȃ�Ȃ�(MUST)�B�T�[�o�[�͒lj��̑����^����F�����Ă��悢(MAY)�B
Clients which request referrals MUST ensure that they do not loop between servers. They MUST NOT repeatedly contact the same server for the same request with the same target entry name, scope and filter. Some clients may be using a counter that is incremented each time referral handling occurs for an operation, and these kinds of clients MUST be able to handle a DIT with at least ten layers of naming contexts between the root and a leaf entry. �Q�Ƃ�v������N���C�A���g�́A�T�[�o�[�ԂŃ��[�v���Ȃ����Ƃ�ۏ��Ȃ���Ȃ�Ȃ�(MUST)�B�N���C�A���g�́A�����^�[�Q�b�g�G���g�����E�X�R�[�v�E�t�B���^�����������N�G�X�g���A�����T�[�o�[�ɌJ��Ԃ����M�Ă͂Ȃ�Ȃ�(MUST NOT)�B�N���C�A���g�͑���̂��߂ɔ��������Q�Ə������ƂɃC���N�������g�����J�E���^���g�p���Ă��悭�A���̂悤�ȃN���C�A���g�́A���[�g�ƃ��[�t�̃G���g���Ԃŏ��Ȃ��Ƃ� 10 �K�w�̖��O�t���R���e�L�X�g������ DIT �������ł��Ȃ���Ȃ�Ȃ�(MUST)�B
In the absence of prior agreements with servers, clients SHOULD NOT assume that servers support any particular schemas beyond those referenced in section 6.1. Different schemas can have different attribute types with the same names. The client can retrieve the subschema entries referenced by the subschemaSubentry attribute in the server's root DSE or in entries held by the server. �T�[�o�[�Ɋւ���O�q�̍��ӂ��Ȃ��ꍇ�A�N���C�A���g�́A�Z�N�V���� 6.1 �Ō��y����Ă���X�L�[�}�͈̔͂�����ʂȃX�L�[�}���T�[�o�[���T�|�[�g���Ă���Ɖ��肷��ׂ��ł͂Ȃ�(SHOULD NOT)�B�قȂ�X�L�[�}�ł���A�������O�ł��قȂ鑮���^�������Ƃ��ł���B�N���C�A���g�́A�T�[�o�[�̃��[�g DSE �܂��̓T�[�o�[�ɂ���ĕێ�����Ă���G���g���̂ǂ��炩�� subschemaSubentry �����ɂ���ĎQ�Ƃ����T�u�X�L�[�}�G���g�����擾���邱�Ƃ��ł���B
When used with a connection-oriented transport, this version of the protocol provides facilities for the LDAP v2 authentication mechanism, simple authentication using a cleartext password, as well as any SASL mechanism [12]. SASL allows for integrity and privacy services to be negotiated. �R�l�N�V�����w���̒ʐM���g�p����ꍇ�A���̃v���g�R���̂��̃o�[�W�����́A�C�ӂ� SASL ���J�j�Y�� [12] �͂������ALDAP v2 �F���J�j�Y���╽���p�X���[�h�ɂ��P���F�̂��߂̋@�\������BSASL �ɂ��A���S������ы@�����̃T�[�r�X�����ł���B
It is also permitted that the server can return its credentials to the client, if it chooses to do so. �T�[�o�[��(�������邱�Ƃ�I�������̂ł����)�A�N���C�A���g�Ɏ��g�̏ؖ�����Ԃ����Ƃ�������Ă���B
Use of cleartext password is strongly discouraged where the underlying transport service cannot guarantee confidentiality and may result in disclosure of the password to unauthorized parties. ���w�̃g�����X�|�[�g�T�[�r�X���M������ۏł����A�F����Ȃ��Q���҂Ƀp�X���[�h���J�������\��������ꍇ�A�����p�X���[�h�̎g�p�͂܂�������������Ȃ��B
When used with SASL, it should be noted that the name field of the BindRequest is not protected against modification. Thus if the distinguished name of the client (an LDAPDN) is agreed through the negotiation of the credentials, it takes precedence over any value in the unprotected name field. SASL ���g�p����ꍇ�ABindRequest �� name �t�B�[���h�͍X�V�ɑ��ĕی삳��Ȃ����Ƃɒ��ӂ���ׂ��ł���B���Ȃ킿�A�ؖ����ɂ���茈�߂�ʂ��ăN���C�A���g�̎��ʖ�(LDAPDN)�����ӂ���Ă���ꍇ�A����͕ی삳��Ă��Ȃ� name �t�B�[���h���̂��ׂĂ̒l�ɗD�悷��Ƃ������Ƃł���B
Implementations which cache attributes and entries obtained via LDAP MUST ensure that access controls are maintained if that information is to be provided to multiple clients, since servers may have access control policies which prevent the return of entries or attributes in search results except to particular authenticated clients. For example, caches could serve result information only to the client whose request caused it to be cache. �T�[�o�[�͓���̔F�؍ς݃N���C�A���g�ȊO�ւ̌������ʂɃG���g���⑮����Ԃ����Ƃ��֎~����A�N�Z�X�R���g���[���|���V�[�������Ă��悢���߁ALDAP �o�R�Ŏ擾����������G���g�����L���b�V����������́A���̏�����̃N���C�A���g�ɒ����ꍇ�ł��A�A�N�Z�X�R���g���[�����ێ�����邱�Ƃ�ۏ��Ȃ���Ȃ�Ȃ�(MUST)�B�Ⴆ�L���b�V���́A���̃L���b�V�����ꂽ���N�G�X�g�s�����N���C�A���g�ɑ��Ă̂݁A���̌��ʏ���ł��邾�낤�B
This document is an update to RFC 1777, by Wengyik Yeong, Tim Howes, and Steve Kille. Design ideas included in this document are based on those discussed in ASID and other IETF Working Groups. The contributions of individuals in these working groups is gratefully acknowledged. ���̕����� Wengyik Yeong, Tim Howes, Steve Kille �ɂ�� RFC 1777 �̃A�b�v�f�[�g�ł���B���̕������Ɋ܂܂��v�̃A�C�f�A�́AASID �₻�̑��� IETF ���[�L���O�O���[�v�ŋc�_���ꂽ���̂Ɋ�Â��Ă���B�����̃��[�L���O�O���[�v�̌l�̍v���҂ɐ[�����ӂ���B
[1] ITU-T Rec. X.500, "The Directory: Overview of Concepts, Models and Service", 1993.
[2] Yeong, W., Howes, T., and S. Kille, "Lightweight Directory Access Protocol", RFC 1777, March 1995.
[3] ITU-T Rec. X.680, "Abstract Syntax Notation One (ASN.1) - Specification of Basic Notation", 1994.
[4] Kille, S., Wahl, M., and T. Howes, "Lightweight Directory Access Protocol (v3): UTF-8 String Representation of Distinguished Names", RFC 2253, December 1997.
[5] Wahl, M., Coulbeck, A., Howes, T., and S. Kille, "Lightweight Directory Access Protocol (v3): Attribute Syntax Definitions", RFC 2252, December 1997.
[6] ITU-T Rec. X.501, "The Directory: Models", 1993.
[7] Berners-Lee, T., Masinter, L., and M. McCahill, "Uniform Resource Locators (URL)", RFC 1738, December 1994.
[8] ITU-T Rec. X.511, "The Directory: Abstract Service Definition", 1993.
[9] Howes, T., and M. Smith, "The LDAP URL Format", RFC 2255, December 1997.
[10] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", RFC 2119, March 1997.
[11] ITU-T Rec. X.690, "Specification of ASN.1 encoding rules: Basic, Canonical, and Distinguished Encoding Rules", 1994.
[12] Meyers, J., "Simple Authentication and Security Layer", RFC 2222, October 1997.
[13] Universal Multiple-Octet Coded Character Set (UCS) - Architecture and Basic Multilingual Plane, ISO/IEC 10646-1 : 1993.
[14] Yergeau, F., "UTF-8, a transformation format of Unicode and ISO 10646", RFC 2044, October 1996.
Mark Wahl Critical Angle Inc. 4815 W Braker Lane #502-385 Austin, TX 78759 USA Phone: +1 512 372-3160 EMail: [email protected] Tim Howes Netscape Communications Corp. 501 E. Middlefield Rd., MS MV068 Mountain View, CA 94043 USA Phone: +1 650 937-3419 EMail: [email protected] Steve Kille Isode Limited The Dome, The Square Richmond TW9 1DT UK Phone: +44-181-332-9091 EMail: [email protected]
Lightweight-Directory-Access-Protocol-V3 DEFINITIONS IMPLICIT TAGS ::= BEGIN LDAPMessage ::= SEQUENCE { messageID MessageID, protocolOp CHOICE { bindRequest BindRequest, bindResponse BindResponse, unbindRequest UnbindRequest, searchRequest SearchRequest, searchResEntry SearchResultEntry, searchResDone SearchResultDone, searchResRef SearchResultReference, modifyRequest ModifyRequest, modifyResponse ModifyResponse, addRequest AddRequest, addResponse AddResponse, delRequest DelRequest, delResponse DelResponse, modDNRequest ModifyDNRequest, modDNResponse ModifyDNResponse, compareRequest CompareRequest, compareResponse CompareResponse, abandonRequest AbandonRequest, extendedReq ExtendedRequest, extendedResp ExtendedResponse }, controls [0] Controls OPTIONAL } MessageID ::= INTEGER (0 .. maxInt) maxInt INTEGER ::= 2147483647 -- (2^^31 - 1) -- LDAPString ::= OCTET STRING LDAPOID ::= OCTET STRING LDAPDN ::= LDAPString RelativeLDAPDN ::= LDAPString AttributeType ::= LDAPString AttributeDescription ::= LDAPString AttributeDescriptionList ::= SEQUENCE OF AttributeDescription AttributeValue ::= OCTET STRING AttributeValueAssertion ::= SEQUENCE { attributeDesc AttributeDescription, assertionValue AssertionValue } AssertionValue ::= OCTET STRING Attribute ::= SEQUENCE { type AttributeDescription, vals SET OF AttributeValue } MatchingRuleId ::= LDAPString
LDAPResult ::= SEQUENCE { resultCode ENUMERATED { success (0), operationsError (1), protocolError (2), timeLimitExceeded (3), sizeLimitExceeded (4), compareFalse (5), compareTrue (6), authMethodNotSupported (7), strongAuthRequired (8), -- 9 reserved -- referral (10), -- new adminLimitExceeded (11), -- new unavailableCriticalExtension (12), -- new confidentialityRequired (13), -- new saslBindInProgress (14), -- new noSuchAttribute (16), undefinedAttributeType (17), inappropriateMatching (18), constraintViolation (19), attributeOrValueExists (20), invalidAttributeSyntax (21), -- 22-31 unused -- noSuchObject (32), aliasProblem (33), invalidDNSyntax (34), -- 35 reserved for undefined isLeaf -- aliasDereferencingProblem (36), -- 37-47 unused -- inappropriateAuthentication (48), invalidCredentials (49), insufficientAccessRights (50), busy (51), unavailable (52), unwillingToPerform (53), loopDetect (54), -- 55-63 unused -- namingViolation (64), objectClassViolation (65), notAllowedOnNonLeaf (66), notAllowedOnRDN (67), entryAlreadyExists (68), objectClassModsProhibited (69), -- 70 reserved for CLDAP -- affectsMultipleDSAs (71), -- new -- 72-79 unused -- other (80) }, -- 81-90 reserved for APIs -- matchedDN LDAPDN, errorMessage LDAPString, referral [3] Referral OPTIONAL }
LDAPResult ::= SEQUENCE { resultCode ENUMERATED { success (0), operationsError (1), protocolError (2), timeLimitExceeded (3), sizeLimitExceeded (4), compareFalse (5), compareTrue (6), authMethodNotSupported (7), strongAuthRequired (8), -- 9 �\��ς� -- referral (10), -- �V�K adminLimitExceeded (11), -- �V�K unavailableCriticalExtension (12), -- �V�K confidentialityRequired (13), -- �V�K saslBindInProgress (14), -- �V�K noSuchAttribute (16), undefinedAttributeType (17), inappropriateMatching (18), constraintViolation (19), attributeOrValueExists (20), invalidAttributeSyntax (21), -- 22-31 ���g�p -- noSuchObject (32), aliasProblem (33), invalidDNSyntax (34), -- 35 �͖���`�� isLeaf �̂��߂ɗ\��ς� -- aliasDereferencingProblem (36), -- 37-47 ���g�p -- inappropriateAuthentication (48), invalidCredentials (49), insufficientAccessRights (50), busy (51), unavailable (52), unwillingToPerform (53), loopDetect (54), -- 55-63 ���g�p -- namingViolation (64), objectClassViolation (65), notAllowedOnNonLeaf (66), notAllowedOnRDN (67), entryAlreadyExists (68), objectClassModsProhibited (69), -- 70 �� CLDAP �̂��߂ɗ\��ς� -- affectsMultipleDSAs (71), -- �V�K -- 72-79 ���g�p -- other (80) }, -- 81-90 �� API �̂��߂ɗ\��ς� -- matchedDN LDAPDN, errorMessage LDAPString, referral [3] Referral OPTIONAL }
Referral ::= SEQUENCE OF LDAPURL
LDAPURL ::= LDAPString -- limited to characters permitted in URLs
LDAPURL ::= LDAPString -- URL �ɂ����ċ�����镶���ɐ��������
Controls ::= SEQUENCE OF Control Control ::= SEQUENCE { controlType LDAPOID, criticality BOOLEAN DEFAULT FALSE, controlValue OCTET STRING OPTIONAL } BindRequest ::= [APPLICATION 0] SEQUENCE { version INTEGER (1 .. 127), name LDAPDN, authentication AuthenticationChoice }
AuthenticationChoice ::= CHOICE { simple [0] OCTET STRING, -- 1 and 2 reserved sasl [3] SaslCredentials }
AuthenticationChoice ::= CHOICE { simple [0] OCTET STRING, -- 1 �� 2 �͗\��ς� sasl [3] SaslCredentials }
SaslCredentials ::= SEQUENCE { mechanism LDAPString, credentials OCTET STRING OPTIONAL } BindResponse ::= [APPLICATION 1] SEQUENCE { COMPONENTS OF LDAPResult, serverSaslCreds [7] OCTET STRING OPTIONAL } UnbindRequest ::= [APPLICATION 2] NULL SearchRequest ::= [APPLICATION 3] SEQUENCE { baseObject LDAPDN, scope ENUMERATED { baseObject (0), singleLevel (1), wholeSubtree (2) }, derefAliases ENUMERATED { neverDerefAliases (0), derefInSearching (1), derefFindingBaseObj (2), derefAlways (3) }, sizeLimit INTEGER (0 .. maxInt), timeLimit INTEGER (0 .. maxInt), typesOnly BOOLEAN, filter Filter, attributes AttributeDescriptionList } Filter ::= CHOICE { and [0] SET OF Filter, or [1] SET OF Filter, not [2] Filter, equalityMatch [3] AttributeValueAssertion, substrings [4] SubstringFilter, greaterOrEqual [5] AttributeValueAssertion, lessOrEqual [6] AttributeValueAssertion, present [7] AttributeDescription, approxMatch [8] AttributeValueAssertion, extensibleMatch [9] MatchingRuleAssertion } SubstringFilter ::= SEQUENCE { type AttributeDescription, -- at least one must be present substrings SEQUENCE OF CHOICE { initial [0] LDAPString, any [1] LDAPString, final [2] LDAPString } } MatchingRuleAssertion ::= SEQUENCE { matchingRule [1] MatchingRuleId OPTIONAL, type [2] AttributeDescription OPTIONAL, matchValue [3] AssertionValue, dnAttributes [4] BOOLEAN DEFAULT FALSE } SearchResultEntry ::= [APPLICATION 4] SEQUENCE { objectName LDAPDN, attributes PartialAttributeList } PartialAttributeList ::= SEQUENCE OF SEQUENCE { type AttributeDescription, vals SET OF AttributeValue } SearchResultReference ::= [APPLICATION 19] SEQUENCE OF LDAPURL SearchResultDone ::= [APPLICATION 5] LDAPResult ModifyRequest ::= [APPLICATION 6] SEQUENCE { object LDAPDN, modification SEQUENCE OF SEQUENCE { operation ENUMERATED { add (0), delete (1), replace (2) }, modification AttributeTypeAndValues } } AttributeTypeAndValues ::= SEQUENCE { type AttributeDescription, vals SET OF AttributeValue } ModifyResponse ::= [APPLICATION 7] LDAPResult AddRequest ::= [APPLICATION 8] SEQUENCE { entry LDAPDN, attributes AttributeList } AttributeList ::= SEQUENCE OF SEQUENCE { type AttributeDescription, vals SET OF AttributeValue } AddResponse ::= [APPLICATION 9] LDAPResult DelRequest ::= [APPLICATION 10] LDAPDN DelResponse ::= [APPLICATION 11] LDAPResult ModifyDNRequest ::= [APPLICATION 12] SEQUENCE { entry LDAPDN, newrdn RelativeLDAPDN, deleteoldrdn BOOLEAN, newSuperior [0] LDAPDN OPTIONAL } ModifyDNResponse ::= [APPLICATION 13] LDAPResult CompareRequest ::= [APPLICATION 14] SEQUENCE { entry LDAPDN, ava AttributeValueAssertion } CompareResponse ::= [APPLICATION 15] LDAPResult AbandonRequest ::= [APPLICATION 16] MessageID ExtendedRequest ::= [APPLICATION 23] SEQUENCE { requestName [0] LDAPOID, requestValue [1] OCTET STRING OPTIONAL } ExtendedResponse ::= [APPLICATION 24] SEQUENCE { COMPONENTS OF LDAPResult, responseName [10] LDAPOID OPTIONAL, response [11] OCTET STRING OPTIONAL } END
Copyright (C) The Internet Society (1997). All Rights Reserved.
This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the Internet Society or other Internet organizations, except as needed for the purpose of developing Internet standards in which case the procedures for copyrights defined in the Internet Standards process must be followed, or as required to translate it into languages other than English.
The limited permissions granted above are perpetual and will not be revoked by the Internet Society or its successors or assigns.
This document and the information contained herein is provided on an "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
�g�b�v�y�[�W - �|��h�L�������g - RFC 2251