mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 16:50:13 +01:00
Update ADconnection.sh
This commit is contained in:
parent
3194d82d53
commit
58b7252c75
@ -709,7 +709,7 @@ ldaplook(){
|
||||
export HOSTNAME
|
||||
myhost=$( hostname )
|
||||
ldaptools=$( sudo dpkg -l | grep -i ldap-utils | cut -d 's' -f1 | cut -d 'l' -f2 )
|
||||
if [ $ldaptools = dap-uti ]
|
||||
if [ "$ldaptools" = dap-uti ]
|
||||
then
|
||||
echo "ldap tool installed.. verifying setup"
|
||||
sudo ldapsearch | grep -i $myhost
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user