[Samba] Transfer user passwords from Samba3 to Samba4

Andrew Bartlett abartlet at samba.org
Tue Feb 10 00:58:03 MST 2015

On Mon, 2015-02-09 at 15:30 +0100, Andreas Hauffe wrote:
> Hi,
> I'm migrating a domain from Samba3 to Samba4. I now about the possibility to 
> transfer the domain (users and computers) during the provisioning (Upgrade 
> from Samba3 to Samba4).
> Due to problems with the domain name (I have to change the domain name), SIDs 
> a.s.o. I want to create a new domain during provisioning. Then I want to 
> create/add all users with a script. Is there a way to extract the password 
> from the old openLDAP backend and reuse/set it for all users.
> Perhaps take the "sambaLMPassword" or "sambaNTPassword" and add it somewhere?

Even if you have to change the domain name, you can still upgrade.  Just
change it in Samba3 before you start - certainly your clients won't keep
their machine join, but that's no worse than starting from scratch. 

Why do you need to change SIDs?

Andrew Bartlett

Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba

More information about the samba mailing list