[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#4221) ldapmodify and url value-specs

Full_Name: Norbert Klasen
Version: 2.3.12
OS: Linux
Submission from: (NULL) (

LDIF files that contain url value-specs don't work with ldapmodify because an
extra "/" is stripped from the filename.
For example: the entrymods sample from the ldapmdofiy manpage results in 
ldapmodify: invalid format (line 10) entry: "cn=Modify Me,dc=example,dc=com"

strace shows that ldapmodify is trying to open the file with a relative path:
open("tmp/modme.jpeg", O_RDONLY)        = -1 ENOENT (No such file or directory)

BTW: the error message "invalid format" is quite misguiding. It should reflect
the real cause which can be seen, if you increase the debug level:
ldif_parse_line: jpegPhoto: URL "file:///tmp/modme.jpeg" fetch failed