title: LDAP multiple structural objectclasses
body: <p>I am quite new in administering LDAP, but I have come quite far...
  On my <strong>OpenLDAP</strong> server I am using phpLDAPadmin to do the following:</p>
  
  <p>I have an entry with a structural objectclass <code>account</code> because I need the attribute <code>host</code>.
  Now I want to add the attribute <code>mail</code> to this entry, but this does not appear in the list when selecting <code>Add new attribute</code>.</p>
  
  <p>So I thought I could add the objectClass <code>inetOrgPerson</code> which has the attribute <code>mail</code> but this objectClass is not in the list of classes I can add to this entry; only non-structural classes are listed...</p>
  
  <p>How can I add this attribute <code>mail</code> to a an entry with the structural class <code>account</code> ?</p>
  
  <p>This is the current ldif for this user (with some parts changed/removed for privacy)</p>
  
  <pre> 
  
  # Entry 1: cn=intrixius,ou=Admins,ou=Managed,dc=bla,dc=eu
  dn: cn=intrixius,ou=Admins,ou=Managed,dc=bla,dc=eu
  cn: intrixius
  gecos: intrixius
  gidnumber: 500
  homedirectory: /home/intrixius
  host: host1
  host: host2
  loginshell: /bin/bash
  objectclass: top
  objectclass: account
  objectclass: posixAccount
  objectclass: shadowAccount
  objectclass: ldapPublicKey
  sshpublickey: ssh-rsa ... intrixius@arch
  uid: intrixius
  uidnumber: 16859
  userpassword: {CRYPT}$6$X...
  
  </pre>