How to set up WinSCP and Filezilla to retrieve passwords with AIM
Objective
How to set up WinSCP and Filezilla to retrieve passwords with AIM?
Environment
9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7
Procedure
Please follow the steps in below example and modify them as per your system environment.
Environment : I have created a FTP server user account named LinuxFTPuser02 on my target machine and I have installed AIM on my component server.
1. Create a new Safe called “application user” to store the application logins
2. Go to the PVWA--> APPLICATIONS tab
3. Click on Add Application button
4. Enter the application name in the Name field and press Add. This step will also create a user with the same name
5. In the Authentication tab, click Add and choose OS User or the authentication method you require
6. Enter the authentication user name hostname\useraccount in the OS User field. Press Add. This will restrict access to any accounts owned by this application to the authentication user
7. Go to the Allowed Machines tab and press Add. Enter the IP address of the allowed server and press Add. This will restrict access to accounts owned by this application to the listed machines
8. Go to the ACCOUNTS tab and add the LinxuFTPuser02 user mentioned above. The Address would be the FTP server address
9. Please copy the full name of the account from Name field (in this example it is Database-LabOracleDB-XX.XX.XX.XX-LinuxFTPuser02) to a notepad
10. Go to the Policies tab, select Access Control (Safes) on the left-hand side. Select the Application User safe and click Members on the bottom-right.
Add 2 user accounts in as the member and give them access to retrieve and list accounts from this Safe
a) the Prov_xxxxxxxx user, it is the Vault user account created by the AIM installer
b) The application user account. It is the same as the Application name you created in step 4
11. Please edit below fields in the sample AIM-Information-Retrieval.txt file in the attachment
a) Replace the “WinCPFTP” behind AppID with the application name you create
b) Replace “application user” with the Safe name that stores your FTP accounts
c) Replace <object-name> with the object name of the your FTP account (e.g in my case it is Database-LabOracleDB-XX.XX.XX.XX-LinuxFTPuser02)
d) Change the .txt to .bat and execute it. If the configuration is set properly, you should be able see the FTP account details in the cmd console
From AIM APPAudit.log
Below record would be captured for each entry
[31/12/2018 | 12:23:32] | :: | APPAU001I Provider Prov_DLAB105PSM2 has successfully fetched password
12. In the attachment, there is a sample batch file (AIM-FileZilla.txt) for using Filezila with AIM.
** If you want to use WinSCP instead, please modify the last line to:
"C:\Program Files (x86)\WinSCP\WinSCP.exe" "%username01%:%pw01%@%address01%:%port01%"
Additional Information
Details
Q:
How to set up WinSCP and Filezilla to retrieve passwords with AIM?
A:
Please follow the steps in below example and modify them as per your system environment.
Environment : I have created a FTP server user account named LinuxFTPuser02 on my target machine and I have installed AIM on my component server.
1. Create a new Safe called “application user” to store the application logins
2. Go to the PVWA--> APPLICATIONS tab
3. Click on Add Application button
4. Enter the application name in the Name field and press Add. This step will also create a user with the same name
5. In the Authentication tab, click Add and choose OS User or the authentication method you require
6. Enter the authentication user name hostname\useraccount in the OS User field. Press Add. This will restrict access to any accounts owned by this application to the authentication user
7. Go to the Allowed Machines tab and press Add. Enter the IP address of the allowed server and press Add. This will restrict access to accounts owned by this application to the listed machines
8. Go to the ACCOUNTS tab and add the LinxuFTPuser02 user mentioned above. The Address would be the FTP server address
9. Please copy the full name of the account from Name field (in this example it is Database-LabOracleDB-XX.XX.XX.XX-LinuxFTPuser02) to a notepad
10. Go to the Policies tab, select Access Control (Safes) on the left-hand side. Select the Application User safe and click Members on the bottom-right.
Add 2 user accounts in as the member and give them access to retrieve and list accounts from this Safe
a) the Prov_xxxxxxxx user, it is the Vault user account created by the AIM installer
b) The application user account. It is the same as the Application name you created in step 5
11. Please edit below fields in the sample AIM-Information-Retrieval.txt file in the attachment
a) Replace the “WinCPFTP” behind AppID with the application name you create
b) Replace “application user” with the Safe name that stores your FTP accounts
c) Replace <object-name> with the object name of the your FTP account (e.g in my case it is Database-LabOracleDB-XX.XX.XX.XX-LinuxFTPuser02)
d) Change the .txt to .bat and execute it. If the configuration is set properly, you should be able see the FTP account details in the cmd console
From AIM APPAudit.log
Below record would be captured for each entry
[31/12/2018 | 12:23:32] | :: | APPAU001I Provider Prov_DLAB105PSM2 has successfully fetched password
12. In the attachment, there is a sample batch file (AIM-FileZilla.txt) for using Filezila with AIM.
** If you want to use WinSCP instead, please modify the last line to:
"C:\Program Files (x86)\WinSCP\WinSCP.exe" "%username01%:%pw01%@%address01%:%port01%"