Skip to content

AD password history length slider fails above 24 #7735

@nrauso

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedAll test cases were verified successfully

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions