1. Andres Slachevsky
  2. PowerBuilder
  3. Wednesday, 13 February 2019 12:27 PM UTC

Hello All,

Any one have manage to integrate a PowerBuilder Application with CyberArk using th CyberArk API

The information and documentation on the CyberArk DLL is really poor so if some one have manage to integrate it will be great.

The only help i found was:

 

The API to get password has the following syntax.

int get_password(char *ini_file, char *password_buffer, int password_buffer_length, char *error_buffer, int error_buffer_length)

 

The ini_file is the file name with path to the *.ini file containing the credentials needed to connect to the specific CyberArc Vault containing the password.

The password_buffer is a character array to copy the obtained password.

The password_buffer_length is the maximum length of the password buffer.

The error_buffer is the character array to store the error message in case of error.

The error_buffer_length is the maximum length of the error buffer.


Thanks to all

Andres Slachevsky Accepted Answer Pending Moderation
  1. Thursday, 14 February 2019 12:12 PM UTC
  2. PowerBuilder
  3. # 1

Thanks to all,

the documentation did not match the DLL.

so was imposible to know what to do.

now they sent me a CS code with other DLL that now i can translate to PowerBuilder

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 13 February 2019 16:01 PM UTC
  2. PowerBuilder
  3. # 2

It might be ANSI so you will need to add this:

 

... LIBRARY "their_dll_name.dll" Alias For "function_name;Ansi"

 

Comment
There are no comments made yet.
Bruce Armstrong Accepted Answer Pending Moderation
  1. Wednesday, 13 February 2019 15:07 PM UTC
  2. PowerBuilder
  3. # 3

Never tried it.  None the less, recommend the following

external declaration:

FUNCTION int get_password ( REF string ini_file, REF string password_buffer, int password_buffer_length, REF string error_buffer, int error_buffer_length ) LIBRARY "their_dll_name.dll"

use:

int password_buffer_length, error_buffer_length, rc

string ini_file, password_buffer, error_buffer

password_buffer_length = 200

error_buffer_length = 1000

password_buffer  = space ( password_buffer_length )

error_buffer = space ( error_buffer_length )

ini_file = 'something'

rc = get_password ( ini_file, password_buffer, password_buffer_length, error_buffer, error_buffer_length )

Comment
  1. Andres Slachevsky
  2. Wednesday, 13 February 2019 16:38 PM UTC
Thanks i will try to set the

password_buffer_length = 200



error_buffer_length = 1000



password_buffer = space ( password_buffer_length )



error_buffer = space ( error_buffer_length )



ini_file = 'something'



and let you know



i have declared the function the same way.

there is really no documentation anywhere not even a .net example

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.