You will need a linux machine set up with samba-ldap and root access.
- Download the script with
wget
or the whole repo with thegit
command - Make the script executable with
chmod +x create-user.sh
for the user script orchmod +x create-group.sh
for the group script - Run the script with either
./create-user.sh <path to csv-file>
for the user script or./create-group.sh <path to csv-file>
for the group script.
Note that the seperators and order of columns can be changed in the script.
oupath=OU=ou,OU=to,OU=path
group1
group2
...
Note that groups in this CSV must already exist, they will not be added if they don't exist!
oupath=OU=ou,OU=to,OU=path
username;name;surname;password;[groups,seperated,by,comma]
...