�������������� �����

������������� ������� ���������

������� ��������� - ��������� Java, ������� ����� ������������ ��� ���������� ����������� � ������������ �������������, ����� ��� �������, ���������� ���� � Host On-Demand, ���� �� ������� LDAP. ������� ��������� ��������� ��������� ��� �������� ������ ��� ������ �������������, ����� ��� ������� �� ����� ASCII ������ ����, ����� ��������� ��� �������� �� �� ������ ����� ������ ����������. ��������, ������� ����� ������������ ���:

������� ��������� ���������� ���� ASCII, ������� �������� ����������� ���� ������, ������������� � �������. ���� ��������� ���� ������ ���� � ������� XML � ����� ���������� .xml.

������ ������� ���������
������������� ������������ ���������� ������� ���������
�������� ����� ������� XML � ��� ���������
������ ����� XML
����� � �������������� ������� list
������������� ������ ������� List

������ ������� ���������

������� ��������� ����� ���������, ��������� ���� ����������� ���������������� ���������, ���� ��������� ��������� ������.

����������� ��������� ������������

����� ��������� ����������� ��������� ������������...

� ����������� ���������� ������������ ������� ��������� ������� ������ �������� � ��������� ����:

�������� ����������
ID ������������
ID �������������� Host On-Demand.
������
������ �������������� Host On-Demand.
����
��� ����� ��� IP-����� ��������� ����� Host On-Demand. �������� � ���� ���� �������� �������������. �� ���������: localhost (127.0.0.1).
����
���� ��������� ����� Host On-Demand. �������� � ���� ���� �������� �������������. �������� �� ��������� - 8999.
�������� � �������
������� ���� XML
��� XML-�����, ����������� ��������, ������� �� ������ ���������. �������� ������ �������� ����� ������� XML � ��� ���������.
�����
��������, ����� ����� � ������� ������� XML-����.
������������� ���� HTML ��� �������� ������
�������� ��� �����, ���� ��������� �� ������� ����� XML �������� list � �� ������, ����� ���������� ������ ��������� � �������� ����� HTML.

��� �������� add, deleteupdate �� ������� XML-����� ��� ����� ������������.

����� HTML
��� ��������� HTML-�����, � ������� ����� �������� ���������� ������.
�����
��������, ����� ����� ������������ �������� XML-����.
OK
������� �� ��� �����, ����� ��������� ������� ��������� � �������������� ���������� �������� XML-�����.
������
��������, ����� ��������.
�������
��������, ����� �������� �������.
�����
�������
��� �������� �������, � ������� ���������� ������ ����������� �������� �� ������� XML-�����.
��������
��������, ����� �������� ������� �������.

��������� ��������� ������

� �������� Windows ���� ������� ��� �������� ��� ������� ������� ��������� � ������� ����� ��������� � �������� C:\Program Files\IBM\HostOnDemand\lib\samples\DirUtil. ���� ������� - ��� DirUtil.cmd, � ������ ���������� ����� - sample.xml. ��������� ���� ��� ���� �������� ��� ������ ������������ ������ � ������ ���������� ����� ����������� � �������� hostondemand\lib\samples\DirUtilCommandFiles. ������ ���������� ����� ���������� Sample.xml. ��������� ����� ��� ����� �������� ����������:

����� ��������� ������� ���������, ������� � ��������� ������:

������� ���������� �����.

