Page 1 of 1

530/534 FTP Credentials only accepted

Posted: Fri Aug 20, 2021 9:38 pm
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

Re: 530/534 FTP Credentials only accepted

Posted: Fri Aug 20, 2021 10:40 pm
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