A minimal Docker image for changing Active Directory passwords using impacket's changepasswd.py.
1.1K
A minimal Docker image for changing Active Directory passwords using impacket's changepasswd.py.
docker run -it --rm bcit/changepasswd username@domain
You will be prompted for the current and new password interactively.
Password changes against Windows Server 2025 may fail unless -protocol kpasswd is used, sometimes with the misleading error:
Target user is not allowed to change their own password
Use the Kerberos password-change protocol for compatibility with Windows Server 2025:
docker run -it --rm bcit/changepasswd -protocol kpasswd username@domain
kpasswd also works with earlier Active Directory domain controllers and requires TCP or UDP port 464 between the client and domain controller.
If port 464 is unavailable, omit -protocol kpasswd to use the container's default protocol. This fallback may fail against Windows Server 2025.
docker run -it --rm bcit/changepasswd domain/username@dc-ip
Full documentation and Dockerfile at github.com/itsbcit/container-changepasswd.
Content type
Image
Digest
sha256:63bb8b8f1…
Size
30.4 MB
Last updated
2 days ago
docker pull bcit/changepasswd