A2A installer creates Perl library CSPM_CLIENT_WIN.pm with wrong syntax
search cancel

A2A installer creates Perl library CSPM_CLIENT_WIN.pm with wrong syntax

book

Article ID: 228265

calendar_today

Updated On:

Products

CA Privileged Access Manager (PAM)

Issue/Introduction

We tried to follow instructions on documentation page Integrate a Perl Script with A2A Client on Windows, but found that it doesn't work, giving error "The filename, directory name, or volume label syntax is incorrect.". We reviewed the CSPM_CLIENT_WIN.pm library file and found that the path in it is uses backslash characters instead of forward slashes. Changing the path fixed the problem. Please fix the A2A client installer.

Environment

Release : Any supported release as of November 2021 (3.4.0-4.0.1)

Component : PRIVILEGED ACCESS MANAGEMENT

Cause

This is a bug in the A2A installer for Windows.

Resolution

PAM Engineering fixed the problem for future releases, starting with the 4.0.2 A2A client installer.

For now you can just replace the backslash characters in CSPM_CLIENT_WIN.pm with forward slashes. You may also have to add the "our" keyword to the $GETCR variable.

Original problem code example (lines 10-13 in cspmclient\lib\CSPM_CLIENT_WIN.pm):

my $PROJECT_HOME="c:\cspm\cloakware\cspmclient\bin";
our $EXEC="$PROJECT_HOME\cspmclient.exe ";

$GETCR  = qq{$EXEC };

Fixed code:

my $PROJECT_HOME="c:/cspm/cloakware/cspmclient/bin";
our $EXEC="$PROJECT_HOME/cspmclient.exe ";

our $GETCR  = qq{$EXEC };