Restoring Pingcastle license after update

We have a Pingcastle Auditor Edition license. After the update to 4.0, it reverted to a basic edition.

Is this an oversight ?

Hi Danny,
You would just need to take the license you have and add it to the appsettings.console.json.

There are multiple issues with that license injection process that used to happen, mainly that it then breaks the checksum so you cannot verify the integrity of the download.

Cheers,
Joe

just a hint; this works for me every update:

#!/usr/bin/env python3
import os
import sys
import json

configfile="appsettings.console.json"

try:
    jsonfile=open(configfile)
    record=json.load(jsonfile)
    jsonfile.close()
except:
    print("Cannot open file "+configfile+" as a json file",file=sys.stderr)
    sys.exit(1)

LICENSE=os.getenv('LICENSE','None')

if ( LICENSE == 'None' ):
    print("Need LICENSE environment filled with the license-string.",file=sys.stderr)
    sys.exit(1)

record['License']['License'] = LICENSE
print(json.dumps(record,indent=4,ensure_ascii=True))

That did it. Used to by automatically in the past, so I did not actually check the file.

Thanks !

Also (more automation) the following command would you give you the current version/download-link:

$ wget -q https://api.github.com/repos/vletoux/pingcastle/releases -O - | jq -Mrj '.[]|.tag_name,"|",.name,"|",.assets[].browser_download_url,"\n"' | head -1

Output will be:  
    4.0.0.20|PingCastle 4.0.0.20|https://github.com/netwrix/pingcastle/releases/download/4.0.0.20/PingCastle_4.0.0.20.zip