mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
improved detecting fails and errors.
This commit is contained in:
parent
c1ca9665cc
commit
69873de6ac
@ -1278,6 +1278,7 @@ echo "${NUMBER}your BASE will be the area you will search in${END}"
|
|||||||
sleep 3
|
sleep 3
|
||||||
if [ "$ldaptools" = dap-uti ]
|
if [ "$ldaptools" = dap-uti ]
|
||||||
then
|
then
|
||||||
|
clear
|
||||||
echo "ldap tool installed.. trying to find this host"
|
echo "ldap tool installed.. trying to find this host"
|
||||||
sudo ldapsearch -x cn="$myhost'*'"
|
sudo ldapsearch -x cn="$myhost'*'"
|
||||||
echo "Please type what you are looking for"
|
echo "Please type what you are looking for"
|
||||||
@ -1285,6 +1286,7 @@ read -r own
|
|||||||
sudo ldapsearch -x | grep -i "$own"
|
sudo ldapsearch -x | grep -i "$own"
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
|
clear
|
||||||
sudo apt-get install ldap-utils -y
|
sudo apt-get install ldap-utils -y
|
||||||
echo "${NUMBER}please edit in ldap.conf the lines BASE and URI ${END}"
|
echo "${NUMBER}please edit in ldap.conf the lines BASE and URI ${END}"
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user