mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
58acf513f9
We save a database snapshot that contains linked attributes that should have been deleted, and make sure dbcheck fixes those links without ruining anything else. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
35 lines
1.1 KiB
Bash
Executable File
35 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
#set -x
|
|
|
|
make test TESTS="samba4.blackbox.group.py"
|
|
|
|
echo adding user fred
|
|
bin/samba-tool user add -H st/provision/simple-dc/private/sam.ldb fred complexpassword#12
|
|
|
|
echo adding group swimmers
|
|
bin/samba-tool group add -H st/provision/simple-dc/private/sam.ldb swimmers
|
|
|
|
echo adding fred to swimmers
|
|
bin/samba-tool group addmembers -H st/provision/simple-dc/private/sam.ldb swimmers fred
|
|
echo
|
|
|
|
for w in swimmers fred; do
|
|
echo grepping for $w
|
|
echo ------------------------------------
|
|
bin/ldbsearch -H st/provision/simple-dc/private/sam.ldb --show-recycled --show-deleted --show-deactivated-link --reveal | grep $w
|
|
echo ------------------------------------
|
|
done
|
|
echo
|
|
|
|
echo deleting fred
|
|
bin/samba-tool user delete -H st/provision/simple-dc/private/sam.ldb fred
|
|
|
|
for w in swimmers fred; do
|
|
echo grepping for $w
|
|
echo ------------------------------------
|
|
bin/ldbsearch -H st/provision/simple-dc/private/sam.ldb --show-recycled --show-deleted --show-deactivated-link --reveal | grep $w
|
|
echo ------------------------------------
|
|
done
|
|
echo
|