Bug 158679 - ldapmodify fails to recognize -S option as described in 'man 1 ldapmodify'
Summary: ldapmodify fails to recognize -S option as described in 'man 1 ldapmodify'
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: openldap
Version: 4.0
Hardware: i386
OS: Linux
Target Milestone: ---
: ---
Assignee: Jan Safranek
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2005-05-24 19:44 UTC by Brian Jones
Modified: 2008-01-15 11:42 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2008-01-15 11:42:48 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Brian Jones 2005-05-24 19:44:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 Epiphany/1.4.4

Description of problem:
man 1 ldapmodify describes a "-S" option thusly: 

----------------- SNIP ----------------------------
 -S file -- Add or change records which where skipped due to an error are written to file and  the  error  message  returned  by  the server is added as a comment. Most useful in conjunction with -c.
----------------- /SNIP ---------------------------

However, running ldapmodify with this command produces the following error: 

--------------- SNIP -------------------
ldapmodify: invalid option -- S
ldapmodify: unrecognized option -S
--------------- /SNIP ------------------

This happens regardless of how the command is run (order of args/options/etc), or by who. Additionally, whether or not the file you pass to -S exists doesn't seem to matter either. Removing the -S flag and running ldapmodify with the same input works. 

This particular flag would be extremely useful to have work. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Log in
2. Run ldapmodify with the -S flag (ie ldapmodify -f <valid ldif file> -c -S errfile)
3. sob and pull out hair. 

Actual Results:  I got an error saying "-S" is an unrecognized option

Expected Results:  ldapmodify should've happily parsed my LDIF file and applied the changes, noting errors to the file passed as an argument to the -S flag. 

Additional info:

Comment 1 Jan Safranek 2007-06-20 12:01:17 UTC
I apologize for long silence from Red Hat. I am new maintainer of openldap and I
am cleaning old bugs. I am not able to reproduce the bug on my RHEL 4.5 box,
command 'ldapmodify -x -f my.ldif -c -S errfile' works as described in man pages.

Could you please try to reproduce the bug on your system updated to RHEL 4.5 and
let me know the results?

Thanks in advance

Please note that running 'ldapmodify -S' without any file after '-S' will
display the error you are complaining about ("unrecognized option -S"). This may
be confusing, but if you specify the file after -S, it works.

Comment 2 Jan Safranek 2008-01-15 11:42:48 UTC
Closing due to reporter inactivity. Feel free to reopen the bug if you are able
to reproduce it and provide the required information.

Note You need to log in before you can comment on or make changes to this bug.