[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
B/Q: ldapmodify: -c option
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have ldif files like the following one which shall delete several
attributes of an entry:
dn: cn=person1,o=org1,c=de
changetype: modify
delete: description
- -
delete: description1
- -
delete: description2
- -
Now my problem is that ldapmodify stops if one of the attributes does not
exist for this entry. Looking at the man page I found the '-c' option which
shall ignore errors during processing. But adding it to the ldapmodify
command call does not help. To me it seems as if the processing of one whole
"dn:" block is stopped.
Here my current workaround: rewrite the LDIF file in the following manner:
dn: cn=person1,o=org1,c=de
changetype: modify
delete: description
dn: cn=person1,o=org1,c=de
changetype: modify
delete: description1
dn: cn=person1,o=org1,c=de
changetype: modify
delete: description2
So if one "dn:" block fails the others are processed anyway with the "-c"
option.
Bug: either this should be more clearly stated in the man page or better the
processing for the "dn:" entry is not skipped at whole but only for this
attribute.
- --
Heiko Nardmann (Dipl.-Ing.), h.nardmann@secunet.de, Software Development
secunet Security Networks AG - Sicherheit in Netzwerken (www.secunet.de),
Weidenauer Str. 223-225, D-57076 Siegen
Tel. : +49 271 48950-13, Fax : +49 271 48950-50
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7Fjbkpm53PRScYygRArPAAJ9mn/z3FsRYd4EjGbZZthBD+xr94wCdGLUH
SinSbLCGcC5ux8304Y3b0xQ=
=ioP6
-----END PGP SIGNATURE-----