mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
netcmd: add shell command
A simple samba-tool shell, can be quite useful to play around with the ldb database and models. All models get imported and the samdb connection variable made available. Example usage: bin/samba-tool shell -H <host> --workgroup <workgroup> --realm <realm> >>> silos = AuthenticationSilo.query(ldb) >>> for silo in silos: ... print(silo) ... Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Dec 15 03:51:55 UTC 2023 on atb-devel-224
This commit is contained in:
committed by
Andrew Bartlett
parent
c8ded4621d
commit
83e36d97c9
@ -2406,6 +2406,24 @@
|
||||
<para>Display an objectclass schema definition.</para>
|
||||
</refsect3>
|
||||
|
||||
<refsect2>
|
||||
<title>shell</title>
|
||||
<para>Opens an interactive Samba Python shell.</para>
|
||||
</refsect2>
|
||||
|
||||
<refsect3>
|
||||
<title>shell [options]</title>
|
||||
<para>Opens an interactive Python shell for Samba ldb connection.</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>-H, --URL</term>
|
||||
<listitem><para>
|
||||
LDB URL for database or target server.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect3>
|
||||
|
||||
<refsect2>
|
||||
<title>sites</title>
|
||||
<para>Manage sites.</para>
|
||||
|
Reference in New Issue
Block a user