Automated Unix to Windows Active Directory FTP
I have done many automated FTP scripts using the following logic:
===============================
echo "Starting the FTP transfer..."
\{ echo "
open 192.168.1.100
user username password
ascii
put textfile.txt
close "
\} | ftp -i -n -v > ftptransfer.log
===============================
But now i need to log into an FTP site on a Windows Active Directory server. The username that I need to pass to the script has a domain name and a backslash in front of it: "AD\username". I have tried escaping the backslash (AD\\username) and using various quoting combinations, but I cannot get the script to pass the username as AD\username. It usually gets sent as ADusername, without the backslash, which does not work.
Any ideas?