Update ADconnection.sh

This commit is contained in:
PierreGoude 2017-06-22 10:04:53 +02:00 committed by GitHub
parent 7c475aa8f3
commit dfa3a49f90

View File

@ -708,7 +708,8 @@ exit
ldaplook(){
export HOSTNAME
myhost=$( hostname )
if [ -f /etc/ldap/ldap.conf ]
ldaptools=$ ( sudo dpkg -l | grep -i ldap-utils | cut -d 's' -f1 | cut -d 'l' -f2 )
if [ $ldaptools = dap-uti ]
then
echo "ldap tool installed.. verifying setup"
sudo ldapsearch | grep -i $myhost