Sun ONE �?     p��      �ܼ�      ���      ����     
Sun ONE Directory Server 5.2 �������



��Ͽ A   DSMLv2 ����Ѥ��� HTTP/SOAP ��ͳ�Υǡ����ؤΥ�������

Sun ONE Directory Server 5.2 �ϡ�DSMLv2 �򥵥ݡ��Ȥ��Ƥ��ޤ���DSMLv2 �ϡ�LDAP �С������ 3 �ΤۤȤ�ɤΥ����꡼��������ǽ�� XML��SOAP��HTTP �˥ޥåԥ󥰤��ޤ����ǥ��쥯�ȥ�����Ԥ�����ˡ�DSMLv2 �ϥǥ��쥯�ȥ�ǡ����ؤΥ��������� XML �� Web �����С���$����ľ�ܹ����ޤ��������Ǥϡ�������򻲹ͤˡ�DSMLv2 ����Ѥ��� SOAP/HTTP ��ͳ�ǥǥ��쥯�ȥ�����Ԥ���ˡ�ˤĤ��ƾܺ٤����$��ޤ���

DSML ��Ϣ��°-�δ�t�ʥꥹ�Ȥȡ�DSMLv2 ɸ��ˤĤ��Ƥϡ���Sun ONE Directory Server Reference Manual�٤򻲾Ȥ��Ƥ��$�����DSML �˴�Ϣ������ˤĤ��Ƥϡ���Sun ONE Directory Server ������٤򻲾Ȥ��Ƥ��$�����

���ƿ̾ DSML Ping �׵�

HTTP/SOAP ��ͳ�� DSML �׵��ȯ�Ԥ���p�ˡ���� DSML �Хå��׵��ǥ��쥯�ȥ�������DSML �ե��ȥ���ɤ�ͭ����Ƥ��뤳�Ȥ��ǧ����ɬ�פ�����ޤ������ DSML �Хå��׵�ϡ����Τ褦�ˤʤ�ޤ���


POST /dsml HTTP/1.1
content-length: 451
HOST: hostMachine
SOAPAction: ""
Content-Type: text/xml
Connection: close

<?xml version=ɒ.0Ɂencoding=ɶTF-8ɠ>
<soap-env:Envelope
   xmlns:xsd='http://www.w3.org/2001/XMLSchema'
   xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
   xmlns:soap-env=��ttp://schemas.xmlsoap.org/soap/envelope/ɇgt;

   <soap-env:Body>
      <batchRequest
          xmlns='urn:oasis:names:tc:DSML:2:0:core'           requestID=ɱing!ɇgt;
          <!-- empty batch request -->
      </batchRequest>
   </soap-env:Body>
</soap-env:Envelope>


���� DSML �κǽ�Υ��������ϡ�HTTP ���������Ǥ���


POST /dsml HTTP/1.1
content-length: 451
HOST: hostMachine
SOAPAction: ""
Content-Type: text/xml
Connection: close


����ϡ����� HTTP �᥽�åɹԤ��鹽.����ޤ���

POST /dsml HTTP/1.1

HTTP �إå!����ֹ椬³���ޤ���HTTP �᥽�åɹԤϡ�HTTP �᥽�å��׵�ȡ�DSML �ե��ȥ���ɤ����Ѥ��� URL ����ꤷ�ޤ���POST �ϡ�DSML �ե��ȥ���ɤ����դ���ͣ��� HTTP �᥽�å��׵�򼨤���/dsml URL �ˤ� Directory Server �Υǥե���� URL �ʳ���Ǥ�դ�ͭ�� URL ������Ǥ��ޤ�������ʸ�� HTTP �إå!��ϡ�DSML �׵�λĤ�ξܺ٤���ꤷ�ޤ������Υإå!��ϡ�

content-length: 451

SOAP/DSML �׵�μºݤ�Ĺ������ꤷ�����Υإå!��ϡ�

HOST: hostMachine

Directory Server ����³����ۥ��Ȥ�̾p����ꤷ�ޤ������Υإå!��ϡ�

SOAPAction:

ɬ�ܥإå!��Ǥ�������ϡ�HTTP/SOAP �����å��Ǥ� DSML �׵�μ¹Ԥ�ǥ��쥯�ȥ���Τ餻�ޤ������$������Υإå!��϶�Τޤ޻Ĥ����Ȥ��Ǥ��ޤ������Υإå!��ϡ�

Content-Type: text/xml

�ͤȤ��� text/xml ����ɬ�פ�����ޤ�������ϡ�����ƥ�Ĥ� XML �Ǥ��뤳�Ȥ���d��ޤ����Ǹ�Υإå!��ϡ�

Connection: close

�׵᤬.��������³���Ĥ��뤳�Ȥ���ꤷ�Ƥ��ޤ����ǥե���Ȥ� HTTP/1.1 ��ư��Ǥϡ���³�ϳ��������֤ǰݻ��ޤ���

���Υ��������ϡ��׵�� SOAP/DSML ����������.���ޤ���


<?xml version=ɒ.0Ɂencoding=ɶTF-8ɠ>
<soap-env:Envelope
   xmlns:xsd='http://www.w3.org/2001/XMLSchema'
   xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
   xmlns:soap-env=��ttp://schemas.xmlsoap.org/soap/envelope/ɇgt;

   <soap-env:Body>
      <batchRequest
          xmlns='urn:oasis:names:tc:DSML:2:0:core'           requestID=ɱing!ɇgt;
          <!-- empty batch request -->
      </batchRequest>
   </soap-env:Body>
</soap-env:Envelope>


DSML �׵�ϡ����� XML ��%إå!�����Ϥޤ�ޤ���

<?xml version=ɒ.0Ɂencoding=ɶTF-8ɠ>

����ϡ��׵᤬ UTF-8 ʸ��åȤ���沽����ʤ���Фʤ�ʤ����Ȥ򼨤��ޤ������ˡ�SOAP ����٥?�פȡ�ɬ�ܤ� XML �������ޡ�XML �������ޥ��󥹥��󥹡�SOAP �͡��ॹ�ڡ�����ޤ����ʸ���Ǥ����Τ褦��³���ޤ���

<soap-env:Envelope
   xmlns:xsd='http://www.w3.org/2001/XMLSchema'
   xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
   xmlns:soap-env=��ttp://schemas.xmlsoap.org/soap/envelope/ɇgt;

   <soap-env:Body>

���� DSML �Хå��׵����Ǥϡ�

      <batchRequest

DSML �Хå��׵�γ��Ϥ򼨤���ľ���ɬ�� DSMLv2 �͡��ॹ�ڡ�����ޤ�����Ǥ�³���ޤ���

xmlns='urn:oasis:names:tc:DSML:2:0:core'.

����ˡ����ץ����Ȥ��Ƽ����׵� ID �����ꤵ��ޤ���

requestID=ɱing!ɇgt;

��ΥХå��׵�ϡ�

<!-- empty batch request -->.
���Τ褦�˥����ȥ����Ȥ��줿 XML �Ǥ���SOAP/DSML �Хå��׵�ϡ�³���Хå��׵�ν�λ��SOAP ��ʸ�ν�λ��SOAP ����٥?�����Ǥν�λ�ˤ�ä��Ĥ����ޤ���

      </batchRequest>
   </soap-env:Body>
</soap-env:Envelope>



�ٹ�

�ǥ��쥯�ȥ��Ʊ������³�Ǥ��륯�饤����ȿ�ȡ�DSML �׵�Υ������ˤϡ�����)�¤�Ŭ�Ѥ���ޤ������饤����ȿ��)�¤� ds-dsml-poolsize °-�� ds-dsml-poolmaxsize °-�ˤ�äƴ���졢�׵᥵������)�¤� ds-dsmll-requestmaxsize °-�ˤ�äƴ����ޤ���DSML ��Ϣ��°-�ξܺ٤ϡ���Sun ONE Directory Server Reference Manual�٤򻲾Ȥ��Ƥ��$�����



DSML �ե��ȥ���ɤ�ͭ����Ƥ���С���� DSML �׵���Ф��Ƽ��Τ褦�ʱ����֤���ޤ���


HTTP/1.1 200 OK
Cache-control: no-cache
Connection: close
Date: Mon, 09 Sep 2002 13:56:49 GMT
Accept-Ranges:none
Server: Sun-ONE-Directory/5.2
Content-Type: text/xml; charset="utf-8"
Content-Length: 500

