CPM Failed to verify PostgreSQL DB user

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

CPM Failed to verify PostgreSQL DB user

L4 Transporter

Hi Everybody,

 

I have one user account in PostgreSQL DB called pgadmin001, i'm trying to verify the password using ODBC Sample platform. I had installed PostgreSQL ODBC Driver on CPM computer and i had set up the DSN for it

 

Field_Content_versions_oct20__068Ht00000UJSVJIA5.png

Field_Content_versions_oct20__068Ht00000UJSVOIA5.pngPlease help me guys. I also had tried to set up the driver using the PostgreSQL ANSI & PostgreSQL ANSI (x64) but the problem is persist

Both the driver has 11.0 version. the PostgreSQL DB version is 15

 

 

 

1 accepted solution

Accepted Solutions

L4 Transporter

Hi All,

 

Thanks for your reply now my pgadmin001 PostgreSQL DB user can verify & change password successfull

 

Field_Content_versions_oct20__068Ht00000UJWnUIAX.pngTo overcome this problem i installed PostgreSQL ODBC driver version 16 from the previous version was 11. My PostgreSQL DB version is 15

 

 

View solution in original post

14 REPLIES 14

L3 Networker

Hi @Agus Susanto​ ,

 

Have you tried manually test the connection to Postgre DB using ODBC Data Source Administrator on the CPM server itself? How about the result?

 

Moreover, I suggest to enable debug log for more detail. Editing the platform being use, in the Additional Policy Settings, look for Debug and select Yes. Then click OK to save config. If possible, restart the Password Manager service on CPM server as well for sure. Then try to verify/change pass for the account again. Then look for debug log in the CyberArk\Password Manager\Logs\Old\ThirdParty folder in the CPM server to see how was going.

 

Regards

L7 Applicator

Hi @Agus Susanto​ 

 

Please check the following KB !

 

https://community.cyberark.com/s/article/00001806

L6 Presenter

In the platform settings, do you have the connection string defined including the driver to be used? It would look something like:

 

Driver={PostgreSQL ODBC Driver(UNICODE)};Server=%ADDRESS%;[Database=%DATABASE%;]Uid=%USER%;Pwd=%LOGONPASSWORD%;[Port=%PORT%]

Hi @Tri Nguyen​ ,

 

ODBC testing from CPM server is success

Field_Content_versions_oct20__068Ht00000UJW7IIAX.pngI already activated CPM debug level by set to yes & restart the CPM service & test the verification again. below is the log file

 

file ODBC-PSM plugin root xxxxxx.debug.log :

15/05/2024 11:23:44 [0eb0] Forbidden Characters items separate by comma: ', \, /, @, ", ., {, }, (, ), , -, ;, |, *, >, ~, !, ^, #, 

15/05/2024 11:23:44 [0eb0] Black list words: delete, drop, exec, 

15/05/2024 11:23:44 [0eb0] ConvertFQDNToIP = No

15/05/2024 11:23:44 [0eb0] CheckIPv6: Start

15/05/2024 11:23:44 [0eb0] WSAStringToAddress: WSAStringToAddress return value: 10022. Host address: "10.0.7.246" 

15/05/2024 11:23:44 [0eb0] CheckIPv6: End

15/05/2024 11:23:44 [0eb0] Address = 10.0.7.246. Can't be detected as a valid IPV6 address.

15/05/2024 11:23:44 [0eb0] Host name: "10.0.7.246". 

