-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathad_user_setup.sh
73 lines (50 loc) · 2.3 KB
/
ad_user_setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
set -e
# allow weak passwords - easier to demo
samba-tool domain passwordsettings set --complexity=off
# set password expiration to highest possible value, default is 43
samba-tool domain passwordsettings set --max-pwd-age=999
# Create DemoTenantUsers group and a user ad_user1, ad_user2
samba-tool group add DemoTenantUsers
samba-tool user create ad_user1 pass123
samba-tool group addmembers DemoTenantUsers ad_user1
samba-tool user create ad_user2 pass123
samba-tool group addmembers DemoTenantUsers ad_user2
samba-tool user create ad_user3 pass123
samba-tool group addmembers DemoTenantUsers ad_user3
samba-tool user create ad_user4 pass123
samba-tool group addmembers DemoTenantUsers ad_user4
samba-tool user create ad_user5 pass123
samba-tool group addmembers DemoTenantUsers ad_user5
samba-tool user create ad_user6 pass123
samba-tool group addmembers DemoTenantUsers ad_user6
samba-tool user create ad_user7 pass123
samba-tool group addmembers DemoTenantUsers ad_user7
samba-tool user create ad_user8 pass123
samba-tool group addmembers DemoTenantUsers ad_user8
samba-tool user create ad_user9 pass123
samba-tool group addmembers DemoTenantUsers ad_user9
samba-tool user create ad_user10 pass123
samba-tool group addmembers DemoTenantUsers ad_user10
# Create DemoTenantAdmins group and a user ad_admin1, ad_admin2
samba-tool group add DemoTenantAdmins
samba-tool user create ad_admin1 pass123
samba-tool group addmembers DemoTenantAdmins ad_admin1
samba-tool user create ad_admin2 pass123
samba-tool group addmembers DemoTenantAdmins ad_admin2
samba-tool user create ad_admin3 pass123
samba-tool group addmembers DemoTenantAdmins ad_admin3
samba-tool user create ad_admin4 pass123
samba-tool group addmembers DemoTenantAdmins ad_admin4
samba-tool user create ad_admin5 pass123
samba-tool group addmembers DemoTenantAdmins ad_admin5
samba-tool user create ad_admin6 pass123
samba-tool group addmembers DemoTenantAdmins ad_admin6
samba-tool user create ad_admin7 pass123
samba-tool group addmembers DemoTenantAdmins ad_admin7
samba-tool user create ad_admin8 pass123
samba-tool group addmembers DemoTenantAdmins ad_admin8
samba-tool user create ad_admin9 pass123
samba-tool group addmembers DemoTenantAdmins ad_admin9
samba-tool user create ad_admin10 pass123
samba-tool group addmembers DemoTenantAdmins ad_admin10