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
530/534 FTP Credentials only accepted
Re: 530/534 FTP Credentials only accepted
This works for me in my ftp server which also requires TLS/SSL (names changed of course):
https://docs.lansa.com/15/en/lansa093/i ... Ref2086380
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)