Hi

Updating the user attribute "shadowWarning" works fine:

  # cat tmp4.ldif
  dn: uid=john,ou=People,dc=example,dc=com
  changetype: modify
  replace: shadowWarning
  shadowWarning: 7

  # ldapmodify -H ldapi:/// -D cn=admin,dc=example,dc=com -w ******** -f 
tmp4.ldif
  modifying entry "uid=john,ou=People,dc=example,dc=com"

When I add the attribute "mail" into ldif the update fails:

  # cat tmp3.ldif
  dn: uid=john,ou=People,dc=example,dc=com
  changetype: modify
  replace: shadowWarning
  shadowWarning: 7
  replace: mail
  mail: [email protected]

  # ldapmodify -H ldapi:/// -D cn=admin,dc=example,dc=com -w ******** -f 
tmp3.ldif
  ldapmodify: wrong attributeType at line 5, entry 
"uid=john,ou=People,dc=example,dc=com"

What's wrong with the file tmp3.ldif?

Kind regards,

Harri

Reply via email to