net: Use dom_sid_str_buf
[Samba.git] / simple-dc-steps.sh
blob4d36b06d2d58c8dcd73dc7aaa4288302de441919
1 #!/bin/bash
3 #set -x
5 make test TESTS="samba4.blackbox.group.py"
7 echo adding user fred
8 bin/samba-tool user add -H st/provision/simple-dc/private/sam.ldb fred complexpassword#12
10 echo adding group swimmers
11 bin/samba-tool group add -H st/provision/simple-dc/private/sam.ldb swimmers
13 echo adding fred to swimmers
14 bin/samba-tool group addmembers -H st/provision/simple-dc/private/sam.ldb swimmers fred
15 echo
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
25 echo deleting fred
26 bin/samba-tool user delete -H st/provision/simple-dc/private/sam.ldb fred
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