Bug 6357 - net fails to understand samba-standard command line options
net fails to understand samba-standard command line options
Status: RESOLVED FIXED
Product: Samba 3.4
Classification: Unclassified
Component: Client Tools
unspecified
Other Linux
: P3 normal
: ---
Assigned To: Kai Blin
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-14 02:16 UTC by Kai Blin
Modified: 2011-05-23 20:20 UTC (History)
1 user (show)

See Also:
kai: review+


Attachments
Proposed patch to use samba default command line arguments in net (29.35 KB, patch)
2009-05-14 04:50 UTC, Kai Blin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Blin 2009-05-14 02:16:49 UTC
Instead of using popt_common code, net is using it's own option parsing that is almost, but not quite, identical to what all other samba tools are using. Changing this should fix all the flakyness we're currently seeing with respect to using the user's kerberos ticket instead of asking for a password and more funny quirks net tends to have.
Comment 1 Kai Blin 2009-05-14 02:22:13 UTC
Looking into this. This will break some scripts using net with short option names.
Comment 2 Kai Blin 2009-05-14 02:22:42 UTC
My bug.
Comment 3 Kai Blin 2009-05-14 04:50:58 UTC
Created attachment 4153 [details]
Proposed patch to use samba default command line arguments in net

This is the proposed patch that should get rid of all that weird opt_password and opt_user_name magic in net. Günther, please test and see if I broke the rpc stuff.
Comment 4 Kai Blin 2009-05-22 07:11:49 UTC
Günther, comments?
Comment 5 Kai Blin 2009-05-26 03:48:53 UTC
Comitted to master and v3-4-test
Comment 6 Kai Blin 2011-05-23 20:20:24 UTC
Clearing up old requests