[Samba] migrate existing Unix password to sambapassword

Paul Gienger pgienger at ae-solutions.com
Thu Jul 21 04:45:44 GMT 2005


> Our existing Unix system has more than 500 users. The system currently
> uses OpenLDAP to authenticate users. We just added dozens of PCs running
> Windows to the network.  We are going to set up the existing Unix server
> as a samba PDC server such that the users can log onto either their Unix
> account or Windows account. It seems a good idea to allow the users have
> the same password for their new Windows account as that for their existing
> Unix account. I wonder if there is any way to accomplish this, especially
> automatically.

UNIX password hashes are a one way encryption, which means that you cannot
decrypt them (aside from brute force of course).  The only way would be if
you A. had a password list to re-key/script the generation of the smb
password or B. change everyone's password to something new and sync them at
that time.

Note that once you get it set up, there are plenty of ways to keep the
passwords in sync from here forward.



More information about the samba mailing list