PSMP - Hostname invalid -for ADBridge- stops install for ADBridge
Symptom
Issue:
When installing PSMP on RHEL9, the installation stops with error:
"[ERROR] Invalid value [PSMP_ADB_ hostname.domain.com] for parameter [ADBridgeUser]. (Reason: Value cannot contain any of the following characters: \/:*?"<>.| and its length cannot be greater than 28)
[ERROR] Invalid parameter values or failed to write into effective parmfile [/var/tmp/.psmpparms.effective]. Aborting installation.
Environment
14.6 Privileged Access Manager (PAM, self-hosted) PSMP
PSM 14.6
Linux client
NAME="Red Hat Enterprise Linux"
VERSION="9.6 (Plow)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="9.6"
Cause
The long name is being used to create account being stored PrivateArk Users and exceeds the requirements. Setting these values in psmpparms makes no difference. Setting ADBridge to disabled also makes no difference.
Resolution
Workaround: This changes hostname to short name and then proceeds to install, then returns the original hostname
>>Sudo to root
>sudo -i
>>Change FQDN to Short Name
#hostnamectl
#hostnamectl set-hostname <hostname>
>>Copy files to /tmp
- Used Win SCP through PSM rpm to /tmp
WinSCP: copy PrivilegedSessionManagerSSHProxy-RHELinux9-Intel64-Rls-v14.6.3.zip to <host>/tmp
#mkdir /cyberark
#cp /tmp*zip /cyberark
>>Install unzip (if needed, step is optional)
#dnf install unzip
>>Stage Installs Files
#mkdir /cyberark/14.6.3
#cd /cyberark/14.6.3/
#cp /tmp/*.zip /cyberark/14.6.3/
#unzip /cyberark/14.6.3/*.zip
>>Install RPM
#cd /cyberark/14.6.3/
#rpm -Uvh CARKpsmp-14.6.3.36.x86_64.rpm
>>Modify psmpparms
#cd /cyberark/14.6.3/
#cp psmpparms.sample /var/tmp/psmpparms
#vi /var/tmp/psmpparms
Hardening=Yes
AcceptCyberArkEULA=Yes
EnableADBridge=No
>>Modify vault.ini
#cp /opt/CARKpsmp/doc/examples/vault.ini /opt/CARKpsmp/bin/
#vi /opt/CARKpsmp/bin/vault.ini
>>Create Credfile
#cd /opt/CARKpsmp/bin/
#chmod +x /opt/CARKpsmp/bin/createcredfile
#/opt/CARKpsmp/bin/createcredfile user.cred
Finalize to Register with Vault
#/opt/CARKpsmp/bin/psmp_setup.sh --finalize --vault-ini vault.ini --credfile user.cred
[After Install Completes Successfully Return to Hostname Original]
#hostnamectl
#hostnamectl set-hostname <hostname>