mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Update ADconnection.sh
This commit is contained in:
parent
7c475aa8f3
commit
dfa3a49f90
@ -708,7 +708,8 @@ exit
|
|||||||
ldaplook(){
|
ldaplook(){
|
||||||
export HOSTNAME
|
export HOSTNAME
|
||||||
myhost=$( 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
|
then
|
||||||
echo "ldap tool installed.. verifying setup"
|
echo "ldap tool installed.. verifying setup"
|
||||||
sudo ldapsearch | grep -i $myhost
|
sudo ldapsearch | grep -i $myhost
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user