Password with special characters not working
search cancel

Password with special characters not working

book

Article ID: 202550

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - System Agent (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) Workload Automation Agent CA Workload Automation AE

Issue/Introduction

autoflags -a
1701 LINUX ORA 11.3.6 SP8CUM1 

Here is a password that I cannot reconcile:

#Ys='[Z9iADg

Below is how I have to escape it for echo:

echo \#Ys=\'[Z9iADg
#Ys='[Z9iADg

If I attempt to escape it in the client command, it fails:

autorep -usr aydpkp -pw \#Ys=\'[Z9iADg -J PK%
CAUAJM_E_10920 User authentication for <aydpkp> has failed. Command aborted.

If I attempt to escape it in as_config, it doesn't work:

as_config -p
\#Ys=\'[Z9iADg
E63BA459778477A9005343FC9C324011
autorep -usr aydpkp -pwx E63BA459778477A9005343FC9C324011 -J PK%
CAUAJM_E_10920 User authentication for <aydpkp> has failed. Command aborted.

If I try to use the literal in as_config, it doesn't work:

as_config -p
#Ys='[Z9iADg
CC092A23D7B1551FA15B0E2A891057C6
autorep -usr aydpkp -pwx CC092A23D7B1551FA15B0E2A891057C6 -J PK%
CAUAJM_E_10920 User authentication for <aydpkp> has failed. Command aborted.

If I try to use the literal in the client command, it doesn't work:

autorep -usr aydpkp -pw #Ys='[Z9iADg -J PK%
CAUAJM_E_60349 Unable to complete authentication when an empty value is specified for -pw parameter or -pwx parameter. Command aborted.
CAUAJM_E_40003 The specified parameters are not valid.

What am I doing wrong?

 

Environment

Release : 11.3.6

Component : CA Workload Automation AE (AutoSys)

Resolution

autorep -usr markh -pw WAsupp#123 -J reid%

Job Name Last Start Last End ST/Ex Run/Ntry Pri/Xit
________________________________________________________________ ____________________ ____________________ _____ ________ _______
reid22 06/22/2020 10:32:04 06/22/2020 10:32:26 SU 265496/1 0
reid-22 10/19/2020 08:32:27 10/19/2020 08:32:27 SU 498042/1 0

I did not need to escape anything.
If the password started with a # then I did have to escape the #

autorep -usr markh -pw #WAsupp123 -J reid%
CAUAJM_E_60349 Unable to complete authentication when an empty value is specified for -pw parameter or -pwx parameter. Command aborted.
CAUAJM_E_40003 The specified parameters are not valid.

autorep -usr markh -pw \#WAsupp123 -J reid%
Job Name Last Start Last End ST/Ex Run/Ntry Pri/Xit
________________________________________________________________ ____________________ ____________________ _____ ________ _______
reid22 06/22/2020 10:32:04 06/22/2020 10:32:26 SU 265496/1 0
reid-22 10/19/2020 08:32:27 10/19/2020 08:32:27 SU 498042/1 0

If I try including a single quote ' I have to escape it otherwise the shell does not accept the command as being complete.
But the escape does work.
autorep -usr markh -pw WAsupp\'123 -J reid%

Job Name Last Start Last End ST/Ex Run/Ntry Pri/Xit
________________________________________________________________ ____________________ ____________________ _____ ________ _______
reid22 06/22/2020 10:32:04 06/22/2020 10:32:26 SU 265496/1 0
reid-22 10/19/2020 08:32:27 10/19/2020 08:32:27 SU 498042/1 0

Now if I try your example... #Ys='[Z9iADg

autorep -usr markh -pw #Ys='[Z9iADg -J reid%
CAUAJM_E_60349 Unable to complete authentication when an empty value is specified for -pw parameter or -pwx parameter. Command aborted.
CAUAJM_E_40003 The specified parameters are not valid.

If I escape the # and ' mine works...
autorep -usr markh -pw \#Ys=\'[Z9iADg -J reid%

Job Name Last Start Last End ST/Ex Run/Ntry Pri/Xit
________________________________________________________________ ____________________ ____________________ _____ ________ _______
reid22 06/22/2020 10:32:04 06/22/2020 10:32:26 SU 265496/1 0
reid-22 10/19/2020 08:32:27 10/19/2020 08:32:27 SU 498042/1 0

FYI - I confirmed I was able to login to the EEM UI as the user markh with the password of #Ys='[Z9iADg without issue.

NOTE -
https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/workload-automation-ae-and-workload-control-center/11-3-6-SP8/reference/ae-commands/monitor-and-report-on-workload/autorep-command-report-job-machine-and-variable-information.html

Utilities ignore command line options that specify external security authentication information and cached credentials when any of the following conditions apply:
The unauthenticated user mode setting is EXTERNAL.
CA Workload Automation AE is operating in native security mode