Skip to content
Ryan Newington edited this page May 27, 2016 · 1 revision

<schema> element

The MA uses a strongly-typed schema to determine what attributes are supported in the target system. These are defined within the <schema> element.

The <schema> element must contain one of each of the following elements;

Example

  <schema>
    <schema-attributes>
      <schema-attribute name="accountName" multivalued="false" type="string" operation="ImportExport"/>
      <schema-attribute name="uid" multivalued="false" type="integer" operation="ImportExport"/>
      <schema-attribute name="gid" multivalued="false" type="integer" operation="ImportExport"/>
      <schema-attribute name="comment" multivalued="false"  type="string"  operation="ImportExport"/>
      <schema-attribute name="expiryDate" multivalued="false" type="integer" operation="ImportExport"/>
      <schema-attribute name="homeDirectory" multivalued="false" type="string" operation="ImportExport"/>
      <schema-attribute name="shell" multivalued="false" type="string" operation="ImportExport"/>
      <schema-attribute name="accountDisabled" multivalued="false" type="boolean" operation="ExportOnly"/>
      <schema-attribute name="member" multivalued="true" type="reference" operation="ImportExport"/>
    </schema-attributes>

    <schema-objects>
      <schema-object object-class="user">
        <dn-format>cn={accountName},ou=users</dn-format>
        <attributes>
          <attribute>accountName</attribute>
          <attribute>uid</attribute>
          <attribute>gid</attribute>
          <attribute>comment</attribute>
          <attribute>homeDirectory</attribute>
          <attribute>shell</attribute>
          <attribute>accountDisabled</attribute>
        </attributes>
      </schema-object>

      <schema-object object-class="group">
        <dn-format>cn={accountName},ou=groups</dn-format>
        <attributes>
          <attribute>accountName</attribute>
          <attribute>gid</attribute>
          <attribute>member</attribute>
        </attributes>
      </schema-object>
    </schema-objects>
  </schema>