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.
Looking into this. This will break some scripts using net with short option names.
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.
Comitted to master and v3-4-test
Clearing up old requests