<mapfile>
  <map table="User">
    <filter>objectclass=person</filter>
    <active-attribute>kerio-Mail-Active</active-attribute>
    <variable>
		<name>Name</name>
		<value><attribute>uid</attribute></value>
    </variable>
    <variable>
		<name>Account_enabled</name>
		<value><attribute>kerio-Mail-AccountEnabled</attribute></value>
    </variable>
    <variable>
		<name>Auth_type</name>
		<value>5</value>
    </variable>
    <variable>
		<name>LdapDN</name>
		<value><dn /></value>
    </variable>
    <variable>
		<name>PIN</name>
		<value><attribute>kerio-User-AuthPIN</attribute></value>
    </variable>
    <variable>
		<name>Rights</name>
		<value><attribute>kerio-Mail-AdminRights</attribute></value>
    </variable>
    <variable>
		<name>Authorization</name>
		<value><attribute>kerio-Mail-Authorization</attribute></value>
    </variable>
    <variable>
		<name>Groups</name>
		<value><dn-attribute name="cn">groupMemberShip</dn-attribute></value>
    </variable>
    <variable>
		<name>MailAddress</name>
		<value><attribute>kerio-Mail-Address</attribute></value>
    </variable>
    <variable>
		<name>ForwardMode</name>
		<value><attribute>kerio-Mail-ForwardMode</attribute></value>
    </variable>
    <variable>
		<name>ForwardAddress</name>
		<value><attribute>kerio-Mail-ForwardAddress</attribute></value>
    </variable>
    <variable>
		<name>HomeServer</name>
		<value><attribute>kerio-Mail-HomeServer</attribute></value>
    </variable>
    <variable>
		<name>Qstorage</name>
		<value><attribute>kerio-Mail-QuotaStorage</attribute></value>
    </variable>
    <variable>
		<name>Qmessage</name>
		<value><attribute>kerio-Mail-QuotaMessage</attribute></value>
    </variable>
    <variable>
		<name>MaxOutgoingMessageSize</name>
		<value><attribute>kerio-Mail-MaxOutgoingMessageSize</attribute></value>
    </variable>
    <variable>
		<name>ReplyToAddress</name>
		<value><attribute>kerio-Mail-WebReplyToAddress</attribute></value>
    </variable>
    <variable>
		<name>Fullname</name>
		<value><attribute>cn</attribute></value>
    </variable>
    <variable>
		<name>Description</name>
		<value><attribute>description</attribute></value>
    </variable>
    <variable>
		<name>Guid</name>
		<value><apple-guid/></value>
    </variable>
  </map>

  <map table="Group">
    <filter>objectclass=posixGroup</filter>
    <active-attribute>kerio-Mail-Active</active-attribute>
    <variable>
      <name>Name</name>
      <value><attribute>cn</attribute></value>
    </variable>
    <variable>
      <name>MailAddress</name>
      <value><attribute>kerio-Mail-Address</attribute></value>
    </variable>
    <variable>
      <name>Rights</name>
      <value><attribute>kerio-Mail-AdminRights</attribute></value>
    </variable>
    <variable>
	  <name>Authorization</name>
	  <value><attribute>kerio-Mail-Authorization</attribute></value>
    </variable>
    <variable>
      <name>Description</name>
      <value><attribute>description</attribute></value>
    </variable>
    <variable>
      <name>Guid</name>
      <value><apple-guid/></value>
    </variable>
  </map>
</mapfile>

