RE: [Samba] migrate existing Unix password to sambapassword
> Considering we have more than 500 users, I still > wonder if there is a way I can populate their Samba > entries automatically and quickly -- even the value of > SambaPasword is set to be temporary and is different > from the correpsonding userPassword. smbpasswd command > seems only can be used at interactive mode. That is true, there used to be a flag to allow you to specify the password as an argument but that is no longer there. That being said, there are ways to get it to be scripted. Here the essence of a line I use in my automatic useradd script to get it done. This is valid bash once you replace the <>'s. I have it in perl with ``, yes there's probably better ways, but this is mine. (echo ; echo ) | -s -a -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] migrate existing Unix password to sambapassword
On Thursday 21 July 2005 05:43 pm, Taolizhong wrote: > I still > wonder if there is a way I can populate their Samba > entries automatically and quickly -- even the value of > SambaPasword is set to be temporary and is different > from the correpsonding userPassword. smbpasswd command > seems only can be used at interactive mode. Never used it myself but I've read that "expect" is useful in such circumstances. Chris -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] migrate existing Unix password to sambapassword
>> >> 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. >> > >Since you are already usng OpenLDAP to authenticate your Unix users, you >can also use it to authenticate your Windows users. Since they will then >be authenticating from the same database, you won't have to worry about >password sync. This is covered in the Samba HOWTO. > Thanks,Dwight. But the password entries for the Unix account and Windows account of a user are different (userPassword, SambaNTPassword). According to Paul Gienger's reply (thx Paul too), it seems that it is impossible to populate users' SambaNTPassword with the same value of their UserPassword. Considering we have more than 500 users, I still wonder if there is a way I can populate their Samba entries automatically and quickly -- even the value of SambaPasword is set to be temporary and is different from the correpsonding userPassword. smbpasswd command seems only can be used at interactive mode. Thanks, --Lingtao Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] migrate existing Unix password to sambapassword
Taolizhong said: > Hello -- > > 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. > Since you are already usng OpenLDAP to authenticate your Unix users, you can also use it to authenticate your Windows users. Since they will then be authenticating from the same database, you won't have to worry about password sync. This is covered in the Samba HOWTO. /dwight -- Dwight N. Tovey email: [EMAIL PROTECTED] - Work to Live : Live to Ride : Ride to Work -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] migrate existing Unix password to sambapassword
> 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. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] migrate existing Unix password to sambapassword
Hello -- 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. Thanks, --Lingtao __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba