<AddressBook_config>
  <fields>
    <field name="fullname" order="1" type="text">
      <db type="LDAP" name="cn"/>
      <db type="LDIF" name="cn"/>
      <db type="Text" name="Full Name"/>
      <db type="HTML" name="Full Name"/>
      <db type="DBI" name="fullname"/>
    </field>
    <field name="lastname" order="2" type="text" calculate="do {$fullname->[0]=~/(\S*)$/}">
      <db type="LDAP" name="sn"/>
      <db type="LDIF" name="sn"/>
      <db type="Text" name="Last Name"/>
      <db type="HTML" name="Full Name"/>
      <db type="DBI" name="lastname"/>
    </field>
    <field name="email" order="3" type="text">
      <db type="LDAP" name="mail"/>
      <db type="LDIF" name="mail"/>
      <db type="Text" name="Email Address"/>
      <db type="HTML" name="Full Name"/>
      <db type="DBI" name="mail"/>
    </field>
    <field name="objectclass" order="4">
      <db type="LDAP" name="objectclass"/>
      <db type="LDIF" name="objectclass"/>
    </field>
  </fields>
  <databases>
    <DBI
	    table="t_csv"
	    key_fields="fullname"
    />
    <LDIF
	    dn_calculate="'cn='.$cn,'mail='.$mail"
            objectclass="abookPerson" 
            base="o=test" 
	    filename="t/t.ldif"
	    key_fields="cn"
    />
  </databases>
</AddressBook_config>