DirUtil-xxx ���_�����.xml ������������� ������ [���_�����] [����] [CO

���:

��������� ����� Host On-Demand ������ ���� ������� �� ������� Host On-Demand, ��������� ���������� ���_�����, ����� ������� ��������� ��������� ���������� � ������������ Host On-Demand ��� LDAP.

��������, � AIX ����� ���������:

DirUtil-AIX file.xml admin password myhostname 8999 CON


������������� ������������ ���������� ������� ���������

����������� ��������� ������� ��������� - ��� ����������� ��������� ���������� ��������� ������. � ��� ������� �� ���������� ��������������, �������� ��� ����������� � ������������� �������, ������� �������� ���� � Host On-Demand, ���� �� ������� LDAP. ��������� ������� ��������� ��������� ��������� ��� �������� ������ ��� ������ �������������, ����� ��� ������� �� ����� ASCII ������ ����, ����� ��������� ��� �������� �� �� ������ ����� ������ ����������.

���������� ���� sample.xml, ������� ��� ��������� � ����� DirUtil. ���� ��������� ���� ������ ���� � ������� XML, � � ���� ������ ���� ���������� .xml, ����� ����� ����������� ����������� ���������.

������ ���������� ������� ���������

� 64-��������� ������������ ������� Windows ������� ����� ��������� � ������� ����� DirUtilGUI.bat, ������� ��������� � �������� C:\Program Files\IBM\HostOnDemand\lib\samples\DirUtil.

� 32-��������� ������������ ������� Windows ������� ����� ��������� � ������� ����� DirUtilGUI.bat, ������� ��������� � �������� C:\Program Files (x86)\IBM\HostOnDemand\lib\samples\DirUtil.

� ������������ ������� �� ������ Unix/Linux ������� ����� ��������� � ������� ����� DirUtilGUI.sh, ������� ��������� � �������� /opt/IBM/HostOnDemand/lib/samples/DirUtil.

����������:��� �������� �� ���������, � ������� ���������� ������� HOD. ���� ������� HOD ���������� � �������� ������������� ��������, ������������� ����� ������� <<�������_���������_HOD>>\lib\samples\DirUtil. ��������� ����� ��� ����� �������� ����������:

��������� ������������ ����������������� ����������

� ����������� ���������� ���� ���� ��� ������������ � ������, � ������� ������ ���� ������� ��� ������������ � ������ ��������������. �� ���������, � �������� ����� ������������ ������ �������� admin, � � �������� ������ - password.

������� �������� ��� ����� - ��� localhost, � ������� �������� ����� ����� - ��� 8999. � ������ ��������� ����� ����� ������ ������ ��� ����� � ����� �����.

�� ������ ������� XML-����, ���������� �������� � ������������, ������ ��� ������. ����� �������� � ���� ����������, ���������� � ��������.

������������� ���������� ���� HTML ��� �������� ������ ������������ ��� ������������� ������ ������������� ��� ����� ��� �����, �������� � xml-�����. ���� ���� HTML ������������� ������������, ���� ������ XML-����. ������������� ���������������� ����� HTML ������������� ���, ������������� ����� xml-�����, � �� ���������� ���� ��, ��� ��������� xml-����.

������������� ������ ������������� ��� ����� � ����� html ���������, ������ ���� ������� ������������� ���������� ���� HTML ��� �������� ������ � ������ ������������� ��� ����� ����� �������� � ����� HTML �� ��������� ��� ���������� ���������.

�������� ������ �� ������� ����� �������, ����� ������ ��������. ����� ����� ����������� ��� ������ � ����� ������, ������� �� ������ �����������.

����� �������� �� �������, ����� ������� ���������� ������� DirUtilGUI.

������������� ������ ������� List

���� ���������� ��� ������� �������� �������� ������ ��� ����� HTML:

�������� ����� ������� XML � ��� ���������

� ����������� ���� ��������� ��������� ����������� ������ ��� �������������� ��������� XML, ������� ����� ���� �������� � ���� XML, ������������ �������� ���������. ��� ���� ��������������� ������� ����� ������������� �� XML. ������, ������������ � "<!--" � ����������� "-->", ��������� �������������. � ��������� ����������� ������� ��������.

����� ������� ��� �������� ���� XML, ���� ������������ �������� ASCII, ������� ��������� ���������� ������� unicode. ���� �� ������������ �������� ASCII ��� ����� �����������, �� �������� ��������� �� ������ DIR0037 Fatal error: Invalid XML Character ��� ������������� ����� XML � �������� ���������. ��������� ������ �������� ASCII, ������� ��������� ���������� ������� unicode.

<dirscript>
    <action>

        <group>
            <groupid>
            <description>
            <parent>
            <removeusers>
   
        <user>
            <userid>
            <groupid>
            <description>
            <authentication>
                <pw>
                <nativeid>
            <savepref>
   
        <session>
            <filename>
            <groupid>
            <userid>
            <description>

        <userlist>
            <userid>
            <groupid>
            <filename>

        <grouplist>
            <userid>
            <groupid>
            <filename>


<dirscript>..</dirscript>

�������� ������� ����� XML, ������� �������� � ���� ��� ������ �������� � �������������� �������� ��� ��������� �������� ���������.

��������: ���

����������� ��������: <action type=xxx>

�������������� ��������: ���


<action type=xxx>..</action>

��������, ������� ����������� ��� ����������, ������������ � ������� <action>. � �������� <dirscript> ����� ���� ��������� ��������� ��������. �������� ����� XML �� ��������� ���� �������� <dirscript>, ���� ����� ��������, �������� ��������� ������������.

��������: add, delete, update ��� list

����������� ��������: ������ �������� <action> ��������� �� ������� ���� ���� �� ��������� ���������:

<group>..</group>
������, �� ������� ���������� ��������. ���� �������� - add � ������ ��� ����������, �� �������� ��������� � ���������� ������.


<user>..</user>
������������, �� �������� ���������� ��������. ���� �������� - add � ������������ ��� ����������, �� �������� ��������� � ���������� ������������.


<session>..</session>
�����, �� ������� ���������� ��������. ������� ������ ����������, ���� �������� - update. ���� ����� ��� ����������, ����������� ����� ����� � ������ "1:description" ����� �� ��������, ��� ������ ���������� ��������� ��������� �����.


<userlist>..</userlist>
����������� ������ ��� �������� list. ������� �������� XML-���� � ����������� � �������������. �������� ������ ����� � �������������� ������� list.


<grouplist>..</grouplist>
����������� ������ ��� �������� list. ������� �������� XML-���� � ����������� � �������. �������� ������ ����� � �������������� ������� list.
������� ��������� �� ������������ ������� <grouplist> ��� LDAP.

<group>..</group>

�������������� ������� ��� ������.

��������: ���

����������� ��������:

<groupid>..</groupid>
������ ������ unicode, ���������������� ������ � LDAP ��� Host On-Demand. ���� �� ����������� Host On-Demand, ��� ���������� ������ groupid ������������� � ������� �������. ���� �� ����������� LDAP, groupid ����� ��������� ������� ��� �� ��������, ��� � �� ������� ��������.

�������������� ��������:

<description>..</description>
������ ������ unicode, ����������� ������. ���� ������� ������������ ������ � ��� ������, ����� ��� �������� - add ��� update.
<parent>..</parent>
�������� ���� ������. ���� ������� ������������, ������ ���� �������� - add ��� update � ������������ LDAP. ���� ���� ������� �� ������, ����� �������� - add, ������ ����������� � ����� ������� �������.
<removeusers>..</removeusers>
���� ������� ��������� ��� �������� ������ ������� ���� ������������� � ��� �������������, �� ���������� ���������. ���� ������� ������������, ������ ���� �������� - delete, � �� ������������ LDAP. �������������� �������� - Yes � No. ���� ������� Yes, ��� �������� ������ ����� ������� ������������ � ���� ������. ���� ������� No � � ������ ���� ������������, �� ��� � ������ ��� ����������� � ������ HOD, � ������ ���������.

�������� �� ��������� - No.

���� ������������� �����, ��� ��������� ����� �������� ����� ������������� ��������� �����.

<user>..</user>

�������������� ������� ��� ������������.

��������: ���

����������� ��������:

<userid>..</userid>
������������� ������������. ���� ������� ��������� ������. ���� �� ����������� Host On-Demand, userid ������������� � ������ �������. ���� �� ����������� LDAP, userid ����� ��������� ������� ��� �� ��������, ��� � �� ������� ��������.
<groupid>..</groupid>
������, � ������� ����������� ������������. ���� ������� ���������, ����� ��� �������� - "add", � ������������, ����� ��� �������� - delete. ���� �� �� ����������� LDAP, ����� ������� ��������� ��������� <groupid>. ���� ��� ������������� LDAP ������� ��������� �����, ����� ������������� ��������� �� ������, � ������������ �������� �� �����. ����� � ��������� ������ ����� ���� �������� ������������, ��� ��� ������ ������������. ���� ��� �������� - update, ������������ ���������� ���, ��� ���������� ������ ���� ������.

�������������� ��������:

<description>..</description>
������ ������ unicode, ����������� ������������.
<authentication type=xxx>..</authentication>
����� ������� ��������������, �������������� ��� ������������. ���������� ���� - native � pw. ���� ���� ������� �� ������, ������� �������������� ��� ������������ ���������������� �� �����.
<savepref>..</savepref>
����� �������, ���� ������������ ����������� ��� ���������� ������������ (���������, ������� ������������ ����� ������ � ������������ ������ �����). �������������� �������� - Yes ��� No. ���� ���� ������� �� ������, ��� ������������ �� ��������� ��������������� Yes, � ������������ ����� ��������� ������������.
<removegroupid>..</removegroupid>
����� �������� ������������ ���, ��� �� �� ����� ������ ��������� ������. ���� ������� ������������ ������ � ��� ������, ����� ��� �������� - update. ���������� ������������ �������������� ������, ���������� ����� ������������.

<authentication type=xxx>..</authentication>

��������������, �������������� ��� ������������. ����� ������������ ���� ����������� �������������� (������ ���� �� ����� ����������� LDAP), ���� �������������� ������. ��� ������������ �� ����� ���������������� ������� ��������������, ���� ���� ������� �� ������ ��� ���� �������� add ��� ���� ������� native � �� �� ����������� LDAP.

��������: pw ��� native

����������� ��������:

<nativeid>..</nativeid>
ID ������������ � ����������� ������������ �������. ���� ������� ��������� � ������������ ������ ��� ������������� LDAP � ��� ���� �������������� native.

�������������� ��������:

<pw>..</pw>
������, ��������� � �������������. ���� ������� ������������, ������ ���� ��� �������������� - pw.
<changepw>..</changepw>
����� �������, ���� �� � ������������ ���������� ��� ��������� ������ ������. �������������� �������� - Yes ��� No. ���� ���� ������� �� ������, ��� ������������ �� ��������� ��������������� Yes, � ������������ ����� �������� ���� ������. ���� ������� ������������ ������ � ��� ������, ����� ��� �������������� - pw, � ������������, ����� ��� �������������� - native.

<session>..</session>

�������������� ������� ��� ������.

��������: ���

����������� ��������:

<filename>..</filename>
����, ���������� ����������� ������. ���� ����������� ������ ����� ������� ��� ������ ����� ���� �������������� ����� � ����� ������������ ������ Host On-Demand. �� ��������� ��� ������ ������� ������������ ���������� .hod. ������� <filename> ����� ��������� ������ ���� � ����� ������; ��� ����������� ������ ��� ���������� ������.
<description>..</description>
������ ������ unicode, ����������� ����� � ������������ � �������� ����� ����� ������. ������ <description> ����������� ��� ��������� ��� �������� ������. ���� ������ <description> �������, � �������� �������� ����� ������������ ��� ������.

� �������� <session> ��������� �� ������� ���� ���� �� ��������� ����� ���������:

<userid>..</userid>
������������� ������������, ��� �������� ����������� �����. ����� ����� ���� �������� �����, ID ������������� ��� ������ ������������. ����� �������� ��������� ��������� <userid>, ����� �������� ���� ����� ��� ���������� �������������.
<groupid>..</groupid>
������������� ������, � ������� ����������� �����. ����� ����� ���� �������� �����, ������ ��� ������ ������������. ����� �������� ��������� ��������� <groupid>, ����� �������� ����� ��� ���������� �����.
� �������� ������ ����� ������� ��������� ������������� ��� ��������� �����, �� ��������� � ����� � ��� �� �������� ������ � �������������, � ������ ������.

�������������� ��������: ���


<userlist>..</userlist>

�������������� ������� ��� ������ �� ������ �������������.

��������: ���

������������ ��������: ������ �� ����������������� ��������� ����� ������������ ������ �� ������ ����:

<userid>..</userid>
ID ������������, ������� ������ ������� ��������� ������.

<groupid>..</groupid>
ID ������, ������� ������ ������� ��������� ������.

���� ����������� ��� <userid> ��� <groupid>, ������� ��������� ������, ��� ��� ����� �������� ������������ ������ �����������, � ���������� ����� � ������������ � ����.

�������������� ��������: ������� ���� ������� ������ ���� ���, ����� ��������� ������ �� ���� ����:

<filename>..</filename>
����, � ������� ������� ��������� ���������� ����� XML. ����� ����� ������� ��������� ���������� ��� ����� XML.
���� �� �� ������� ��� �����, ������� ��������� ������� �������� ������ � ���� �� ���������. ���� �� ��������� - DirUtilList.xml, ������� ��������� � �������� hostondemand\lib\samples\DirUtil. ������ ���, ����� �������� ���� �� ������, ������� list ��������� ���������� ������ � ���� DirUtilList.xml. �������� ������ ������������� ������ �������.

<grouplist>..</grouplist>

�������������� ������� ��� ������ �����.

������� ��������� �� ������������ ���� ������� ��� LDAP.

��������: ���

������������ ��������: ������ �� ����������������� ��������� ����� ������������ ������ �� ������ ����:

<userid>..</userid>
ID ������������, ������� ������ ������� ��������� ������.

<groupid>..</groupid>
ID ������, ������� ������ ������� ��������� ������.

���� ����������� ��� <userid> ��� <groupid>, ������� ��������� ������, ��� ��� ����� �������� ������������ ������ �����������, � ���������� ����� � ������������ � ����.

�������������� ��������: ������� ���� ������� ������ ���� ���, ����� ��������� ������ �� ���� ����:

<filename>..</filename>
����, � ������� ������� ��������� ���������� ����� XML. ����� ����� ������� ��������� ���������� ��� ����� XML.
���� �� �� ������� ��� �����, ������� ��������� ������� �������� ������ � ���� �� ���������. ���� �� ��������� - DirUtilList.xml, ������� ��������� � �������� hostondemand\lib\samples\DirUtil. ������ ���, ����� �������� ���� �� ������, ������� list ��������� ���������� ������ � ���� DirUtilList.xml. �������� ������ ������������� ������ �������.

������ ����� XML

����� ���������� ������ ����� XML, �������������� �������� add � list. � ��� ����������� ��� ������, � ��� ������ ����������� ������������, � �����, ���� ������ �������������� � ����������� �������, ��� ������ ����������� ��� ���� ������������� � �����. (����� ������� ��� �������� �������������, ������ ��� ������, �������� ��� �������� �� delete ��� update � ��������������� ������� �������� ��������.) � Windows NT � Windows 2000 ���� ������ ����� sample.xml ��������� � �������� C:\Program Files\IBM\HostOnDemand\lib\samples\DirUtil. ������ ����� sample.xml ��� ������ ������������ ������ ���������� � �������� hostondemand\lib\samples\DirUtilCommandFiles.

� ���� ������� ������������ �������� ������ � ��� ���������� �����: ������ ������������� � ����� ������������ � �������� XML-���� �� ��������� ������� ��������. ����� ������������ � ����� �������� �������� ������ � ������, ��� ������������ �� ��������� �������, �������� ������ ����� � �������������� ������� List.
<?xml version="1.0" encoding="UTF-8"?>

<!-- ������ DTD - DTD ������ ��������.--
<!DOCTYPE dirscript [
<!ELEMENT dirscript (action)+>
<!ELEMENT action (group | user | session)+>
<!ELEMENT group (groupid, description?, parent?, removeusers?)>
<!ELEMENT user (userid, groupid*, description?, authentication?, savepref?, removegroupid?)>
<!ELEMENT session (filename?, (groupid | userid)+, description?)>
<!ELEMENT groupid (#PCDATA)>
<!ELEMENT userid (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT userlist (userid+, groupid+, filename+)>
<!ELEMENT grouplist (userid+, groupid+, filename+)>
<!ELEMENT parent (#PCDATA)>
<!ELEMENT removeusers (#PCDATA)>
<!ELEMENT removegroupid (#PCDATA)>
<!ELEMENT authentication ((pw?, changepw?) | (nativeid))>
<!ELEMENT pw (#PCDATA)>
<!ELEMENT changepw (#PCDATA)>
<!ELEMENT nativeid (#PCDATA)>
<!ELEMENT savepref (#PCDATA)>
<!ELEMENT filename (#PCDATA)>
   <!ATTLIST action type (add | delete | update | list) #REQUIRED>
   <!ATTLIST authentication type (pw | native) #REQUIRED>
]>
<!-- End DTD -->


<dirscript>
	<action type="add">
<!-- �������� ��� ������ -->
		<group>
			<groupid>3270GROUP</groupid>
			<description>������ � �������� 3270</description>
		</group>
		<group>
			<groupid>5250GROUP</groupid>
			<description>������ � �������� 5250</description>
		</group>
		<group>
			<groupid>mygroup</groupid>
			<description>������ � ������������ �������</description>
			<!-- ������������ ������� ������� ��������� ������ ��� ������������� LDAP -->
			<!-- <parent>3270GROUP</parent>	-->
		</group>

<!-- �������� ������������ � ������ 3270 � ���� ��� ������. -->
      <user>
         <userid>user1</userid>
         <description>First User</description>
         <authentication type="pw">
            <pw>mypw</pw>
            <changepw>yes</changepw>
         </authentication>
         <groupid>3270GROUP</groupid>
      </user>

<!-- �������� ������������ � ������ 5250, �� �������� ��� ��������� ������������ ������ -->
		<user>
			<userid>user2</userid>
			<description>������ ������������</description>
			<authentication type="pw">
				<pw>mypw</pw>
				<changepw>yes</changepw>
			</authentication>
			<groupid>3270GROUP</groupid>
			<savepref>no</savepref>
		</user>

<!-- ����� ����������� � ��������� ������ ���������� ��-�� ����, ��� ���� ����� �� ������������. -->
<!-- ���� �� ������ �������� �����, ������������� ����� � ���������� ������ -->
<!-- ����� � ������� ����� ����������� ����� �������� DirUtil. -->

<!-- �������� ����� � ������ 3270 -->
<!--
		<session>
			<description>������� 3270</description>
			<filename>3270dsp.hod</filename>
			<groupid>3270GROUP</groupid>
		</session>
-->

<!-- �������� ����� � ������ 5250 -->
<!--
		<session>
			<description>������� 5250</description>	
			<filename>5250dsp.hod</filename>
			<groupid>5250GROUP</groupid>
		</session>
-->

<!-- �������� ����� � ������������ user1 -->
<!--
		<session>
			<description>������� 3270</description>		
			<filename>3270prt.hod</filename>		
			<userid>user1</userid>			
		</session>
-->

    </action>

<!-- ������� ������ ���� ������������� � ����� � ������� � �������� ����� � �������� XML-���� �� ��������� -->
<!--
    <action type = "list">
                <userlist>
                         <userid>*</userid>
                </userlist>
                <grouplist>
                          <userid>*</userid>
                          <groupid>*</groupid>
                </grouplist>
    </action>
-->
</dirscript>

����� � �������������� ������� list

������ ������
������������� �������� �����������
������� ������

������ ������
�������� ������� list, ������ �� � �������� ���� ��������: <action type="list">. ����� �� ������ ������ ����� �� ���� (��� ���) ���� ������ (���������� ������ � ������������ ������������� � �������):

��� ������� ���� ������ �� ������ �������� �������� ������ � ������� ��������� <userid> � <groupid>. ������ �� ������ �������� � �������� ������ ������� �����������. ��������� �� ������ ������������ ����� ����� �������� ����������� � ������ ��������� �� � ����� ����� ������ ������, �� ������ ����������� ����� ��������� ������, ��� ��� ���������.

�������� �� ���������: ���� �� �� ������� ������� ��������� <userid> ��� <groupid> (��� ��� �� ������� ������� ��� ��� ��������), �� ��� ���� ��������� ������� list �� ��������� ����� ������������ ������ �����������. ��� ���� �������������� ��������� �������� ������� �����.

������� ��������� ������� �������� ������ ������ ������ � XML-����.

������������� �������� �����������
�������� ����������� �������� ��������� (*).

������� ��������� ������������ ����������� ����� ���������� �������� ����������� � ���� ������� �����, <groupid> � <userid>. ������� ����������� ����� ���� � ����� �� ������� ���������, � ����� ������� ��������� ��� �� ����� �� ���� �� � ����� �� ���. ��� ����� ���������� ������� ������ ���, ������������ ���������-��������� ��������� ��� ������� ��������� �����������. ����, ������� �������� ������, �� �������� ����� �� ���� ID-�����, ������� �������� ������, ��� ���� ������� ������� �������� ����������� (*) � �� ��������� ���������� ����� ��� ����� ���� � �������������� ������� �����������.

������� ����������� ���������� �������� �����������:

<userid>*</userid> ��� ������������
<groupid>*</groupid> ��� ������
<userid>a*</userid>
<groupid>*</groupid>
������������, ID ������� ���������� � ����� "a", �� ���� �������
<userid>a*s</userid>
<groupid>hod</groupid>
������������, ID ������� ���������� � ����� "a" � ������������� ������ "s", � ������ hod
<userid>alhines</userid>
<groupid>hod</groupid>
������������ "alhines" � ������ hod

������� ������
�������, � ������� � ��������� � �������� list ������������ ��� ��������:

<userlist>
<userid>*</userid>
<groupid>*</groupid>
<filename>my.xml</filename>
</userlist>
���������� ����� ������������� (�� ����, ���������� �������� ����������, ��������� � ��������������)
��� ���� ������������� �� ���� ������� � ��������� ����� � ���� my.xml.
<grouplist>
<userid>a*</userid>
<groupid>hod</groupid>
<filename>your.xml</filename>
</grouplist>
���������� ����� ����� (�� ����, ���������� �������� ����������, ��������� � ��������)
��� ������ hod, � ������� ���� ID ������������, ������������ � ����� "a", � ���������
����� � ���� your.xml.

����� ������� ���������� ��� ������� list, ��������, ����� ����������� �������� ������, ����� �� �� ���������, ��� � ��������� ������� ���������� �� ������� ���������. �� ������ ��������� ������� ���������� ��� ������� list �� �������, � ���� ������� ��� � �� �������, � � ���� �������.


������������� ������ ������� List

��������� ��� �������� ������ ������� list ������������ � XML-����, �� ������ ����� ������������ ��� ��� ���������� ������ ������� ������� ���������. ��� ����� ���������� �������� � �������� XML-����� ������� �������� � list �� add, delete ��� modify.

���� ��� ����� ��������� ������ �� ������� ��� ��������� ����� (� ������� ���� <filename>), ������� ��������� ������� ���������� ���������� ������� list � �������� ���� ���� � �������. �������� ������ ������� ������. ���� �� �� ������� ��� ��������� �����, ������� ��������� �������� ���������� � ����� �� ���������, DirUtilList.xml, ����������� � �������� hostondemand\lib\samples\DirUtil. ������ ���, ����� �������� ���� ��� ������ �� ������, ������� list ��������� ���������� � ���� DirUtilList.xml.

���� �� �� ������ ������� �������������� ���� �����, ��������� ����� ����� ��: ������� ��������� ����� ���������� �������� ������ � ���� �� ���������, �������� � ���� ���������� ������� ������ ������.

� ������ Unix: ���������, ��� ����� ����� �������� ������ XML �������� ����������� ��� ������������ ���� ������������ ������� Unix. ��������, ���� ���� ������������ ������� �� ���������� ��� ������� � ���� � ����� �����, ������������� ���� ����������� �������� ����� �������� � ����, ��� ��� ����� �������� ����������������. � �������� ������� ���, ��������, �� ������� ������� �������� ���� � �������� ���������� ������.

������ ������
���� �� �������:
<dirscript>
   <action type="list">
      <userlist>
         <userid>*</userid>
         <groupid>*</groupid>
      </userlist>
      <grouplist>
         <userid>*</userid>
         <groupid>*</groupid>
      </grouplist>
   <action>
<dirscript>
      
� XML-����� �� ���������, DirUtilList.xml: ������������ ��������� �������� ����������:
(����� ����� ���� �������������� �������� ������, ������� ��������� ������� � ������ ����� ���� �������� ��������.)
<!--����� �� ������: Userlist -->
<!--�:                  userid= * -->
<!--                    groupid= * -->

            <dirscript>
            <action type="list">
                <user>
                    <userid>user1</userid>
                    <groupid>hod</groupid>
                    <description></description>
                    <authentication>pw</authentication>
                </user>
                <user>
                    <userid>user2</userid>
                    <groupid>group2</groupid>
                    <description></description>
                    <authentication>nativeid</authentication>
                </user>
            </action>
            </dirscript>


<!--����� �� ������: Grouplist -->
<!--�:                  userid= * -->
<!--                    groupid= * -->

            <dirscript>
            <action type="list">
                <group>
                    <groupid>hod1</groupid>
                    <description>������������ HOD</description>
                    <parent></parent>
                </group>
                <group>
                    <groupid>group2</groupid>
                    <description>������ ������������</description>
                    <parent></parent>
                </group>
            </action>
            </dirscript>