Reputation
Top tag
Next privilege 50 Rep.
Comment everywhere
Badges
5
Newest
 Student
Impact
~741 people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
Feb
11
awarded  Student
Apr
5
awarded  Self-Learner
Mar
31
awarded  Scholar
Mar
31
awarded  Supporter
Mar
31
accepted LDIF: Modify attr if exists; Add if not exists
Jan
27
awarded  Teacher
Jan
21
answered LDIF: Modify attr if exists; Add if not exists
Jan
21
comment LDIF: Modify attr if exists; Add if not exists
Solved: Problem was that it has to be done in completely separate entries in the LDIF -- one entry for the delete, then another separate entry for successive actions such as add.
Jan
21
comment LDIF: Modify attr if exists; Add if not exists
Oddly, using -c doesn't seem to do anything. According to the man page this is exactly what I want. Excellent answer... if it worked. I tested and confirmed ldapmodify works fine if I remove the delete: of the non-existent attribute and errors (16) with or without -c otherwise.
Jan
21
asked LDIF: Modify attr if exists; Add if not exists