cancel
Showing results for 
Search instead for 
Did you mean: 

Set the default password on deployment

abricchi
Champ in-the-making
Champ in-the-making

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.

1 ACCEPTED ANSWER

angelborroy
Community Manager Community Manager
Community Manager

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

Hyland Developer Evangelist

View answer in original post

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

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

Hyland Developer Evangelist

abricchi
Champ in-the-making
Champ in-the-making

That's exactly what I was looking for !

Thank you very much !!