ctdb-event: Force EVENTSCRIPTS_TESTS_VAR_DIR to be absolute
[amitay/samba.git] / simple-dc-steps.sh
1 #!/bin/bash
2
3 #set -x
4
5 make test TESTS="samba4.blackbox.group.py"
6
7 echo adding user fred
8 bin/samba-tool  user add -H  st/provision/simple-dc/private/sam.ldb fred complexpassword#12
9
10 echo adding group swimmers
11 bin/samba-tool group add -H  st/provision/simple-dc/private/sam.ldb swimmers
12
13 echo adding fred to swimmers
14 bin/samba-tool group addmembers -H  st/provision/simple-dc/private/sam.ldb swimmers fred
15 echo
16
17 for w in swimmers fred; do
18     echo grepping for $w
19     echo ------------------------------------
20     bin/ldbsearch -H  st/provision/simple-dc/private/sam.ldb --show-recycled --show-deleted  --show-deactivated-link --reveal | grep  $w
21     echo ------------------------------------
22 done
23 echo
24
25 echo deleting fred
26 bin/samba-tool user delete  -H  st/provision/simple-dc/private/sam.ldb fred
27
28 for w in swimmers fred; do
29     echo grepping for $w
30     echo ------------------------------------
31     bin/ldbsearch -H  st/provision/simple-dc/private/sam.ldb --show-recycled --show-deleted  --show-deactivated-link --reveal | grep  $w
32     echo ------------------------------------
33 done
34 echo