<?xml version=ɒ.0Ɂencoding=ɶTF-8Ɂ?>
<soap-env:Envelope
   xmlns:xsd='http://www.w3.org/2001/XMLSchema'
   xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
   xmlns:soap-env='http://schemas.xmlsoap.org/soap/envelope/'
   >
<soap-env:Body>
<batchResponse
   xmlns:xsd='http://www.w3.org/2001/XMLSchema'
   xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
   xmlns='urn:oasis:names:tc:DSML:2:0:core'
   requestID='Ping!'
   >
</batchResponse>
</soap-env:Body>
</soap-env:Envelope>


�ʤˤ��֤���ʤ����ϡ��ե��ȥ���ɤ�̵��Ǥ��뤳�Ȥ��狼��ޤ���



��

DSML �ե��ȥ���ɤϡ��ǥե���ȤǤ�̵����Ƥ��ޤ���ͭ����ˤϡ�dse.ldif �ե������ cn=DSMLv2-SOAP-HTTP,cn=frontends,cn=plugins,cn=config ����ȥ�β��ˤ��� nsslapd-pluginEnabled °-���ͤ� on ���ѹ�����ɬ�פ�����ޤ����ޤ���ds-hdsml-port °-�� ds-hdsml-root °-���ѹ����뤳�Ȥ�Ǥ��ޤ���������ϥ��ץ����Ǥ���DSML �ե��ȥ���ɤ�ͭ��ˤĤ��ƾܺ٤ϡ���Sun ONE Directory Server ������٤򻲾Ȥ��Ƥ��$�����



�桼�����Х���ɤ�ȯ�Ԥ��� DSML �׵�

LDAP �ץ�ȥ���ξ���Ʊ�ͤˡ�DSML �׵��ȯ�Ԥ���ˤϡ�����Υ桼�����Ȥ��ƥǥ��쥯�ȥ�˥Х���ɤ��뤫���ޤ���ƿ̾�ǥ����������ޤ�������Υ桼�����Ȥ��ƥǥ��쥯�ȥ�˥Х���ɤ���ˤϡ�dn �˥ޥåԥ󥰤���� uid �ȥѥ���ɤ�ޤ� HTTP ��ǧ�إå!���DSML �׵�˴ޤ�ޤ���



��

ID �Υޥåԥ󥰤����ꤹ����ˡ�ˤĤ��Ƥϡ���Sun ONE Directory Server ������٤򻲾Ȥ��Ƥ��$�����



HTTP ��ǧ�׵�ϡ����Τ褦�ˤʤ�ޤ���



POST /dsml HTTP/1.1
content-length: 578
Content-Type: text/xml; charset="utf-8"
HOST: hostMachine
Authorization: Basic ZWFzdGVyOmVnZw==
SOAPAction: ""
Connection: close

<?xml version=ɒ.0Ɂencoding=ɶTF-8ɠ>
<soap-env:Envelope
   xmlns:xsd='http://www.w3.org/2001/XMLSchema'
   xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
   xmlns:soap-env=��ttp://schemas.xmlsoap.org/soap/envelope/ɇgt;
   <soap-env:Body>
     <batchRequest
        xmlns='urn:oasis:names:tc:DSML:2:0:core'
        <extendedRequest>
          <requestName>1.3.6.1.4.1.4203.1.11.3</requestName>
        </extendedRequest>
     </batchRequest>
   </soap-env:Body>
</soap-env:Envelope>


������ϡ��ץ졼��ƥ����ȷ|��� easter �Ȥ��� uid �� egg �Ȥ����ѥ���ɤ� easter:egg ���Ѵ����졢base64 �Ǽ��Τ褦�˥����ɲ������ HTTP ��ǧ�إå!��򼨤��Ƥ��ޤ���

Authorization: Basic ZWFzdGVyOmVnZw==

