summaryrefslogtreecommitdiff
path: root/docs-xml
diff options
context:
space:
mode:
authorAlberto Maria Fiaschi <alberto.fiaschi@estar.toscana.it>2015-06-10 15:26:58 +0200
committerGarming Sam <garming@samba.org>2015-11-30 03:49:25 +0100
commit1c9117746b616fcb8ab251834888b57c4a1c29bf (patch)
tree5e468bb0f87d60c7256686f5e3883645e71354ec /docs-xml
parentbb9f13ab4165f150e01a88ddcc51605a7c176f5d (diff)
downloadsamba-1c9117746b616fcb8ab251834888b57c4a1c29bf.tar.gz
Add --set-nt-hash option to pdbedit to update user password from nt-hash hexstring.
Useful to take in sync password from other repository. (Modify MASK_USER_GOOD to include new flag BIT_PWSETNTHASH) pdbedit -vw show also password hashes . Split pdb_set_plaintext_passwd in two function: pdb_set_plaintext_passwd and pdb_update_history. pdb_update_history update password history and is call from pdb_set_plaintext_passwd. Signed-off-by: Alberto Maria Fiaschi <alberto.fiaschi@estar.toscana.it> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'docs-xml')
-rw-r--r--docs-xml/manpages/pdbedit.8.xml20
1 files changed, 18 insertions, 2 deletions
diff --git a/docs-xml/manpages/pdbedit.8.xml b/docs-xml/manpages/pdbedit.8.xml
index 413e0e4c41e..df6f8e66855 100644
--- a/docs-xml/manpages/pdbedit.8.xml
+++ b/docs-xml/manpages/pdbedit.8.xml
@@ -43,6 +43,7 @@
<arg choice="opt">-r</arg>
<arg choice="opt">-s configfile</arg>
<arg choice="opt">-S script</arg>
+ <arg choice="opt">--set-nt-hash</arg>
<arg choice="opt">-t</arg>
<arg choice="opt">--time-format</arg>
<arg choice="opt">-u username</arg>
@@ -99,7 +100,8 @@ samba:45:Test User
<term>-v|--verbose</term>
<listitem><para>This option enables the verbose listing format.
It causes pdbedit to list the users in the database, printing
- out the account fields in a descriptive format.</para>
+ out the account fields in a descriptive format. Used together
+ with -w also shows passwords hashes.</para>
<para>Example: <command>pdbedit -L -v</command></para>
<para><programlisting>
@@ -134,7 +136,9 @@ Profile Path: \\BERSERKER\profile
out the account fields in a format compatible with the
<filename>smbpasswd</filename> file format. (see the
<citerefentry><refentrytitle>smbpasswd</refentrytitle>
- <manvolnum>5</manvolnum></citerefentry> for details)</para>
+ <manvolnum>5</manvolnum></citerefentry> for details).
+ Instead used together with (-v) displays the passwords
+ hashes in verbose output.</para>
<para>Example: <command>pdbedit -L -w</command></para>
<programlisting>
@@ -205,6 +209,18 @@ samba:45:0F2B255F7B67A7A9AAD3B435B51404EE:
<varlistentry>
+ <term>--set-nt-hash</term>
+ <listitem><para>This option can be used while modifying
+ a user account. It will set the user's password using
+ the nt-hash value given as hexadecimal string.
+ Useful to synchronize passwords.</para>
+
+ <para>Example: <literal>--set-nt-hash 8846F7EAEE8FB117AD06BDD830B7586C</literal>
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term>-p|--profile profile</term>
<listitem><para>This option can be used while adding or
modifying a user account. It will specify the user's profile