Location: PHPKode > projects > LDAPted > ldapted/adapted/forms/demo/posix.xml
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?>
<formular name="User Managment">
  <layout>
    <option name="width">790</option>
    <option name="height">480</option>
    <option name="template">posix.tpl</option>
  </layout>

  <attribute name="uid" objectClass="posixAccount" type="text" multivalue="" search="true"  identifier="true">
    <label lang="en">
      login
    </label>
    <label lang="de">
      Benutzername
    </label>
    <description lang="en">
      The login of an user. For example 'fips'.
    </description>
    <option name="size">12</option>
  </attribute>

  <attribute name="cn" objectClass="posixAccount" type="text" search="true">
    <label lang="en">
      common name
    </label>
    <label lang="de">
      Vollständiger Name
    </label>
    <description lang="en">
      The entire Name of a person. For example 'Philipp Kamps'
    </description>
    <option name="size">20</option>
  </attribute>

  <attribute name="uidnumber" objectClass="posixAccount" type="calculate">
    <label lang="en">
      uid number
    </label>
    <label lang="de">
      Benutzer ID Nummer
    </label>
    <option name="size">5</option>
    <option name="maxlength">5</option>
    <selection sourcetype="ldap">
      <field name="returnAttrib">uidnumber</field>
      <field name="filter">objectClass=posixAccount</field>
    </selection>
    <value>
      <field name="inc">1</field>
      <field name="min">1000</field>
    </value>
  </attribute>

  <attribute name="gidnumber" objectClass="posixAccount" type="calculate">
    <label lang="en">
      gid number
    </label>
    <label lang="de">
      Gruppen ID Nummer
    </label>
    <option name="size">5</option>
    <option name="maxlength">5</option>
    <selection sourcetype="ldap">
      <field name="returnAttrib">gidnumber</field>
      <field name="filter">objectClass=posixAccount</field>
    </selection>
    <value>
      <field name="inc">1</field>
      <field name="min">1000</field>
    </value>
  </attribute>

  <attribute name="homedirectory" objectClass="posixAccount" type="text">
    <label lang="en">
      home directory
    </label>
    <label lang="de">
      Arbeitsverzeichnis
    </label>
    <description lang="en">
      Where the user can store her/his files
    </description>
    <option name="size">24</option>
  </attribute>
  
  <attribute name="userpassword" objectClass="posixAccount" type="password">
    <label lang="en">
      password
    </label>
    <label lang="de">
      Passwort
    </label>
    <description lang="en">
      The password
    </description>
    <option name="size">16</option>
    <option name="maxlength">20</option>
  </attribute>

  <attribute name="loginshell" objectClass="posixAccount" type="combobox">
    <label lang="en">
      loginshell
    </label>
    <label lang="de">
      Standardshell
    </label>
    <description lang="en">
      Select the loginshell of this person.
    </description>
    <option name="width">200</option>
    <selection sourcetype="plaintextfile">
      <field name="filename">lists/loginshells.txt</field>
    </selection>
  </attribute>

  <attribute name="host" objectClass="account" type="switchlist">
    <label lang="en">
      hosts
    </label>
    <label lang="de">
      Rechner
    </label>
    <description lang="en">
      workstations were this person may work.
    </description>
    <option name="size">4</option>
    <option name="width">100</option>
    <selection sourcetype="ldap">
      <field name="returnAttrib">cn</field>
      <field name="filter">objectClass=ipHost</field>
    </selection>
    </attribute>

  <attribute name="gecos" objectClass="posixAccount" type="hidden"/>

</formular>
Return current item: LDAPted