Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 May : Indy 9, FTP, AS/400, put & get, user-not-authorized

www.cryer.info
Managed Newsgroup Archive

Indy 9, FTP, AS/400, put & get, user-not-authorized

Subject:Indy 9, FTP, AS/400, put & get, user-not-authorized
Posted by:"Matthias Bauchigner" (matthias.bauching..@gmx.at)
Date:19 May 2005 02:16:06

hi,

I have an FTP-problem with a customer which uses an FTP-server on an AS/400 (version string of the server: 220-FTPD1 IBM FTP CS V1R4).
Our product (coded in Delphi7) including the FTP-client (Indy 9.0.18) runs on Windows 2000 (same with WinXP & 2003).
The problem is that I can't put or get a file. Connect, cd, list etc are working fine.
When I try to put a file the server returns the following error:
"STOR fails: ABC.UVW.MNO.test.txt. User not authorized".
Where 'ABC' is the name of the user logged in.
'UVW.MNO' is the name of the directory to store the file in.
'test.txt' is the name of the destination file.

I've first thought that it is a problem with user-rights, but using a prior version of our product (including Indy 7, can't remember the correct version-number) there is not any problem with this ftp-server.

In our code I simply have:
*) IdFTP.Connect("ABC");
*) IdFTP.ChangeDir("UVW.MNO"); // Yes, it's a dir containing a dot.
*) IdFTP.Put("test.txt"); //<-- Here the error happens.

I've already searched the web but was not able to find an answer.
Does anybody have any idea to this?
Thanx in advance.
Matthias

Replies:

www.cryer.info
Managed Newsgroup Archive