Error: First line of ldif must be a dn not 'dn'Eh? @&^$*&@ &@^&*@ ^@&*^@&* It does start with a dn: attribute!
Modified 0 records with 0 failures
Once you cool down you look at the file using od, just in case, and you see:
0000000 o ; ? d n : sp c n = H o r d e -You've been bitten by the BOM! But even opening the file in vi you can't see the BOM because every tool knows about the BOM and deals with it - with the exception of anything LDIF related.
The trick is to break out dusty old sed and remove the BOM -
sed -e '1s/^\xef\xbb\xbf//' horde-person.ldf > nobom.ldfAnd double checking it with od again:
0000000 d n : sp c n = H o r d e - A g oThe file now actually starts with a dn attribute!