-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Labels
verifiedAll test cases were verified successfullyAll test cases were verified successfully
Milestone
Description
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:

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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
verifiedAll test cases were verified successfullyAll test cases were verified successfully
Type
Projects
Status
Done