Created attachment 11876 [details]
If you set Samba 4.3.5 as an NT4-style PDC with ldapsam:editposix (though the later may be a red herring, another user is getting the same problem and he is using ipasam) and then try to create a user with 'smbpasswd -a username', the command ends in a segfault.
You get asked for the users password (twice), the user is created in ldap, but the commands exits without adding the password to the user.
I have attached the smb.conf in use, a level 10 log, a copy of the users object in ldap and what happens when you run smbpasswd with gdb.
Created attachment 11877 [details]
Created attachment 11878 [details]
Created attachment 11879 [details]
I'm getting the same segfault, using ipasam... But my user doesn't gets created in the LDAP/FreeIPA...
Looks a bit like this bug: https://bugzilla.samba.org/show_bug.cgi?id=11530
(which has a fix in master)
(In reply to Garming Sam from comment #5)
OK, I will download master from git and compile it.
(In reply to Rowland Penny from comment #6)
OK, getting closer ;-)
smbpasswd from samba-master creates the user and adds the password, but it still segfaults, see attached files: new_user, new_gdb_result and new_log.wb-EXAMPLE
Created attachment 11881 [details]
Created attachment 11883 [details]
Created attachment 11884 [details]