x
login Signup

Using getFullCredential but getting errors

Running EFlow 7.0.

I have a procedure that executes with the following bash script:

 #!/bin/bash
 
 cUname=ectool getFullCredential Current_Login --value userName
 cPswd=ectool getFullCredential Current_Login --value password
 nUname=ectool getFullCredential New_Login --value userName
 nPswd=ectool getFullCredential New_Login --value password
 
 echo "\n$cUname\n"
 echo "$cPswd\n"
 echo "$nUname\n"
 echo "$nPswd\n\n"
 
 echo -e "$cPswd\n$nPswd\n$nPswd" | passwd

I run this job as a specified user. username: hz1w13. This is a local account on the RHEL server I am impersonating.

Here are the Parameters I am using: alt text

Here are the results when I run this bash script on Server 1:

 /tmp/ecmdrAgent/agent.M0IDO269TO3XH58X.run-d63204c4-efe9-11e7-ab32-005056bf6b92-d6551cb7-efe9-11e7-8afd-005056bf6b92.cmd: line 3: getFullCredential: command not found
 /tmp/ecmdrAgent/agent.M0IDO269TO3XH58X.run-d63204c4-efe9-11e7-ab32-005056bf6b92-d6551cb7-efe9-11e7-8afd-005056bf6b92.cmd: line 4: getFullCredential: command not found
 /tmp/ecmdrAgent/agent.M0IDO269TO3XH58X.run-d63204c4-efe9-11e7-ab32-005056bf6b92-d6551cb7-efe9-11e7-8afd-005056bf6b92.cmd: line 5: getFullCredential: command not found
 /tmp/ecmdrAgent/agent.M0IDO269TO3XH58X.run-d63204c4-efe9-11e7-ab32-005056bf6b92-d6551cb7-efe9-11e7-8afd-005056bf6b92.cmd: line 6: getFullCredential: command not found
 \n\n
 \n
 \n
 \n\n
 (current) UNIX password: passwd: Authentication token manipulation error
 Changing password for user hz1w13.
 Changing password for hz1w13

Here are the results I am getting on Server 2:

 ecproxy.pl: ssh_connect: Public key file must be specified; use setSSHKeyFiles
 

Both servers are RHEL servers.

What am I doing wrong?

screenshot.jpg (39.4 kB)
avatar image By luckyirishlife 59 asked Jan 02 at 06:37 PM
more ▼
(comments are locked)
10|750 characters needed characters left

1 answer: sort voted first

Make sure your credential parameter is attached to any step calling getFullCredential. It's on the edit step page near the bottom.

avatar image By gzeng 112 answered Jan 03 at 11:52 PM
more ▼
(comments are locked)
10|750 characters needed characters left
Your answer
toggle preview:

Up to 8 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.