Adding new user with CentOS 6.5 and Samba 4.1.5

Webmin
2014-03-20
2014-09-22
  • Fred Kienker
    Fred Kienker
    2014-03-20

    Pushing the envelope I realize! I’ve been using CentOS 6.x / SerNet Samba 3.6.x / Webmin for a very long time with great results. I’m now testing SerNet Samba 4.1.x as a simple file server to replace 3.6.x. I’ve set up Webmin Users and Groups automatically add, update, and delete Samba users as well. I’ve also used the Webmin Samba Convert Users function as well. After changing to Samba 4.1.5 I receive the following message when using either one of these functions:

    Failed to save user : /usr/bin/pdbedit failed :
    new password:retype new password:

    I checked the syntax of pdbedit between the two versions and there does not appear to be any difference but obviously something has changed. I thought I would report this since Samba 3.6.x is now going into maintenance mode and new deployments will probably be on the 4.1.x platform.

     
  • Hi,

    Same here with the Samba 4.1.6 in combination with Ubuntu 12.04 LTS.
    What configs and syntax to search for?
    Where does webmin store these commands?
    Maybe then I'm able to research it...

    Setting /usr/bin/pdbedit to none did also not help!
    A fix would be appreciated, as it's now very difficult to work with!

    Thanks,

    Roelof

     
  • Sebadamus
    Sebadamus
    2014-09-22

    Exactly same problem here when trying to run batch user import:
    /usr/bin/pdbedit failed :
    new password:
    retype new password:Failed to add entry for user THEUSER.

    I have ubuntu 14.04 lts 64bits (new install)
    Webmin 1700
    Samba version 4.1.6-Ubuntu

    This only happens if I leave the import option:
    Only update users file when batch is complete? YES

    If not, I can import... but I think there is no samba password sync.

    There is also a bug on ubuntu 14.04 lts first release, that you have to uninstall libpam-smbpass or run pam-auth-update to disable password sync, if not ubuntu gives memory leak error... here report:
    https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1257186

    Maybe tampering with options trying to solve the problem deletes or modifies some webmin config about sync?

    Here link to the support ticket I add with subject changed and more info: https://sourceforge.net/p/webadmin/discussion/600155/thread/957e6c8b/#aad3

    I had to batch update samba user passwords from command line, creating a script to update the whole bunch of users.

     
    Last edit: Sebadamus 2014-09-22