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

Re: slapadd shows wrong error message on non-readable ldif file (ITS#4044)



ydirson@altern.org wrote:

>>>On Tue, Sep 27, 2005 at 02:25:30PM +0000, Howard Chu wrote:
>>>      
>>>
>>>>The error message is correct. See the slapadd(1) manpage, the "-f"
>>>>option is for
>>>>specifying a config file, and you have specified an invalid config
>>>>file.
>>>>You
>>>>want the "-l" option for specifying an LDIF input file. As there is no
>>>>software
>>>>bug here, this ITS will be closed.
>>>>        
>>>>
>>>Yes, I understand the invocation error.  But compare the error message
>>>with the one given by -l on an unreadable file: that one _does_ tell
>>>me the file is unreadable.  There is still an erroneous error message
>>>in the -f case.
>>>      
>>>
>>With HEAD code (where LDAP_DEVEL is enabled, implying
>>SLAPD_CONF_UNKNOWN_BAILOUT is enabled as well), invoking slaptools with an
>>invalid config file results in
>>
>>ando@ando:> slapadd -f data/test-ordered.ldif
>>slapadd: bad configuration file!
>>    
>>
>
>This is still not an adequate message when the file is read-only and
>slappadd cannot tell anything about its contents.
>
>Best regards,
>  
>
If the file is read-only, slapadd can tell everything about it and the 
message is more than adequate. If the file permissions don't allow 
slapadd to open it, the message is still adequate. Remember you can have 
a deeper look at the messages of slapd and its tools using -d -1.
In the first case it will complain about unknown directives, in the 
second one about permission denied...



    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497