puppet-aem icon indicating copy to clipboard operation
puppet-aem copied to clipboard

Change admin password

Open ronaldvaneede opened this issue 8 years ago • 4 comments

It would be nice if it is possible to change the default admin password to something else.

ronaldvaneede avatar Apr 22 '16 15:04 ronaldvaneede

@rveede If you still need the ability to change admin/user password, check out https://github.com/shinesolutions/puppet-aem-resources .

It's designed to complement puppet-aem , it has a number of features for managing AEM resources, but for changing user password in particular, here's a sample snippet:

aem_user { 'Change admin default password':
  ensure       => password_changed,
  name         => 'admin',
  path         => '/home/users/a',
  old_password => 'admin',
  new_password => 'newadminpassword'
}

cliffano avatar Jun 01 '17 23:06 cliffano

@cliffano I am no longer working on the project I used this aem module for. It looks nice though. I am only wondering if that works with AEM 6.1(?) and up because afaik the user content paths are hashed since 6.0 or 6.1.

ronaldvaneede avatar Jun 02 '17 13:06 ronaldvaneede

@rveede Yes, it is heavily used for a number of AEM 6.2 projects and works with 6.1 too.

The hashed paths are called authorizable IDs and they were introduced in AEM 6.1 . It is handled on the underlying ruby_aem layer https://github.com/shinesolutions/ruby_aem .

Both user and group resources within ruby_aem provide find_authorizable_id method for mapping a user/group name to the corresponding authorizable ID, hence allowing the client code to not worry about the authorizable ID, and instead only use the user/group name, e.g. 'admin', 'alice', 'bob', etc.

cliffano avatar Jun 02 '17 14:06 cliffano

It is possible to provision the initial password since AEM 6.3 with better support towards 6.5. The aproach decribed in the docs could be used to achieve this (https://helpx.adobe.com/experience-manager/6-5/sites/administering/using/security-configure-admin-password.html).

bdhoine avatar Oct 16 '19 16:10 bdhoine