Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-06-22 10:26:13 +02:00 committed by GitHub
parent 3194d82d53
commit 58b7252c75

View File

@ -709,7 +709,7 @@ ldaplook(){
export HOSTNAME export HOSTNAME
myhost=$( hostname ) myhost=$( hostname )
ldaptools=$( sudo dpkg -l | grep -i ldap-utils | cut -d 's' -f1 | cut -d 'l' -f2 ) 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 then
echo "ldap tool installed.. verifying setup" echo "ldap tool installed.. verifying setup"
sudo ldapsearch | grep -i $myhost sudo ldapsearch | grep -i $myhost