[PATCH] Add -H parameter to pdbedit to update user password from nt-hash hexstring.

Alberto Maria Fiaschi alberto.fiaschi at estar.toscana.it
Thu Jun 25 06:31:15 MDT 2015


Ok,
put only long option --set-nt-hash  and I removed lines of code with // 
that I had forgotten.
Thanks.
Alberto Fiaschi



Il 13/06/2015 08:03, Andrew Bartlett ha scritto:
> On Wed, 2015-06-10 at 16:28 +0200, Alberto Maria Fiaschi wrote:
>> I modify pdbedit to   set password from  nthash to an existing user.This
>> is useful to take in sync password  (for example from OpenLdap) .It is
>> also updated paswordhistory.
>> pbedit  with -vw (verbose & smbpasswd-style )  shows the password hashes
>> in the verbose output.
> Thanks.
>
> Please tidy up the code (we don't just leave stuff commented out with \
> \), and don't use -H, just add a long option.
>
> Fix those up, and I'll double-check the rest, but it seems more
> reasonable.
>
> Thanks,
>
> Andrew Bartlett
>

-- 
/Alberto Maria Fiaschi/ 
<http://it.linkedin.com/pub/alberto-fiaschi/38/783/a5>
/alberto.fiaschi at estar.toscana.it <mailto:alberto.fiaschi at estar.toscana.it>/
ESTAR - Ente di Supporto Tecnico Amministrativo Regionale
Infrastrutture Zona Centro
/Azienda Ospedaliero Universitaria Pisana
Presidio Ospedaliero Spedali Riuniti Santa Chiara/
/Via Roma, 67 - 56126 Pisa, Italy/
/Tel. +39 050 99 3117 /
/Fax +39 050 99 3396/
/profilo su http://it.linkedin.com/pub/alberto-fiaschi/ 
<http://it.linkedin.com/pub/alberto-fiaschi/38/783/a5>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdbedit_ntHash.patch
Type: text/x-patch
Size: 10052 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150625/5a4f02ef/attachment.bin>


More information about the samba-technical mailing list