Setting password policy in OSGI ActionProvider is not working | Community
Skip to main content
New Participant
December 29, 2022
Solved

Setting password policy in OSGI ActionProvider is not working

  • December 29, 2022
  • 1 reply
  • 835 views

Dear fellows,

We're using AEM 6.5.5

I was trying to set password policy as community members suggested: using Apache Jackrabbit Oak Authorizable ActionProvider

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-forms/aem-user-password-policy/m-p/366035 

http://www.sgaemsolutions.com/2019/10/how-to-set-password-policy-for-aem-users.html 

This is my config, basically it's the same as the tutorial example: 

However, after I saved the config and restarted AEM, I can still change user's password on touch UI without the constraint:

The user is not in administrator group if that matters, would like to know if I miss anything here?

 

Thanks for your help!

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ranjanvibhu

Hi @yusheng 

 

I tried to reproduce this issue and I am not able to do that. If I am using following regular expression then I am not able to set password as "admin".

 

^(?=.*[A-Z].*[A-Z])(?=.*[!@#$&*])(?=.*[0-9].*[0-9])(?=.*[a-z].*[a-z].*[a-z]).{8}$

 

Successful: USeit21@

Failed: admin

 

Error reviewed while setting password as "admin"

 

ERROR Password violates password constraint (^(?=.*[A-Z].*[A-Z])(?=.*[!@#$&*])(?=.*[0-9].*[0-9])(?=.*[a-z].*[a-z].*[a-z]).{8}$).

1 reply

ranjanvibhuAccepted solution
New Participant
December 29, 2022

Hi @yusheng 

 

I tried to reproduce this issue and I am not able to do that. If I am using following regular expression then I am not able to set password as "admin".

 

^(?=.*[A-Z].*[A-Z])(?=.*[!@#$&*])(?=.*[0-9].*[0-9])(?=.*[a-z].*[a-z].*[a-z]).{8}$

 

Successful: USeit21@

Failed: admin

 

Error reviewed while setting password as "admin"

 

ERROR Password violates password constraint (^(?=.*[A-Z].*[A-Z])(?=.*[!@#$&*])(?=.*[0-9].*[0-9])(?=.*[a-z].*[a-z].*[a-z]).{8}$).

YuShengAuthor
New Participant
December 30, 2022

Yes it works! shall work on modifying the regex seems some forms of it doesn't work here. Thank you very much!