PS Scripting of LDAP Connector Password

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

PS Scripting of LDAP Connector Password

L3 Networker
So we have been trying to get the service account password related to Venafi to be rotated. I was referred to the CyberArk plugin, but that only takes care of the DB it seems. I have been trying to create a PS Script to try to cover the LDAP connector piece that needs to update. I get the correct response for the beginning TppConfiguration: Venafi Account user <our master admin user> requested to change the service account password for identity connector 'ad+friendly'It never seems to complete though. Just curious if anyone had any thoughts about how I should write it. This is what essentially what I am using in the script.$argList = '-identitypwd:"' + $newPass + '" -prefix:"' + $prefix + '" -username:"' + $masterUser+ '" -password:"' + $masterPass + '"'$tppPath = "`"E:\Program Files\Venafi\Platform\TppConfiguration.exe`""$cmd = [Scriptblock]::Create("&$tppPath $argList")Invoke-Command -ScriptBlock $cmd.
3 REPLIES 3

L0 Member

Hi,

I am trying to do the same for the AD connector, but getting the same issue where it gets stuck at,

"...requested to change the service account password for identity connector..."

 

I have tried both the unattended script method, where you pass the username and passwords in one single command.

Also tried the partial command, tppconfiguration.exe -driverpwd . It prompts for the master admin credentials and also the name and new password for the AD connector.

 

In both these methods, it gets stuck and doesn't give the final successful message.

 

I have run these commands with Venafi services running and also with services being in stopped state. Makes no difference.

 

No errors in TPP configuration log or the Windows event logs.

 

Checked the permissions for the Identity object on the Venafi Web console, the Local master admin account has full permissions to the AD connector object.

 

TPPConfiguration.exe utility, from what i have read, does NOT validate the identity connector password, hence the password update should be a fairly quick process and should succeed even if the password provided is incorrect.

 

I believe, This is a bug / problem in the TPPConfiguration.exe utility itself where it fails to update password when it comes to Identity connectors. Note that DBO/SQL password update works just fine.

L3 Networker

Bumping this to see if there has been any developments. Does the latest update fix this? Can it be done with VenafiPS?

L0 Member

Hi,

 

No significant developments from 23.3 to 24.3, except the names of command options have changed ;D

 

As far as the AD connector password change (tppconfiguration.exe -driverpwd) is concerned, I just noticed if you allow the command enough time to run, nearly 4 minutes, it completes the password change successfully.

It doesn't even check if the password is correct 😞

 

Obviously, if you are running it as a batch file/script, you need to explicitly mention the command timeout parameters to 4-5 minutes since the default value is 120 seconds i think.

 

unlike the DBO/SQL identity password update, where you just edit a plaintext string with connection parameters, The AD/LDAP connector password update encrypts the key and then stores it somewhere in the DB and that's why it takes much time.

 

PS: You don't need VenafiPS module, since password update is actually done by tppconfiguration.exe. But having the module makes it easier to write scripts which also perform health checks after the password rotation.

 

===

My query: How did you automate the DB credential rotation using CyberArk plugin?

i thought the plugin can only update credentials stored under the credentials tree in Venafi.. Happy to be proven wrong 🙂

 

 

  • 109 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!