Absent Member.. bzdafro Absent Member..
Absent Member..
1261 views

Automating password encryption or can I allow user to update just a few environment passwords?

I have used the kEncrypt.sh to generate encrypted password.  Then drop the first and last 3 characters (#!#) and update the password in an environment.     I would like to create a workflow that will automate this.   Is it possible to pass the entire encryption to the update statement or must you drop the first 3 and last 3?   Because I am not sure of an easy way to drop the last 3 without some crazy awk or sed.   (Plus I would prefer not to mess around with cutting characters).   Any suggestions or better ways to perform this?  I need to allow some users to update a few passwords in PPM.

Tags (2)
0 Likes
6 Replies
Absent Member.. Jim Esler Absent Member..
Absent Member..

Re: Automating password encryption or can I allow user to update just a few environment passwords?

We have a request type for this function. The commands that encrypt the new value and place it in a temporary token are:

 

./kEncrypt.sh -t "[REQD.VP.RUNTIME_PASSWORD]" | grep "\#\!\#" | sed 's/#\!#//g'
ksc_set ENCRYPTED="[EXEC.OUTPUT]"

Celil Absent Member.
Absent Member.

Re: Automating password encryption or can I allow user to update just a few environment passwords?

what is your system? grep & sed are linux commands
Celil

IT Governance Professional
& PPM Solution Architect
0 Likes
Absent Member.. Jim Esler Absent Member..
Absent Member..

Re: Automating password encryption or can I allow user to update just a few environment passwords?

We run on AIX servers. grep and sed are also available in a Cygwin environment which, I assume, would be available on a Windows server that is running PPM.

0 Likes
Absent Member.. bzdafro Absent Member..
Absent Member..

Re: Automating password encryption or can I allow user to update just a few environment passwords?

That should work.  Do you run an update script to update a PPM environment password or do you pass the token to a script to run?

0 Likes
Absent Member.. Jim Esler Absent Member..
Absent Member..

Re: Automating password encryption or can I allow user to update just a few environment passwords?

We create a script with the appropriate values with ksc_begin_script / ksc_end_script, then execute it with a sqlplus command.

0 Likes
Contributor.. Vibhor Contributor..
Contributor..

Re: Automating password encryption or can I allow user to update just a few environment passwords?

We have a similar requirement in to automate the password update for environment. Does this workaounrd working for you. If you can share some feedback then it will be great help for us. Also we are on Solaris server. Will this command work over there.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.