-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aem_user { ensure => password_changed } should first check if the password was already the desired password #20
Comments
I do see in the code that there are no checks to see if the user is already able to login with the new password. WDYT, @cliffano ? Is this a bug, or a feature ? |
@henrykuijpers Sorry for the late reply, been working on lots of things lately. The ensurable So the difference with your use case scenario is that you want to ensure that a user's password is set to a certain value, which is different to Are you using this scenario in a Puppet master/agent with mutable environment setup? |
@henrykuijpers Have you encountered any endpoint that allows admin user to set any user's password? |
No, unfortunately I didn't come across any such endpoint. Maybe it is possible to use impersonation here? |
Sorry to update on an old issue, but I'm running into this right now. I did find these two endpoints using the AEM UI
These are called by using the set password button in either the classic or touch UI user manager. Where new-password is the new password and user-path is the path to the user's node. Would one of these endpoints be useful? |
I'm trying to create some configuration to be able to change passwords of certain system users. I.e. admin.
When I put the following script:
aem_user { "Change admin password": aem_username => 'admin', aem_password => 'adminx', ensure => password_changed, name => 'admin', path => '/home/users', old_password => 'adminx', new_password => 'admin' }
I can perfectly fine change the password of admin from 'admin' to 'adminx'.
However, when I run this script again, it will throw an error (401, unable to authenticate).
It seems to me that if the password is already the desired password ('adminx'), the state is already correct and therefore it shouldn't throw this error, but instead be OK and continue.
Or should I be calling another method to get my desired functionality?
Or my question/issue rephrased: How would you normally use this functionality in your scripts, to make sure that you're able to change passwords on your servers, without doing it manually?
The text was updated successfully, but these errors were encountered: