Menu

#5314 Webmin 1.930 + Samba : error when creating a new user

1.930
closed-fixed
nobody
None
5
2019-10-12
2019-10-09
No

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.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2019-10-09

    Looks like your Samba server is rejecting the password, not Webmin. Does it help if you turn off password restrictions?

     
  • Marcelo Garcia

    Marcelo Garcia - 2019-10-10

    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

     
  • Jamie Cameron

    Jamie Cameron - 2019-10-12
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2019-10-12

    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.

     

Log in to post a comment.