[RESOLVED] Resetting SAMBA4 DC passwords

Come here to share your tips and tricks for using Samba4
Locked
ee68
Messages: 11
Registration: February 8, 2017 - 1:24 PM

January 23, 2023 - 3:03 PM

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
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

January 23, 2023 - 4:00 PM

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
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
ee68
Messages: 11
Registration: February 8, 2017 - 1:24 PM

May 11, 2023 - 12:52

Hello,

Sorry for the clumsy duplicate post...

Thank you for your reply.

Sincerely,
Eric
Locked