RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2062117 - Write a RN about the changes in command-line utilities in Samba 4.15
Summary: Write a RN about the changes in command-line utilities in Samba 4.15
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: doc-Release_Notes-8-en-US
Version: 8.6
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: 8.6
Assignee: Lucie Vařáková
QA Contact: RHEL DPM
Marc Muehlfeld
URL:
Whiteboard:
Depends On:
Blocks: 2065646
TreeView+ depends on / blocked
 
Reported: 2022-03-09 08:33 UTC by Marc Muehlfeld
Modified: 2022-04-07 05:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
.Options in Samba utilities have been renamed and removed for a consistent user experience The Samba utilities have been improved to provide a consistent command-line interface. These improvements include renamed and removed options. Therefore, to avoid problems after the update, review your scripts that use Samba utilities, and update them, if necessary. Samba 4.15 introduces the following changes to the Samba utilities: * Previously, Samba command-line utilities silently ignored unknown options. To prevent unexpected behavior, the utilities now consistently reject unknown options. * Several command-line options now have a corresponding `smb.conf` variable to control their default value. See the man pages of the utilities to identify if a command-line option has an `smb.conf` variable name. * By default, Samba utilities now log to standard error (`stderr`). Use the `--debug-stdout` option to change this behavior. * The `--client-protection=off|sign|encrypt` option has been added to the common parser. * The following options have been renamed in all utilities: ** `--kerberos` to `--use-kerberos=required|desired|off` ** `--krb5-ccache` to `--use-krb5-ccache=__CCACHE__` ** `--scope` to `--netbios-scope=__SCOPE__` ** `--use-ccache` to `--use-winbind-ccache` * The following options have been removed from all utilities: ** `-e` and `--encrypt` ** `-C` removed from `--use-winbind-ccache` ** `-i` removed from `--netbios-scope` ** `-S` and `--signing` * To avoid duplicate options, certain options have been removed or renamed from the following utilities: ** `ndrdump`: `-l` is no longer available for `--load-dso` ** `net`: `-l` is no longer available for `--long` ** `sharesec`: `-V` is no longer available for `--viewsddl` ** `smbcquotas`: `--user` has been renamed to `--quota-user` ** `nmbd`: `--log-stdout` has been renamed to `--debug-stdout` ** `smbd`: `--log-stdout` has been renamed to `--debug-stdout` ** `winbindd`: `--log-stdout` has been renamed to `--debug-stdout`
Clone Of:
: 2065646 (view as bug list)
Environment:
Last Closed: 2022-04-07 05:28:38 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-114912 0 None None None 2022-03-09 08:38:28 UTC

Description Marc Muehlfeld 2022-03-09 08:33:17 UTC
Samba 4.15 introduces several changes to command-line utilities, which can break existing scripts, Cron jobs, etc. This deserves a separate release note and should not be hidden in the Samba rebase release note.


From https://www.samba.org/samba/history/samba-4.15.0.html:


Improved command line user experience
-------------------------------------

Samba utilities did not consistently implement their command line interface. A
number of options were requiring to specify values in one tool and not in the
other, some options meant different in different tools.

These should be stories of the past now. A new command line parser has been
implemented with sanity checking. Also the command line interface has been
simplified and provides better control for encryption, signing and kerberos.

Previously many tools silently ignored unknown options. To prevent unexpected
behaviour all tools will now consistently reject unknown options.

Also several command line options have a smb.conf variable to control the
default now.

All tools are now logging to stderr by default. You can use "--debug-stdout" to
change the behavior. All servers will log to stderr at early startup until logging
is setup to go to a file by default.

### Common parser:

Options added:
--client-protection=off|sign|encrypt

Options renamed:
--kerberos       ->    --use-kerberos=required|desired|off
--krb5-ccache    ->    --use-krb5-ccache=CCACHE
--scope          ->    --netbios-scope=SCOPE
--use-ccache     ->    --use-winbind-ccache

Options removed:
-e|--encrypt
-C removed from --use-winbind-ccache
-i removed from --netbios-scope
-S|--signing


### Duplicates in command line utils

ldbadd/ldbdel/ldbedit/ldbmodify/ldbrename/ldbsearch:
-e is still available as an alias for --editor,
   as it used to be.
-s is no longer reported as an alias for --configfile,
   it never worked that way as it was shadowed by '-s' for '--scope'.

ndrdump:
-l is not available for --load-dso anymore

net:
-l is not available for --long anymore

sharesec:
-V is not available for --viewsddl anymore

smbcquotas:
--user        ->    --quota-user

nmbd:
--log-stdout  ->    --debug-stdout

smbd:
--log-stdout  ->    --debug-stdout

winbindd:
--log-stdout  ->    --debug-stdout

Comment 2 Andreas Schneider 2022-03-22 09:54:19 UTC
Look fine. Please add to RHEL 9.0 too. Thanks!


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