title: How to add attributes in LDIF file?
body: <p>I want to test LDAP with Spring using a LDIF file. </p>
  
  <p>I don't use xml. </p>
  
  <p>I achieve to read from LDIF file all the basic attributes. </p>
  
  <p>How I can add some custom attributes? </p>
  
  <p>So far I used this syntax</p>
  
  <pre><code>dn: cn=name,ou=people,dc=springframework,dc=org
  objectclass: top
  objectclass: person
  cn: name
  sn: name
  uid: name
  mail: name@gmail.com
  givenName: name
  userPassword: namespassword
  changetype: modify
  add: telephonenumber
  telephonenumber: 555-2468
  </code></pre>
  
  <p>...but It can not read the file, because it doesn't recognize the "changeType" attribute.</p>
  
  <p><strong>EDIT QUESTION</strong></p>
  
  <p>I have this file:</p>
  
  <pre><code>dn: dc=springframework,dc=org
  objectclass: top
  objectclass: domain
  objectclass: extensibleObject
  dc: springframework
  
  dn: ou=groups,dc=springframework,dc=org
  objectclass: top
  objectclass: organizationalUnit
  ou: groups
  
  dn: ou=subgroups,ou=groups,dc=springframework,dc=org
  objectclass: top
  objectclass: organizationalUnit
  ou: subgroups
  
  dn: ou=people,dc=springframework,dc=org
  objectclass: top
  objectclass: organizationalUnit
  ou: people
  
  dn: ou=space cadets,dc=springframework,dc=org
  objectclass: top
  objectclass: organizationalUnit
  ou: space cadets
  
  dn: ou=\"quoted people\",dc=springframework,dc=org
  objectclass: top
  objectclass: organizationalUnit
  ou: "quoted people"
  
  dn: ou=otherpeople,dc=springframework,dc=org
  objectclass: top
  objectclass: organizationalUnit
  ou: otherpeople
  
  dn: uid=ben,ou=people,dc=springframework,dc=org
  objectclass: top
  objectclass: person
  objectclass: organizationalPerson
  objectclass: inetOrgPerson
  cn: Ben Alex
  sn: Alex
  uid: ben
  userPassword: {SHA}nFCebWjxfaLbHHG1Qk5UU4trbvQ=
  
  dn: uid=bob,ou=people,dc=springframework,dc=org
  objectclass: top
  objectclass: person
  objectclass: organizationalPerson
  objectclass: inetOrgPerson
  cn: Bob Hamilton
  sn: Hamilton
  uid: bob
  userPassword: bobspassword
  
  dn: uid=joe,ou=otherpeople,dc=springframework,dc=org
  objectclass: top
  objectclass: person
  objectclass: organizationalPerson
  objectclass: inetOrgPerson
  cn: Joe Smeth
  sn: Smeth
  uid: joe
  userPassword: joespassword
  
  dn: cn=mouse\, jerry,ou=people,dc=springframework,dc=org
  objectclass: top
  objectclass: person
  objectclass: organizationalPerson
  objectclass: inetOrgPerson
  cn: Mouse, Jerry
  sn: Mouse
  uid: jerry
  userPassword: jerryspassword
  
  dn: cn=slash/guy,ou=people,dc=springframework,dc=org
  objectclass: top
  objectclass: person
  objectclass: organizationalPerson
  objectclass: inetOrgPerson
  cn: slash/guy
  sn: Slash
  uid: slashguy
  mail: slash@gmail.com
  givenName: Slash Snakepit
  userPassword: slashguyspassword
  msExchUserAccountControl: 0
  
  dn: cn=quote\"guy,ou=\"quoted people\",dc=springframework,dc=org
  objectclass: top
  objectclass: person
  objectclass: organizationalPerson
  objectclass: inetOrgPerson
  cn: quote\"guy
  sn: Quote
  uid: quoteguy
  userPassword: quoteguyspassword
  
  dn: uid=space cadet,ou=space cadets,dc=springframework,dc=org
  objectclass: top
  objectclass: person
  objectclass: organizationalPerson
  objectclass: inetOrgPerson
  cn: Space Cadet
  sn: Cadet
  uid: space cadet
  userPassword: spacecadetspassword
  
  dn: cn=developers,ou=groups,dc=springframework,dc=org
  objectclass: top
  objectclass: groupOfUniqueNames
  cn: developers
  ou: developer
  uniqueMember: uid=ben,ou=people,dc=springframework,dc=org
  uniqueMember: uid=bob,ou=people,dc=springframework,dc=org
  
  dn: cn=managers,ou=groups,dc=springframework,dc=org
  objectclass: top
  objectclass: groupOfUniqueNames
  cn: managers
  ou: manager
  uniqueMember: uid=ben,ou=people,dc=springframework,dc=org
  uniqueMember: cn=mouse\, jerry,ou=people,dc=springframework,dc=org
  
  dn: cn=submanagers,ou=subgroups,ou=groups,dc=springframework,dc=org
  objectclass: top
  objectclass: groupOfUniqueNames
  cn: submanagers
  ou: submanager
  uniqueMember: uid=ben,ou=people,dc=springframework,dc=org
  </code></pre>
  
  <p>And I have this exception:</p>
  
  <blockquote>
    <p>Caused by: com.unboundid.ldap.sdk.LDAPException: Unable to add entry
    'cn=slash/guy,ou=people,dc=springframework,dc=org' because it violates
    the provided schema:  The entry contains attribute
    msExchUserAccountControl which is not defined in the schema.</p>
  </blockquote>
  
  <p>How can I add that attribute?</p>