mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Resolved discovery fails when leaving realm
Resolved discovery fails when leaving realm
This commit is contained in:
parent
e91723a3dc
commit
d4dd9182f4
@ -2465,7 +2465,7 @@ then
|
|||||||
read -r -p "Do you really want to leave the domain: $SSSD (y/n)?" yn
|
read -r -p "Do you really want to leave the domain: $SSSD (y/n)?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* ) echo "Listing domain"
|
[Yy]* ) echo "Listing domain"
|
||||||
#sudo realm discover "$SSSD"
|
sudo realm discover "$SSSD" | grep realm | head -1
|
||||||
if ! sudo realm leave "$SSSD"
|
if ! sudo realm leave "$SSSD"
|
||||||
then
|
then
|
||||||
echo "failed Nothing to leave"
|
echo "failed Nothing to leave"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user