0

its similar to this question How to add new attribute to an existing LDAP user objects but I don't know how to submit it to ldap. After my attribute I still have got an empty row. How can I save the changes to the ldap and finisch the ldapmodify command?

nolags
  • 105
  • 1
  • 4

1 Answers1

0

When using ldapmodify and typing the LDIF in you need to finish with a blank line for it to be submitted:

$ ldapmodify -H ldapi:/// -Y EXTERNAL
dn: uid=alice,ou=people,dc=example,dc=com
changetype: modify
add: mail
mail: alice@example.com

modifying entry "uid=alice,ou=people,dc=example,dc=com"

Once you see the modifying entry line it's safe to Ctrl+C or Ctrl+D.

bodgit
  • 4,661
  • 13
  • 26
  • Thanks. It says my attribute type is undefined. Which type can I give my key attribute? Is key; long defined? – nolags Aug 31 '16 at 11:00