Displaying 2 results from an estimated 2 matches for "chgpasswd2".
Did you mean:
  chgpasswd
  
2020 Jul 22
3
rpcclient & smbpasswd user PASSWORD_MUST_CHANGE
...d -r 10.10.10.2 -U "CORP.LOCAL\TEST" )
Commands:
  smbpasswd -r 10.10.10.193 -U "CORP.LOCAL\test"
  Old SMB password:
  New SMB password:
  Retype new SMB password:
  Password changed for user test
My main problem is that when trying to do the same with rpcclient using the 'chgpasswd2' with an anonymous logon I simply got an ACCESS_DENIED. I decided to ran wirehsark to see what happen under the hood for both clients. The main diff>
Commands :
  rpcclient -U "" 10.10.10.2
  Enter WORKGROUP\'s password:
  rpcclient $> chgpasswd2 test Password01! Password02...
2020 Jul 22
0
rpcclient & smbpasswd user PASSWORD_MUST_CHANGE
...t; )
> Commands:
>    smbpasswd -r 10.10.10.193 -U "CORP.LOCAL\test"
>    Old SMB password:
>    New SMB password:
>    Retype new SMB password:
>    Password changed for user test
>
> My main problem is that when trying to do the same with rpcclient using the 'chgpasswd2' with an anonymous logon I simply got an ACCESS_DENIED.
I stopped reading here, you cannot do an anonymous logon to AD, it isn't
allowed.
Rowland
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba