mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
8e2f5020cd
shfmt -f source4/scripting/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
15 lines
494 B
Bash
Executable File
15 lines
494 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
. $(dirname $0)/vars
|
|
|
|
if [ -z "$site" ]; then
|
|
site="Default-First-Site-Name"
|
|
fi
|
|
|
|
bin/ldbdel -r -H ldap://$server.$DNSDOMAIN -U$workgroup/administrator%$pass "CN=$machine,CN=Computers,$dn"
|
|
bin/ldbdel -r -H ldap://$server.$DNSDOMAIN -U$workgroup/administrator%$pass "CN=$machine,OU=Domain Controllers,$dn"
|
|
bin/ldbdel -r -H ldap://$server.$DNSDOMAIN -U$workgroup/administrator%$pass "CN=$machine,CN=Servers,CN=$site,CN=Sites,CN=Configuration,$dn"
|
|
rm -f $PREFIX/private/*.ldb
|