Bug 5513 - pdbedit error messages should go to std error, not std output
Summary: pdbedit error messages should go to std error, not std output
Status: NEW
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Upgrade (show other bugs)
Version: 3.0.28
Hardware: x86 Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-02 06:25 UTC by Andrea Wachter
Modified: 2008-06-02 06:25 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Wachter 2008-06-02 06:25:32 UTC
If a user is removed from the Linux password file without being
removed from Samba's user database then  "pdbedit -Lv" produces the error message 
    "pdb_get_group_sid: Failed to find Unix account for hotdesk1"
BUT: the message is sent to standard output, not standard error. It can appear
anywhere in pdbedit's normal output - even in the middle of a line.  It
therefore seriously interferes with any script designed to parse pdbedit's
output. 
This causes one of our triggers to fail when samba is updated and therefore the older samba version doesn't uninstall. 
The problem is particularly obvious with large user databases.