ƿ̾�ǥ�������������ϡ�uid �ȥѥ���ɤ�ޤ� HTTP ��ǧ�إå!���ɬ�פ���ޤ��󡣤�������ƿ̾���������ϸ�̩�ʥ�������)���¿���ǵ����оݤȤʤ뤿�ᡢ�ǡ�������������)�󤵤���ǽ-���⤤���Ȥ���դ��Ƥ��$�����Ʊ�ͤˡ�LDAP �ץ?���Ȥ��� LDAP ����¹Ԥ��� DSML �׵��ȯ�Ԥ��뤳�Ȥ�Ǥ��ޤ���DSML �׵�ϥХåe١����Ǵ����뤿�ᡢLDAP �ץ?���Ȥ��Ƽ¹Ԥ��뤿����׵��ȯ�Ԥ������ɬ�פȤʤ� DSML �ץ?����ǧ�׵�ϡ������׵�Хådκǽ�˻��ꤹ��ɬ�פ����뤳�Ȥ���դ��Ƥ��$�����

DSML �����׵�

DSML �ե��ȥ���ɤ�ͭ���줿�顢�ǥ��쥯�ȥ����򳫻ϤǤ��ޤ������ˡ�namingContexts��supportedLDAPversion��vendorName��vendorVersion��supportedSASLMechanisms °-�ˤĤ��ơ��롼�� DSE ����ȥ���Ф��Ƽ¹Ԥ���� DSML �١����Υ��֥������ȸ����׵����򼨤��ޤ���



POST /dsml HTTP/1.1
HOST: hostMachine
Content-Length: 1081
Content-Type: text/xml
SOAPAction: ""
Connection: close

<?xml version=ɒ.0Ɂencoding=ɶTF-8ɠ>
<soap-env:Envelope
   xmlns:xsd='http://www.w3.org/2001/XMLSchema'
   xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
   xmlns:soap-env='http://schemas.xmlsoap.org/soap/envelope/'
   >
   <soap-env:Body>
      <batchRequest
        xmlns='urn:oasis:names:tc:DSML:2:0:core'
        requestID='Batch of search requests'
        >
        <searchRequest
            dn=""
            requestID="search on Root DSE"
            scope="baseObject"
            derefAliases="neverDerefAliases"
            typesOnly="false"
            >
            <filter>
               <present name="objectClass"/>
            </filter>
            <attributes>
               <attribute name="namingContexts"/>
               <attribute name="supportedLDAPversion"/>
               <attribute name="vendorName"/>
               <attribute name="vendorVersion"/>
               <attribute name="supportedSASLMechanisms"/>
            </attributes>
        </searchRequest>
      </batchRequest>
   </soap-env:Body>
</soap-env:Envelope>


°-�ȥǡ����μ��Υڥ�����ꤹ�뤳�Ȥǡ�

dn=""
requestID="search on Root DSE"

���θ������ϡ��롼�� DSE ����ȥ�β��ˤ��ꡢ���ץ������׵� ID °-�ˤ�ä����ꤵ���ǡ������׵ᤷ�ޤ�������°-�ȥǡ����Υڥ��ϡ�

scope="baseObject"

����١������֥������ȸ���Ǥ��뤳�Ȥ���ꤷ������°-���ͤΥڥ��ϡ�

derefAliases="neverDerefAliases"

�١������֥������Ȥθ���ޤ���������ˡ������ꥢ�������ܻ��Ȥ���ʤ����Ȥ���ꤷ�ޤ����ºݤˡ�Directory Server �����ݡ��Ȥ���Τ� derefAliases �ͤ$��Ǥ���

����°-�ȥǡ����Υڥ��ϡ�

typesOnly="false"

°-̾�Ȥ����ͤ�ξ���֤���뤳�Ȥ���ꤷ�ޤ���ȿ�Фˡ�typesOnly="true" �Ȼ��ꤷ�����ϡ�°-̾�$����֤���ޤ�������°-�Υǥե�����ͤ� false �Ǥ���

Ŭ�Ѥ���ե��륿�ˤϡ����֥������ȥ��饹�ե��륿�����Τ褦�˻��Ѥ���ޤ���

<filter>
   <present name="objectClass"/>
</filter>

���ˡ���Ū��°-�Υꥹ�Ȥ�³���ޤ���

<attributes>
   <attribute name="namingContexts"/>
   <attribute name="supportedLDAPversion"/>
   <attribute name="vendorName"/>
   <attribute name="vendorVersion"/>
   <attribute name="supportedSASLMechanisms"/>
</attributes>


p��      �ܼ�      ���      ����     
Copyright 2003 Sun Microsystems, Inc. All rights reserved.