[K12OSN] Smbldap-bulk-useradd change password encryption

Jim Kronebusch jim at winonacotter.org
Fri Aug 12 19:54:36 UTC 2005


> Okay, I figured out the syntax I need.  
> 
> # (echo $password;echo $password) | smbpasswd -s $username
> 
> Now if anyone can help me with a script that would parse a 
> file called userpasswords in the format of username,password 
> and do something like for everyline in userpasswords set 
> $username as username and $password as password and then run 
> the above command I would be set.

Nevermind.  I just created a query in my database that took the
appropriate fields and filled in the extra stuff for me.  Then exported
it to a file, made it executable and ran it.

Thanks

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.7/70 - Release Date: 8/11/2005
 


-- 
This message has been scanned for viruses and
dangerous content by the Cotter Technology 
Department, and is believed to be clean.




More information about the K12OSN mailing list