IBM Support

FTP and DataPower: best practice for username:password

Troubleshooting


Problem

How do you set your FTP username and password in IBM WebSphere DataPower? If you embed them in the URL you use to attach to DataPower, they may be visible on the wire. Also, DataPower may attempt to parse them.

Symptom

If the FTP-embedded username or password contains reserved characters, the FTP logon may not succeed.

Cause

If a username contains an "@", everything following the "@" may be interpreted as the server address

Resolving The Problem

The best practice for providing user:password pairs to DataPower is to add them to the Basic Auth tab of the User Agent. Locate the User Agent from the service configuration screen by selecting the "..." button to the right of the XML Manager for that service. (Choose * for the URL Matching Expression, or any more specific description of the HTTP Proxy to be used.) Once a user:password pair is saved in the Basic Auth tab, it no longer needs to be provided in the FTP client address (you can use, for example: ftp://myserver:port rather than ftp://user:password@myserver:port)

[{"Product":{"code":"SS9H2Y","label":"IBM DataPower Gateway"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF009","label":"Firmware"}],"Version":"4.0.2;4.0.1;3.8.2;5.0.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
08 June 2021

UID

swg21461647