Migrate Existing Samba 3 Installations to UCS 3 with Samba 3 mentions the way you already described:
[quote]To copy the password import the NT Hash using an ldapmodify on the entry sambaNTPassword of the respective user. [/quote].
I dont know if this works for a direct migration to Samba 4. At least it is not documented, see [bug]37838[/bug].
I have tried this approach but it doesn’t work.
maybe ucs 4 has some extra validations…
The strange thing is that with a simple samba4 install i was able to do this sync… writing directly sambaNTPassword…
I could try an approach that i saw online… Install UCS with samba3, sync, and the upgrade to samba4.
But that is not an option because i will always (at least for a reasonable amount of time) have my user information stored in an external ldap (openldap).[/quote]
I looked around a little more and found that there is a method for password sync from ucs to ucs4
forge.univention.org/svn/dev/br … _ucs_to_s4
Not being (not even close) a python expert a tried to follow the code and it seems it connects to ucs to extract the details for a user account and the magic happens in
forge.univention.org/svn/dev/br … assword.py
Can anyone point me some light if i am in the right direction?
The users creation in ucs4 will be carried out by other method but i need to sync the passwords (which are stored in two formats - md5 hash and sambaNTPassword).