[Samba] fun with samba-tool.. creating users from csv
L.P.H. van Belle
belle at bazuin.nl
Tue May 27 07:06:57 MDT 2014
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
More information about the samba
mailing list