I have tried the following: $ftp_user = "DOMAIN\user" and also the following: "DOMAIN/user" "\\DOMAIN\user" 'DOMAIN\/user' 'DOMAIN/\user' all of them: I have tried declaring a variable $ftp_domain = 'DOMAIN'; and including it on the login section of the ftp module e.g. $ftp->login($ftp_user, $ftp_password) added these as well ($ftp_domain, $ftp_user, $ftp_password) still invalid user/pass I have alos hard coded the parameters in the above login statement instead of using variables.