Skip to content
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

For flag DumpService.includeUsers export contains only system users #214

Open
tlocwin opened this issue Jul 26, 2017 · 5 comments
Open

For flag DumpService.includeUsers export contains only system users #214

tlocwin opened this issue Jul 26, 2017 · 5 comments

Comments

@tlocwin
Copy link

tlocwin commented Jul 26, 2017

Hello @ghenzler ,

While testing this tool for my migration found bug in AC Tool that once i set flag for

DumpService.includeUsers

in

/system/console/configMgr/biz.netcentric.cq.tools.actool.dumpservice.impl.DumpServiceImpl

export/dump contains only system users, but i'm expecting that dump will contains all users and passwords.

Thanks
Tomek

@ghenzler
Copy link
Member

Hi Tomek,

in theory we could easily add a property that would also dump regular users. The problem is that this would include passwords in plain text if implemented naively. Usually the PWs are in LDAP or even SSO is used for our projects, but if AEM is the main source for users, the users will have "production passwords" configured. On the other hand, if AEM is not the main source for users, there is not much point for this feature since non-existing users are created on the fly anway for the LDAP/SAML case.

How would you deal with Passwords here?

@tlocwin
Copy link
Author

tlocwin commented Nov 24, 2017

Hi @ghenzler,

Basically idea behind of using this feature is for cloning or migrating instances but honestly i dont want to use plain password at all because for each case expecting that YAML file will contains user password hash. In this case any export & import round trip would ONLY work if the etc/key (crypto key) is consistent between instances source and target which resulting that target instance will be able to decrypt migrated/imported password.

Regards,
Tomek

@mtstv
Copy link
Contributor

mtstv commented Feb 9, 2018

Hi Georg,

it could be configurable, with plain passwords and password hash.
At first, a Dump with just plain password is enough for us.
Also all other props (ex. isSystemUser) must be also included.

Some biggest clients still don't use LDAP and create users directly in AEM. We need Dump with Users for migration, inclusive all user props and membership.

The result YAML will be updated after that.

Best regards,
Marat

@ghenzler
Copy link
Member

ghenzler commented Feb 9, 2018

I personally would only implement the password hash - master key management needs to be in place anyway (e.g. for cloud config passwords). Since #251 we have the dependency to cryptoService, so it should be straight forward to implement.

@daviwall
Copy link

Hi Georg,
We have a similar case with our big service. There is no LDAP integration, and it is a bit chaotic when something goes wrong with the instance and we need to restore from another source, losing all credentials from the current instance.
To be able to export users with password hash or not is a big necessity in our project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants