31 reputation
4
bio website
location
age
visits member for 1 year, 11 months
seen Apr 24 '13 at 2:12

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