Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Group Policy "Relax minimum password length limits" is not found #63596

Closed
chruck opened this issue Jan 31, 2023 · 0 comments · Fixed by #63605
Closed

Windows Group Policy "Relax minimum password length limits" is not found #63596

chruck opened this issue Jan 31, 2023 · 0 comments · Fixed by #63605
Assignees
Labels
Bug broken, incorrect, or confusing behavior lgpo Sulfur v3006.0 release code name and version Windows

Comments

@chruck
Copy link

chruck commented Jan 31, 2023

Description of Issue

Windows modules lgpo do not recognize policy "Relax minimum password length limits". @twangboy

Setup

Enable "Relax minimum password length limits":
  lgpo.set:
    - computer_policy:
        Relax minimum password length limits: Enabled

As seen in gpedit:
relax

Steps to Reproduce Issue

On a Windows 2022 server in PowerShell as Administrator:

PS C:\salt\srv\locke> salt-call --local lgpo.get_policy_info "Relax minimum password length limits" machine
[WARNING ] Trying another: Relax minimum password length limits
local:
    ----------
    message:
        Unable to find Machine policy Relax minimum password length limits
    policy_aliases:
    policy_class:
        machine
    policy_elements:
    policy_found:
        False
    policy_name:
        Relax minimum password length limits
    rights_assignment:
        False
PS C:\salt\srv\locke> salt-call --local lgpo.get_policy_info "Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Password Policy\Relax minimum password length limits" machine
[WARNING ] Trying another: Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Password Policy\Relax minimum password length limits
local:
    ----------
    message:
        Unable to find Machine policy Relax minimum password length limits
    policy_aliases:
    policy_class:
        machine
    policy_elements:
    policy_found:
        False
    policy_name:
        Computer Configuration\Policies\Windows Settings\Security Settings\Account Policies\Password Policy\Relax minimum password length limits
    rights_assignment:
        False

Note that the corresponding Registry key is:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SAM:RelaxMinimumPasswordLengthLimits

Versions Report

PS C:\salt\srv\locke> salt-call --versions-report
Salt Version:
          Salt: 3005.1

Dependency Versions:
          cffi: 1.14.6
      cherrypy: 18.6.1
      dateutil: 2.8.1
     docker-py: Not Installed
         gitdb: 4.0.7
     gitpython: Not Installed
        Jinja2: 3.1.0
       libgit2: Not Installed
      M2Crypto: Not Installed
          Mako: 1.1.4
       msgpack: 1.0.2
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.10.1
        pygit2: Not Installed
        Python: 3.8.15 (tags/v3.8.15:44adf8a, Nov  8 2022, 17:20:07) [MSC v.1929 64 bit (AMD64)]
  python-gnupg: 0.4.8
        PyYAML: 5.4.1
         PyZMQ: 22.0.3
         smmap: 4.0.0
       timelib: 0.2.4
       Tornado: 4.5.3
           ZMQ: 4.3.4

System Versions:
          dist:
        locale: cp1252
       machine: AMD64
       release: 2022Server
        system: Windows
       version: 2022Server 10.0.20348 SP0 Multiprocessor Free
@twangboy twangboy self-assigned this Jan 31, 2023
@OrangeDog OrangeDog added Bug broken, incorrect, or confusing behavior Windows lgpo labels Feb 1, 2023
@garethgreenaway garethgreenaway added this to the Sulphur v3006.0 milestone Feb 1, 2023
@garethgreenaway garethgreenaway added the Sulfur v3006.0 release code name and version label Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior lgpo Sulfur v3006.0 release code name and version Windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants