I have seen the kbarticle about resetting the lost sysadmin password on Apigee Edge OPDK, from @jhunt@apigee.com. The description there says that it applies to "15.01 and newer". However, in OPDK 16.01, I cannot find a chpasswd-system.sh file anywhere in the system.
find /opt/apigee -name chpasswd-system.sh
returns nothing.
How can I reset the sys admin password on openldap for Edge 16.01 ?
This can be achieved using apigee-service module in 16.01:
/opt/apigee/apigee-service/bin/apigee-service edge-management-server change_sysadmin_password -o oldpassword -n newpassword
Thanks,
Archnedra
Discovered a problem in Apigee change_sysadmin_password script. If your new password is say "Apigee$1234", then the script will interpret the value of password as "Apigee" only. The script assumes $ as end of input.
Unlike with the chpasswd-system.sh script in 15.01 to 15.07, additional steps are needed to also reset the UI password in 16.01.
The Ops guide lists all of them under "Reset System Admin Password":
> /opt/apigee/apigee-service/bin/apigee-service edge-ui stop
> /opt/apigee/apigee-service/bin/apigee-service edge-management-server change_sysadmin_password -o currentPW -n newPW
3) Edit the silent config file that you used to install the Edge UI to set the following properties:
APIGEE_ADMINPW=newPW
SMTPHOST=smtp.gmail.com SMTPPORT=465 SMTPUSER=foo@gmail.com SMTPPASSWORD=bar SMTPSSL=y
Note that you have to include the SMTP properties when passing the new password because all properties on the UI are reset.
> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-ui start
Is there any chance to set the password, if I don't have the silent config file?
I have only some copies somewhere else, and don't want to damage the whole topology just trying to reset the password. I know that some entries (e.g. postgres password) do not match the as-is state...
The steps are documented here for 1701
http://docs.apigee.com/private-cloud/latest/managing-users-roles-and-permissions#changingthedefaults...