Is there an easy way to have a samba user automatically created whenever a unix user is created? Currently I'm using LDAP. But it is not that easy, and also very difficult to setup. I'm looking for a simpler way.
You can use "smbpasswd -a " to set the users password in the Samba database, without requiring them to log in.
It should be possible to create a simple wrapper script which calls both useradd and smbpasswd -a. Ideally useradd should just have integration for this and call smbpasswd -a for you (perhaps after you've set a configuration option), but we're not quite there yet.