Steps to reproduce
- Go to NS8 admin UI → domain configuration → Edit password policy
- Enable password expiration
- Set
Maximum password age to 1000
- Save
Expected behavior
The change is applied, or a clear error is shown before any command runs.
Actual behavior
set-password-policy aborts with exit code 255:
$ podman exec samba-dc samba-tool domain passwordsettings set --max-pwd-age=1000
ERROR: Maximum password age must be in the range of 0 to 999!
The UI slider for Maximum password age (ns8-core, EditPasswordPolicy.vue) has a hardcoded max="1000", but Samba's AD-style password policy only accepts 0-999. ns8-samba's set-password-policy action (50set_password_policy) passes the value straight to samba-tool with no validation.
Workaround: use 999 instead of 1000, it applies immediately.
Components
Note: ns8-openldap does not share this limit — pwdMaxAge there is a plain seconds-based integer with no AD-style 999-day cap, so no equivalent fix is needed on that side.
Steps to reproduce
Maximum password ageto1000Expected behavior
The change is applied, or a clear error is shown before any command runs.
Actual behavior
set-password-policyaborts with exit code 255:The UI slider for
Maximum password age(ns8-core,EditPasswordPolicy.vue) has a hardcodedmax="1000", but Samba's AD-style password policy only accepts0-999.ns8-samba'sset-password-policyaction (50set_password_policy) passes the value straight tosamba-toolwith no validation.Workaround: use
999instead of1000, it applies immediately.Components
ns8-sambaNote:
ns8-openldapdoes not share this limit —pwdMaxAgethere is a plain seconds-based integer with no AD-style 999-day cap, so no equivalent fix is needed on that side.