Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Change ADMIN password in AEM6.1

Jai1122
Level 5
Level 5

Hi All,

  I am trying to change the default admin password. I referred to the kb article but that refers to old versions of cq. 

As per adobe docs  

1)The AEM admin account needs to be changed

2)The admin password for the OSGi Web console needs to be changed

For step1 when i try to click the change password link the corresponding dialog is not opening up.

Can someone please help me on this?

1 Accepted Solution
kautuk_sahni
Correct answer by
Community Manager
Community Manager

Option 1:-

Go to "http://localhost:4502/projects.html"

Tools-> operations->Security->Users find "admin" User -> click it-> Under Account Settings there is option for Change Password.

 

Option 2:- CRX Explorer

Go to "http://localhost:4502/crx/explorer/index.jsp"

User Administration-> Find Admin user-> Change Password

 

Option 3:- ConfigMGr

Go to :- http://localhost:4502/system/console/configMgr

Configure "Apache Felix OSGI Management Console" -> Change password -> Save

 

Option 4:- Curl

Link:- http://labs.6dglobal.com/blog/2015-06-03/changing-user-passwords-aem-61-curl/

First, we'll call the Query Builder via cURL to get the path to the user:

curl -s -u admin:admin -X GET "http://localhost:4502/bin/querybuilder.json?path=/home/users&1_property=rep:authorizableId&1_propert...{USER_NAME}&p.limit=-1" > user.json
Next, we read the path from the JSON result:

USER_PATH=`ruby -rjson -e 'j = JSON.parse(File.read("user.json")); puts j["hits"][0]["path"]'`
Finally, the USER_PATH variable can be used to set the user's password:

curl -s -u admin:admin -Fplain={NEW_PASSWORD} -Fverify={NEW_PASSWORD}  -Fold={OLD_PASSWORD} -FPath=$USER_PATH http://localhost:4502/crx/explorer/ui/setpassword.jsp
Putting it all together, if I wanted to change the admin user's password I would call:

curl -s -u admin:admin -X GET "http://localhost:4502/bin/querybuilder.json?path=/home/users&1_property=rep:authorizableId&1_propert..." > user.json
USER_PATH=`ruby -rjson -e 'j = JSON.parse(File.read("user.json")); puts j["hits"][0]["path"]'`
curl -s -u admin:admin -Fplain=admin1 -Fverify=admin1  -Fold=admin -FPath=$USER_PATH http://localhost:4502/crx/explorer/ui/setpassword.jsp

 

I hope this would be helpful to you.

Thanks and Regards

Kautuk Sahni

View solution in original post

5 Replies
mkumar
Level 3
Level 3

Hi Jaypal,

I am able to change admin password in AEM 6.1.

Can u check if u have any errors in console and also monitor the error logs in crx/de  upon clicking the change password link.

lokeshb93001514
Level 1
Level 1

Changing the password of Admin user. Refer [1]

[1] https://docs.adobe.com/docs/en/aem/6-1/administer/security/granite-user-group-admin.html#Changing the Password for an Existing User

For changing the Felix console pwd,

1. Goto /system/console/configMgr

2. Search for  'Apache Felix OSGi Management Console' and Click on it.

3. Change the password attribute and save.

 

Hope this helps !

Tuhin_Ghosh
Level 7
Level 7

Hi Jai,

 

The replies posted for this question should solve your problem. Please try the same and mark this as solved, otherwise let the community know what problem you are facing after while trying.

Try to capture the error log,

Thanks

Tuhin

kautuk_sahni
Correct answer by
Community Manager
Community Manager

Option 1:-

Go to "http://localhost:4502/projects.html"

Tools-> operations->Security->Users find "admin" User -> click it-> Under Account Settings there is option for Change Password.

 

Option 2:- CRX Explorer

Go to "http://localhost:4502/crx/explorer/index.jsp"

User Administration-> Find Admin user-> Change Password

 

Option 3:- ConfigMGr

Go to :- http://localhost:4502/system/console/configMgr

Configure "Apache Felix OSGI Management Console" -> Change password -> Save

 

Option 4:- Curl

Link:- http://labs.6dglobal.com/blog/2015-06-03/changing-user-passwords-aem-61-curl/

First, we'll call the Query Builder via cURL to get the path to the user:

curl -s -u admin:admin -X GET "http://localhost:4502/bin/querybuilder.json?path=/home/users&1_property=rep:authorizableId&1_propert...{USER_NAME}&p.limit=-1" > user.json
Next, we read the path from the JSON result:

USER_PATH=`ruby -rjson -e 'j = JSON.parse(File.read("user.json")); puts j["hits"][0]["path"]'`
Finally, the USER_PATH variable can be used to set the user's password:

curl -s -u admin:admin -Fplain={NEW_PASSWORD} -Fverify={NEW_PASSWORD}  -Fold={OLD_PASSWORD} -FPath=$USER_PATH http://localhost:4502/crx/explorer/ui/setpassword.jsp
Putting it all together, if I wanted to change the admin user's password I would call:

curl -s -u admin:admin -X GET "http://localhost:4502/bin/querybuilder.json?path=/home/users&1_property=rep:authorizableId&1_propert..." > user.json
USER_PATH=`ruby -rjson -e 'j = JSON.parse(File.read("user.json")); puts j["hits"][0]["path"]'`
curl -s -u admin:admin -Fplain=admin1 -Fverify=admin1  -Fold=admin -FPath=$USER_PATH http://localhost:4502/crx/explorer/ui/setpassword.jsp

 

I hope this would be helpful to you.

Thanks and Regards

Kautuk Sahni

View solution in original post

dan_klco
Level 5
Level 5

FYI - since labs.6dglobal.com is down, here's a link to the post about changing password via curl on my personal blog: https://www.danklco.com/posts/2015/06/03/changing-user-passwords-aem-61-curl/