Hello there!
When I create a new user through 'Webmin > System > Users and Groups' I receive the following message:
Failed to save user: /usr/bin/pdbedit failed:
Failed to modify account record CN=testuser, CN=Users, DC=dcdomain, DC=domain, DC=com to set user attributes: 0000052D: Constraint violation - check_password_restrictions: the password is too short. It should be equal or longer than 7 characters!
Failed to modify entry for user testuser.
Actually, the password I tried to insert had 9 characters.
My setup:
Webmin version 1.930
Samba version 4.5.16 configured as AD-DC
Debian version 9.11
Linux Kernel version 4.9.0
Please any help would be appreciated.
Looks like your Samba server is rejecting the password, not Webmin. Does it help if you turn off password restrictions?
Thank you Jamie for your attention.
I had run these commands:
* samba-tool domain passwordsettings set --complexity=off
samba-tool domain passwordsettings set --history-length=0
samba-tool domain passwordsettings set --min-pwd-length=0
samba-tool domain passwordsettings set --min-pwd-age=0
samba-tool domain passwordsettings set --max-pwd-age=0*
Then, I tried creating another new user and... it works!
Actually, the error message from Samba was confusing because it wrongly complains about the password length.
Thank you very much for the hint!
Best regards
Marcelo Garcia
Actually, it turns out there is a Webmin bug here - when a user is created, the password isn't set initially which would trigger this policy check. This will be fixed properly in the next release.