Page 1 of 1

[RESOLVED] Resetting SAMBA4 DC passwords

Published: January 23, 2023 - 3:03 PM
by ee68
Hello,

I'm running PingCastle audits of my samb4 Active Directory to improve my security posture.

However, I'm encountering a problem resolving the "Check if all DCs are using regular password change practices" error
(https://www.cert.ssi.gouv.fr/uploads/gu ... _no_change)

. In short, I've tried the following commands to reset my DC passwords without success and without any error messages: `

Reset-ComputerMachinePassword -Server DC3 -Credential DOM\ADMIN_DOM`
or
`netdom.exe resetpwd /s:dc1 /ud:DOM\ADMIN_DOM /pd:*`
Type the password associated with the domain user:

The local computer account password has been reset.

The operation completed successfully.


But without any results, the date on the DCs remains unchanged:
Domain controller LastChange
DC3 2018-03-01 13:48:10Z
DC2 2018-07-04 11:46:16Z
DC1 2018-04-20 08:58:13Z


Does anyone have a working solution to reset the DC passwords?

Samba version 4.15.13 - Debian
Debian 10.13

Thanks in advance
, Eric

Re: Resetting SAMBA4 DC passwords

Published: January 23, 2023 - 4:00 PM
by dcardon
Good morning,

Netiquette dictates that you shouldn't post the same question on two different channels (i.e., cross-posting between Discord and the forum). It wastes people's time and is considered impolite.

so you can watch

Code: Select all

https://gitlab.com/samba-team/samba/-/blob/samba-4.15.13/source4/scripting/devel/chgtdcpass
Sincerely,

Denis

Re: [SOLVED] Resetting SAMBA4 DC passwords

Published: May 11, 2023 - 12:52
by ee68
Hello,

Sorry for the clumsy duplicate post...

Thank you for your reply.

Sincerely,
Eric