Unable to connect to PostgreSQL via DBeaver (custom connector issue)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to connect to PostgreSQL via DBeaver (custom connector issue)

L4 Transporter

Hello, CyberArk community!

 

I have developed my own custom PSM connector for connecting to PostgreSQL via the DBeaver as I was instructed in one of my past questions that I asked in the portal: https://community.cyberark.com/s/question/0D7Ht000008jAZfKAM/detail

 

Shortly, my problem right now is that when I click on connect, CyberArk establishes the session and starts the recording, but the clientApp itself doesn't open properly. On the first screenshot below I would like to show that instead of having one, I have two DBeaver app windows that are getting open once I click on connect. Second screenshot below shows what I have at the end, and no matter what I choose, the session gets aborted:

 

Field_Content_versions_oct20__068Ht00000WtHVKIA3.pngField_Content_versions_oct20__068Ht00000WtHVPIA3.png 

So, here is my troubleshooting. I tested my AutoIT script with hardcoded credentials, it's running properly and establishes the connection with the database, everything is fine at that part.

 

Then, as per instructions from this article https://medium.com/@vamshivam144/create-psm-connectors-using-autoit-637fdd22830b I used the PSM dispatcher, copied, changed it accordingly.

 

* I wasn't able to test the connection as described in this article: https://community.cyberark.com/s/article/00004913 because I don't have a PSM shadow user and wasn't able to run the commands.

 

So I jumped to integrating the connector with PVWA, and did everything as I was told in the guide.

 

The platform for the password management for PostgreSQL I downloaded from the marketplace and associated my created PSM connector with it.

 

Finally, I edited the PSMConfigureAppLocker.xml file by adding these two lines:

Field_Content_versions_oct20__068Ht00000WtHVtIAN.png

I am not really sure about this one because I tried just allowing the dbeaver.exe, now PSM-DBeaver, and session is not getting launched and doesn't give any error. If I have only PSM-DBeaver in the Allowed applications, I have another error when I try to connect, I get "unable to launch dbeaver.exe". That's why I assume I need to have both of these lines there, but I might be wrong and this can be the reason why I am facing this issue that I have right now.

 

 

Can someone please help me troubleshoot this problem? I will be happy to share any additional details that would help this process, for I have no ideas what else I can possibly check or try.

 

1 accepted solution

Accepted Solutions

L7 Applicator

Hi @Almaz Akhmadullin​ 

 

To isolate the issue with AppLocker rule, you can put the Applocker in Audit mode 'temporarily' and do not enforce the rules

 

After that try to run the Connector again, if that is successfully getting established, some processes are still getting blocked by AppLocker.

 

 

View solution in original post

5 REPLIES 5

L4 Transporter

UPDATE:

 

I was able to handle one problem, which was the "Can't lock workspace". It was caused by my script, It had Dbeaver.exe in both the Client executable variable, and at the beginning of the Script, that's why it was causing the problem.

 

So now, when I am trying to connect, it launches the DBeaver and it says "Event loop exception":Field_Content_versions_oct20__068Ht00000WtIgGIAV.png 

and Then I get this:

 

 

Field_Content_versions_oct20__068Ht00000WtIg1IAF.png

L7 Applicator

Hi @Almaz Akhmadullin​ 

 

To isolate the issue with AppLocker rule, you can put the Applocker in Audit mode 'temporarily' and do not enforce the rules

 

After that try to run the Connector again, if that is successfully getting established, some processes are still getting blocked by AppLocker.

 

 

Hello Malhar,

 

Thanks for the reply!

 

Did you see my recent update on the issue, where I stated a new issue that I am facing right now?

 

The reason why I ask, is because I am confused if your suggestion refers to that post or the original post. Also, could you please tell me, how do I put the Applocker in Audit mode?

L4 Transporter

Hi @Almaz Akhmadullin​ 

 

As the community has not yet provided an answer to this question for some time, could you kindly share if you were able to resolve the issue, and how? Your solution could help other community members who may face a similar issue.

 

If the issue is still relevant, I would advise raising a ticket with our Support team for further assistance.

 

Thanks, Liad

Hi @Liad Domb​ ,

 

Actually I tried Malhar's suggestion to put the AppLocker in audit mode and it indeed worked! Turned out I had some dlls that were getting blocked by AppLocker that were preventing my DBeaver from starting! That was a really helpful suggestion and a useful trick for troubleshooting that I took in my arsenal.

  • 1 accepted solution
  • 1094 Views
  • 5 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!