Bug 14014 - Irrelevant options after 'samba-tool gpo list <username> -h'
Summary: Irrelevant options after 'samba-tool gpo list <username> -h'
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.10.4
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
Depends on:
Reported: 2019-06-27 07:55 UTC by Amit Kumar
Modified: 2019-06-27 07:55 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Amit Kumar 2019-06-27 07:55:19 UTC
I believe there is no use of "-h" option after username.

# /usr/local/samba/bin/samba-tool gpo list test-user-4
GPOs for user test-user-4
    Default Domain Policy {31B2F340-016D-11D2-945F-00C04FB984F9}

There seems to be no significance of "--password", "--ipaddress" after username or I am missing something!

GPOs can be retrieved just by "samba-tool gpo list test-user-4". I believe there stands no use for other options afterwards!

# /usr/local/samba/bin/samba-tool gpo list test-user-4 -h 
Usage: samba-tool gpo list <username> [options]

List GPOs for an account.

  -h, --help            show this help message and exit
  -H URL, --URL=URL     LDB URL for database or target server

  Credentials Options:
                        DN to use for a simple bind
    -U USERNAME, --username=USERNAME
    -W WORKGROUP, --workgroup=WORKGROUP
    -N, --no-pass       Don't ask for a password
    -k KERBEROS, --kerberos=KERBEROS
                        Use Kerberos
                        IP address of server
    -P, --machine-pass  Use stored machine account password
                        Kerberos Credentials cache

  Samba Common Options:
    -s FILE, --configfile=FILE
                        Configuration file
    -d DEBUGLEVEL, --debuglevel=DEBUGLEVEL
                        debug level
    --option=OPTION     set smb.conf option from command line
    --realm=REALM       set the realm name

  Version Options:
    -V, --version       Display version number