Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Setting user password in repo init config

Avatar

Level 4

Hi,

 

Could you please let me know how to set user password with some special characters in repo init config json?

 

I am able to set a plain text password like "test123", how ever not able to set something with "@|$!". 

 

Also, could you please let me know if its possible to mention encoded password in the config?

 

Example below.

 

create user test with password {password}

 

Best regards,

Vijaya Kumar A

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @vjleo94 

I think, it supports only plain text password : https://issues.apache.org/jira/browse/SLING-6219 



Arun Patidar

View solution in original post

6 Replies

Avatar

Community Advisor

@vjleo94 i haven't tested it but can you try something like this 

create user test with password {UTF-8} {password}

If there is any other encoding format that you want to add , you can replace the above with that.

Avatar

Community Advisor

Hi @vjleo94 
Please check https://sling.apache.org/documentation/bundles/repository-initialization.html 

 

create user userC with password some_password

# Although the following syntax is valid for encrpyted passwords,
# the o.a.s.jcr.repoinit module only supports plain text
# ones, see SLING-6219
create user userD with password {SHA-256}dc460da4ad72c
create user userE with password {someEncoding} afdgwdsdf

create user one_with-more-chars.ok:/123456 with password {encoding_with.ok-:/12345} pw-with.ok-:/13456

create user userF with path /thePathF
create user userG with path /thePathG with password {theEncoding} userGpwd
create user userH with path thePathH
create user userJ with path thePathJ with password {theEncoding} userJpwd


Arun Patidar

Avatar

Level 4

Hi @arunpatidar ,

Followed the same article and I did try encoding with the mentioned syntax. But, it did not work for me.

 

Here as we can see the below is mentioned, So not sure if this is really the right syntax. 

"# Although the following syntax is valid for encrpyted passwords,
# the o.a.s.jcr.repoinit module only supports plain text"

 

 

 

Avatar

Correct answer by
Community Advisor

Hi @vjleo94 

I think, it supports only plain text password : https://issues.apache.org/jira/browse/SLING-6219 



Arun Patidar