Calling script gurus... :)
#!/bin/sh
#
# Compare ComputerName to AD bind name, report MATCH or MISMATCH.
# Check AD name mismatch
COMPUTER_NAME="`scutil --get ComputerName`"
AD_NAME="`dsconfigad -show | grep "Computer Account" | awk '{print $4}' | rev | cut -c 2- | rev`"
if [ $COMPUTER_NAME == $AD_NAME ]; then
echo "<result>MATCH</result>"
else
echo "<result>MISMATCH</result>"
fi
The script works great...except that it reports a MISMATCH if the tech bound using lower case vs upper case characters.

Is there a tweak to the above script that will stop reporting MISMATCH if AD bind name is in lower case, but ComputerName is in upper case (or vice versa)?
TIA,
Don
