08-12-2024 06:23 AM
Hi !
I'm looking for a parameter, to set up the default "admin" password on an ACS Community deployment.
Right now, I wait for the engine to start, and manually curl a new password:
docker exec -it alfresco-1 curl -X PUT "http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/people/-me-" \ -H "accept: application/json" -H "authorization: Basic YWRtaW46YWRtaW4=" -H "Content-Type: application/json" \ -d "{ \"oldPassword\": \"admin\", \"password\": \"${CONTENT_PASSWORD}\" }"
it works, but it feels wrong... Kinda hacky.
Every other internal sub-systems, like ActiveMQ, Keycloak, or Postgres, have environment variables to setup everything on the first launch.
I can't find such parameter on ACS.
I can't find anything in the ENV variables, nor the alfresco-global.properties.
Am I looking the wrong way ?
Thanks.
08-12-2024 07:01 AM
You can use the property alfresco_user_store.adminpassword, like in https://github.com/Alfresco/alfresco-docker-installer/blob/master/generators/app/templates/23.1/dock...
Expected value is an NTLM hash, like calculated in https://github.com/Alfresco/alfresco-docker-installer/blob/master/generators/app/index.js#L636
08-12-2024 07:01 AM
You can use the property alfresco_user_store.adminpassword, like in https://github.com/Alfresco/alfresco-docker-installer/blob/master/generators/app/templates/23.1/dock...
Expected value is an NTLM hash, like calculated in https://github.com/Alfresco/alfresco-docker-installer/blob/master/generators/app/index.js#L636
08-12-2024 08:23 AM
That's exactly what I was looking for !
Thank you very much !!
Explore our Alfresco products with the links below. Use labels to filter content by product module.