Donald Hobbs wrote:
Is there a solution to migrate the passwords ??
I have a similar issue where I am moving users from a standard centos 5 box to a ClearOS box,. Have had to put off the implementation of the ClearOS server until I can find a solution to this problem.
The following link will allow migration of all UNIX account information to LDAP:
www.padl.com/OSS/MigrationTools.html
Do all the following on the original Centos 5 box. The LDAP server can be the ClearOS system.
First migrate all UNIX accounts to LDAP POSIX account format using the above tool.
Next, configure Samba's smb.conf to use:
passdb backend = ldap://ldap_server:389
Do not forget to set the LDAP admin account info into smb.conf _AND_ set the LDAP admin password into the secrets.tdb file by executing:
smbpasswd -w admin_password
If you have Samba accounts in smbpasswd format execute:
pdbedit -i smbpasswd -e ldapsam
If you have the Samba account in tdbsam format execute:
pdbedit -i tdbsam -e ldapsam
That should migrate your accounts. Now you will need to set the same domain SID as your original Centos Samba server.
On Centos execute:
net getlocalsid
net getdomainsid
On ClearOS execute:
net setlocalsid S-1-5-21-xxxxxxxx-xxxxxxx-xxxxxx (from above)
net setdomainsid S-1-5-21-xxxxxxx-xxxxxxx-xxxxxx (also from above)
Next, do not forget to dump the account info into an LDIF file. Edit the user account info into the same structure used by ClearOS, then reimport into LDAP.
This should recover all you old user and machine account info - including the passwords (both POSIX and SambaSAMAccount passwords).