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

Add tools to create test users with unexpired passwords #4

Merged
merged 1 commit into from
Nov 12, 2021

Conversation

rcritten
Copy link
Contributor

create-test-data.py comes from the freeipa-tools repo. It is
designed to create complex test data including nested groups,
hbac and sudo rules. It provides way more than we need here but
we may be able to build on it.

As such, this overrides some of its methods to generate a
number of users per host with a given username format.

Whether we can mangle this into creating the other entry types in
the future is TBD but I think it is possible.

The password is 'password'.

Users are created in the form: user#client#.

Signed-off-by: Rob Crittenden rcritten@redhat.com

@rcritten rcritten force-pushed the testusers branch 2 times, most recently from 6c4cb47 to 0d2628d Compare November 5, 2021 13:36
README.md Outdated
The combination of two scripts will create the users needed for testing
with identical, unexpired passwords.

In order to set passwords using a pre-hashed password IPA neesd to
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: "neesd"

@antoniotorresm
Copy link
Collaborator

Apart from that, everything LGTM.

create-test-data.py comes from the freeipa-tools repo. It is
designed to create complex test data including nested groups,
hbac and sudo rules. It provides way more than we need here but
we may be able to build on it.

As such, this overrides some of its methods to generate a
number of users per host with a given username format.

Whether we can mangle this into creating the other entry types in
the future is TBD but I think it is possible.

The password is 'password'.

Users are created in the form: user#client#.<domain>

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
@rcritten
Copy link
Contributor Author

Thanks for the review, comments addressed.

@antoniotorresm antoniotorresm merged commit 5785d0c into freeipa:master Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants