Skip to content

AD password history length slider fails above 24 #7735

Closed

Description

@nrauso

It seems there is an issue with the Samba AD “Password history length” option in the UI, which currently allows values from 0 to 64:
Image

According to Microsoft’s documentation, the valid range for the password history length is 0 to 24:
🔗 https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh994571(v=ws.11)#possible-values

When attempting to set a higher value through Samba, an error is raised:

:/# samba-tool domain passwordsettings set --max-pwd-age=90 --history-length=40 --min-pwd-length=8 --complexity=on 
ERROR: Password history length must be in the range of 0 to 24!

We should limit the slider’s maximum value to 24.

Expected Behavior

The slider for “Password history length” should only allow values from 0 to 24, since higher values are invalid and cause the command to fail.

Steps to Reproduce

  • Install a Samba AD internal account provider;
  • Try to set the password history length above 24 (e.g., 40 or 50).

Components

  • samba:3.1.1

See also

Activity

  1. added this to the NethServer 8.7 milestone on Nov 6, 2025
  2. changed the title [-]AD password history length slider allows invalid values above 24[/-] [+]AD password history length slider fails above 24[/+] on Nov 6, 2025
  3. moved this from ToDo to In Progress in NethServeron Nov 11, 2025
  4. DavidePrincipi commented on Nov 14, 2025

    @DavidePrincipi
    Member

    In Testing

    • core 3.14.0-dev.4
    • openldap 2.5.1-dev.1
    • samba 3.3.0-dev.1

    Test case

    Check the bug is not reproducible

  5. added
    testing
    on Nov 14, 2025
  6. moved this from In Progress to Testing in NethServeron Nov 14, 2025
  7. nrauso commented on Nov 18, 2025

    @nrauso
    Author

    test cases: VERIFIED

    Works flawlessly with both Samba and OpenLDAP account providers

  8. added
    verified
    on Nov 18, 2025
  9. removed
    testing
    on Nov 18, 2025
  10. moved this from Testing to Verified in NethServeron Nov 18, 2025
  11. moved this from Verified to Done in NethServeron Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    verified

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions