Setting password policy in OSGI ActionProvider is not working | Adobe Higher Education
Skip to main content
Level 3
December 29, 2022
Resuelto

Setting password policy in OSGI ActionProvider is not working

  • December 29, 2022
  • 1 respuesta
  • 838 visualizaciones

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!

 

Este tema ha sido cerrado para respuestas.
Mejor respuesta de 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 respuesta

ranjanvibhuRespuesta
Level 2
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}$).

YuShengAutor
Level 3
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!