- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-14-2024 02:34 AM
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
Please 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
05-15-2024 02:50 AM
Hi All,
Thanks for your reply now my pgadmin001 PostgreSQL DB user can verify & change password successfull
To overcome this problem i installed PostgreSQL ODBC driver version 16 from the previous version was 11. My PostgreSQL DB version is 15
05-14-2024 03:34 AM
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
05-14-2024 09:08 AM
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%]
05-14-2024 09:41 PM
Hi @Tri Nguyen ,
ODBC testing from CPM server is success
I 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
05-14-2024 10:19 PM
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
Hope it help
Regards
05-15-2024 12:32 AM
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
05-15-2024 12:51 AM
i use CyberArk version 13, there is no PMTerminal.exe in C:\Program Files (x86)\CyberArk\Password Manager\bin
05-15-2024 01:03 AM
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
05-15-2024 01:18 AM
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
05-15-2024 01:33 AM
So did you test ODBC Data Source Administrator with user pgadmin001 and how was it going
05-15-2024 01:57 AM
Hi @Tri Nguyen ,
This is the login test using ODBC for user pgadmin001
05-15-2024 02:50 AM
Hi All,
Thanks for your reply now my pgadmin001 PostgreSQL DB user can verify & change password successfull
To overcome this problem i installed PostgreSQL ODBC driver version 16 from the previous version was 11. My PostgreSQL DB version is 15
05-15-2024 02:58 AM
Activate your Window bro 😜
12-23-2025 08:59 PM
Hello @Agus Susanto
Could you share the In the platform settings of:
ChangeCommand: ?
ReconcileCommand: ?
ConnectionCommand: ?
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!

