L.P.H. van Belle
2014-May-27 13:06 UTC
[Samba] fun with samba-tool.. creating users from csv
Just?if?someone?wants?it.. ? This is a easy way to create, ? create a CSV with | separated values. and match the $1 -=> $7 with your values. ? cat users.csv | awk -F "|" '{system("samba-tool user create "$5" --surname=\""$3"\"? --given-name="$4" --department="$1" --mail-address="$7" --telephone-number="$6" --random-password --userou=ou=MyOneCompanyOU") }' ? Greetz, ? Louis ?