530/534 FTP Credentials only accepted

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
hilbertj
Posts: 6
Joined: Wed Nov 14, 2018 6:28 pm

530/534 FTP Credentials only accepted

Post by hilbertj »

Hi,

I need to change the connenction of an ftp-routine because the other side is going to use new ftp-servers.
They state:
- connect via TLS/SSL explicit encryption, no plain FTP is allowed
- there is no need of any certification.

We run all our applications on I-series.
At the moment I use following code (old situation)
Use Builtin(JSM_COMMAND) With_Args('CONNECT HOST(ftp.aaaa.com) protection(*yes)') To_Get(#JSMSTS #JSMMSG)
Use Builtin(JSM_COMMAND) With_Args('LOGIN USER(ftpuser) PASSWORD(password)') To_Get(#JSMSTS #JSMMSG)

After the login command, I get following message:

LOGIN command failed : 534 Credentials only accepted over an encrypted connection (use PROT first)


Does anyone know what specs to use?

Thanks, Jacques
User avatar
Dino
Posts: 477
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: 530/534 FTP Credentials only accepted

Post by Dino »

This works for me in my ftp server which also requires TLS/SSL (names changed of course):

Code: Select all

Use JSMX_COMMAND With_Args(#JSMXHDLE1 'CONNECT HOST(FTP.SNOWWHITE.COM) SECURE(*YES) PROT(*YES)') To_Get(#JSMXSTS #JSMXMSG)
Use JSMX_COMMAND With_Args(#JSMXHDLE1 'LOGIN USER([email protected]) PASSWORD(Ahhhhgh123#)') To_Get(#JSMXSTS #JSMXMSG)
https://docs.lansa.com/15/en/lansa093/i ... Ref2086380
Post Reply