Just noticed that manual for "net" tool provided by samba package is not fully documented, as I could find no reference for usage in following form in manual, nor if it accepts more optional params:
# net ads lookup
And the behavior/output is very different from the command:
# net lookup
which is fully documented.
# net ads lookup
Information for Domain Controller:<output_removed>
Response Type: LOGON_SAM_LOGON_RESPONSE_EX
Is a PDC: yes
Is a GC of the forest: yes
Is an LDAP server: yes
Supports DS: yes
Is running a KDC: yes
Is running time services: yes
Is the closest DC: no
Is writable: yes
Has a hardware clock: yes
Is a non-domain NC serviced by LDAP server: no
Is NT6 DC that has some secrets: no
Is NT6 DC that has all secrets: yes
Runs Active Directory Web Services: yes
Runs on Windows 2012 or later: yes
Domain Controller: <output_removed>
Pre-Win2k Domain: <output_removed>
Pre-Win2k Hostname: <output_removed>
Server Site Name : <output_removed>
Client Site Name :
NT Version: 5
LMNT Token: ffff
LM20 Token: ffff
]# net lookup dc
]# net lookup kdc
]# net lookup pdc
upstream PR for manual entry of ads lookup.
This is fixed upstream and the patch includes adding the options 'LOOKUP NAME' 'LOOKUP SID' and 'LOOKUP DSGETDCNAME' to the net man page.
Also, the 'ADS LOOKUP' man page addition submitted by Amit Kumar was pushed upstream
When you think this bugzilla will be fixed.
This is planned for RHEL 7.7.
I can verify that ADS LOOKUP option is documented in 'net' man page but other options you've mentioned are not included in downstream 'net' man page. Is it intended ?
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.