15/05/2024 11:23:44 [0eb0] Properties [username: pgadmin001], [address: 10.0.7.246] [database: PgDbTes] [port: 5432] [dsn: ] [action: verifypass] [connectionStringTemplate: EXEC SQL CONNECT TO tcp:postgresql://10.0.7.246/PgDbTes AS konektes USER pgadmin001;] has been successfully read

15/05/2024 11:23:44 [0eb0] In Verify Action

15/05/2024 11:23:44 [0eb0] ConnectionStringTemplate: [EXEC SQL CONNECT TO tcp:postgresql://10.0.7.246/PgDbTes AS konektes USER pgadmin001;] Length: [84]

15/05/2024 11:23:44 [0eb0] Connection string sent to connection: [EXEC SQL CONNECT TO tcp:postgresql://10.0.7.246/PgDbTes AS konektes USER pgadmin001;]

15/05/2024 11:23:44 [0eb0] Clean ups

15/05/2024 11:23:44 [0eb0] Rc: 2103

15/05/2024 11:23:44 [0eb0] Ending plug-in

15/05/2024 11:34:04 [13b4] Forbidden Characters items separate by comma: ', \, /, @, ", ., {, }, (, ), , -, ;, |, *, >, ~, !, ^, #, 

15/05/2024 11:34:04 [13b4] Black list words: delete, drop, exec, 

15/05/2024 11:34:04 [13b4] ConvertFQDNToIP = No

15/05/2024 11:34:04 [13b4] CheckIPv6: Start

15/05/2024 11:34:04 [13b4] WSAStringToAddress: WSAStringToAddress return value: 10022. Host address: "10.0.7.246" 

15/05/2024 11:34:04 [13b4] CheckIPv6: End

15/05/2024 11:34:04 [13b4] Address = 10.0.7.246. Can't be detected as a valid IPV6 address.

15/05/2024 11:34:04 [13b4] Host name: "10.0.7.246". 

15/05/2024 11:34:04 [13b4] Properties [username: pgadmin001], [address: 10.0.7.246] [database: PgDbTes] [port: 5432] [dsn: ] [action: verifypass] [connectionStringTemplate: EXEC SQL CONNECT TO tcp:postgresql://10.0.7.246/PgDbTes AS konektes USER pgadmin001;] has been successfully read

15/05/2024 11:34:04 [13b4] In Verify Action

15/05/2024 11:34:04 [13b4] ConnectionStringTemplate: [EXEC SQL CONNECT TO tcp:postgresql://10.0.7.246/PgDbTes AS konektes USER pgadmin001;] Length: [84]

15/05/2024 11:34:04 [13b4] Connection string sent to connection: [EXEC SQL CONNECT TO tcp:postgresql://10.0.7.246/PgDbTes AS konektes USER pgadmin001;]

15/05/2024 11:34:04 [13b4] Clean ups

15/05/2024 11:34:04 [13b4] Rc: 2103

15/05/2024 11:34:04 [13b4] Ending plug-in

 

ODBC-PSM plugin root xxxxxxxxxxx-pgadmin.log :

14/05/2024 15:05:16 [155c] Error in reading xml file C:\Program Files (x86)\CyberArk\Password Manager\tmp\ODBC-PostgreSQL-PSM Plugin-Root-Database-ODBC-PostgreSQL-10.0.7.246-pgadmin001-14-05-24_15-04-55.xml while trying to get tag ConnectionCommand on verifypass

14/05/2024 15:39:17 [0c8c] Error when verifypass to User pgadmin001 on Server 10.0.7.246. State: IM002 Native error: 0 Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

14/05/2024 16:12:52 [04c0] Error when verifypass to User pgadmin001 on Server 10.0.7.246. State: IM002 Native error: 0 Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

14/05/2024 16:25:13 [12b4] Error when verifypass to User pgadmin001 on Server 10.0.7.246. State: IM002 Native error: 0 Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

14/05/2024 17:55:51 [0580] Error when verifypass to User pgadmin001 on Server 10.0.7.246. State: IM002 Native error: 0 Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

14/05/2024 19:26:45 [14ec] Error when verifypass to User pgadmin001 on Server 10.0.7.246. State: IM002 Native error: 0 Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

14/05/2024 20:57:41 [0cc0] Error when verifypass to User pgadmin001 on Server 10.0.7.246. State: IM002 Native error: 0 Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

14/05/2024 22:28:33 [1788] Error when verifypass to User pgadmin001 on Server 10.0.7.246. State: IM002 Native error: 0 Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

14/05/2024 23:59:25 [1520] Error when verifypass to User pgadmin001 on Server 10.0.7.246. State: IM002 Native error: 0 Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

15/05/2024 11:23:44 [0eb0] Error when verifypass to User pgadmin001 on Server 10.0.7.246. State: IM002 Native error: 0 Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

15/05/2024 11:34:04 [13b4] Error when verifypass to User pgadmin001 on Server 10.0.7.246. State: IM002 Native error: 0 Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

 

 

 

 

 

 

 

 

 

 

 

Hi @Agus Susanto​ ,

 

As per given log, it seems connection string was not good for PostgreSQL DB.

 

You can try the following platform for PostgreSQL

https://community.cyberark.com/mplace/s/#a352J000000dZISQA2-a392J000001Z3gRQAS

 

For me, the connection command for PostgreSQL DB as below

Field_Content_versions_oct20__068Ht00000UJWELIA5.png 

Hope it help

 

Regards

yes, but i set up PostgreSQL ANSI in ODBC setting, so i use : Driver={PostgreSQL ANSI};Server=%ADDRESS%;[Database=%DATABASE%;]Uid=%USER%;Pwd=%LOGONPASSWORD%;[Port=%PORT%] in ConnectionCommand

 

once i test verify again, error still same, State: IM002 Native error: 0 Message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

 

i just registered 2 DB user accounts for testing, both account have same error above once verifying test

i use CyberArk version 13, there is no PMTerminal.exe in C:\Program Files (x86)\CyberArk\Password Manager\bin

Hi @Agus Susanto​ ,

 

I'm curios why in the ODBC, you test with database postgres

 

But in the above given log, I see you enter another database

Properties [username: pgadmin001], [address: 10.0.7.246] [database: PgDbTes] [port: 5432] [dsn: ]

 

Is there any explain for this

 

Regards

L4 Transporter

Hi @Tri Nguyen​ ,

 

database postgres is used by user postgres, this is super user in DB postgres

database PgDbTes is used by user pgadmin001, once pgadmin001 login this user has permission only to PgDBTes to do some SQL query

 

so my target is the pgadmin001's password can be changed via CPM

So did you test ODBC Data Source Administrator with user pgadmin001 and how was it going

L4 Transporter

Hi @Tri Nguyen​ ,

 

This is the login test using ODBC for user pgadmin001

 

Field_Content_versions_oct20__068Ht00000UJWeoIAH.png 

 

 

L4 Transporter

Hi All,

 

Thanks for your reply now my pgadmin001 PostgreSQL DB user can verify & change password successfull

 

Field_Content_versions_oct20__068Ht00000UJWnUIAX.pngTo overcome this problem i installed PostgreSQL ODBC driver version 16 from the previous version was 11. My PostgreSQL DB version is 15

 

 

Activate your Window bro 😜

Hello @Agus Susanto​ 

 

Could you share the In the platform settings of:

ChangeCommand: ?

ReconcileCommand: ?

ConnectionCommand: ?

  • 1 accepted solution
  • 1094 Views
  • 14 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!