08-09-2007
Automated FTP from Unix to Active Directory Server
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?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I need some help to finish my ftp script and i need to find the last one weeks of fles updated in the sepecific directory and see those end with Z and ftp them to my backup server. Any help is appreciated.
Thanks,
Ravi :) (1 Reply)
Discussion started by: koduri0475
1 Replies
2. Programming
Hi ,
I need some help to finish my ftp script and i need to find the last one weeks of fles updated in the sepecific directory and see those end with Z and ftp them to my backup server. Any help is appreciated.
Thanks,
Ravi :) (1 Reply)
Discussion started by: koduri0475
1 Replies
3. UNIX for Advanced & Expert Users
Hi ,
I need some help to finish my ftp script and i need to find the last one weeks of fles updated in the sepecific directory and see those end with Z and ftp them to my backup server. Any help is appreciated.
Thanks,
Ravi :) (1 Reply)
Discussion started by: koduri0475
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
automated FTP that have error check and each product FTP will used the same userid/password to post(transfer) the file(s) from their <product> directory at UNIX to their <product> folder at Windows.
such senarios as follows:
NOTE:
=======
** Variable **
* The <product> is variable... (3 Replies)
Discussion started by: songtam
3 Replies
5. Shell Programming and Scripting
Hi,
My local server is :/usr/abcd/
Remote server is :/Usr/host/test/
I want to send files from local unix directory(All files starting with O_999) to
remote host unix directory.
Can any body give me the Unix Shell script to do this.
One more doubt: Shall we need to change the file... (1 Reply)
Discussion started by: raja_1234
1 Replies
6. Shell Programming and Scripting
Automated FTP.
hint : use 'atd' to schedule to run a specific script.
An Env Variable should be created,say CONF_DIR which points to some dir.
@ some time, create a TAR file of this and FTP it to some server. (3 Replies)
Discussion started by: vishalzone2002
3 Replies
7. Linux
I've set up a FTP server (vsftpd) with some local user account and it works fine. Now i want to upgrade this FTP server with an ability that can authorize user through Active Directory. I do a search around our forum and it leads me to this page:
Native LDAP, native Kerberos and Windows Server... (0 Replies)
Discussion started by: cthinh
0 Replies
8. Shell Programming and Scripting
suppose one file comes in one sever location on MOnday.we have to write a script to automatically get that files and put it in different server location.
---------- Post updated at 10:28 AM ---------- Previous update was at 10:27 AM ----------
Please help me on this (2 Replies)
Discussion started by: sonam273
2 Replies
9. Solaris
We are having a hard time joining our organizations Active Directory using this guide. Keep getting hit with syntax and authentication errors.
Has anyone here joined a Solaris 11 to an Active Directory using smbadm as detailed in this example? I understand that the example I cited is mainly... (0 Replies)
Discussion started by: LittleLebowski
0 Replies
10. Shell Programming and Scripting
Hi,
I want to delete a file on the local server, while connected to remote server through FTP.
I am using the below code for this
$FTP_CMD -v -n $HOST <<*! >> $LOGFILE 2>&1
user $USER $PASSWORD
cd $DIR
... (11 Replies)
Discussion started by: jhilmil
11 Replies