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

Fixes #11280: decline user_create generic method #628

Closed

Conversation

Fdall
Copy link
Contributor

@Fdall Fdall commented Aug 21, 2017

VinceMacBuche and others added 30 commits June 15, 2017 01:33
@Fdall Fdall force-pushed the ust_11280/decline_user_create_generic_method branch from aa277f5 to 35f7c88 Compare August 21, 2017 16:30
@Fdall
Copy link
Contributor Author

Fdall commented Aug 21, 2017

Commit modified

@Fdall
Copy link
Contributor Author

Fdall commented Aug 22, 2017

Commit modified

@Fdall Fdall force-pushed the ust_11280/decline_user_create_generic_method branch from 35f7c88 to d234726 Compare August 22, 2017 12:36
@Fdall
Copy link
Contributor Author

Fdall commented Aug 22, 2017

User_locked is not yet done.

@Fdall
Copy link
Contributor Author

Fdall commented Aug 22, 2017

Commit modified

@Fdall Fdall force-pushed the ust_11280/decline_user_create_generic_method branch from d234726 to 29c246a Compare August 22, 2017 12:37
@Fdall
Copy link
Contributor Author

Fdall commented Aug 22, 2017

Commit modified

@Fdall Fdall force-pushed the ust_11280/decline_user_create_generic_method branch 2 times, most recently from d981ac8 to 050bcc2 Compare August 22, 2017 12:50
@amousset
Copy link
Member

Could you retarget to master?

#
#####################################################################################

# @name user fullname
Copy link
Member

Choose a reason for hiding this comment

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

User fullname

#####################################################################################

# @name user fullname
# @description Define the fullname of the user, format must be. User must already exists.
Copy link
Member

Choose a reason for hiding this comment

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

must be?

Copy link
Member

Choose a reason for hiding this comment

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

must already exist

# empty password accounts.
#
# @parameter login User login
# @parameter password User password
Copy link
Member

Choose a reason for hiding this comment

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

Specify the expected password format


# @name User password hash
# @description Ensure a user's password.
# @documentation User must exists, password must be pre-hashed. Does not handle
Copy link
Member

Choose a reason for hiding this comment

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

Here we need examples I think, with a full hash, and a user without password.


# @name User home
# @description Define the home of the user. User must already exists.
# @documentation This method does not create the user, nor the home directory.
Copy link
Member

Choose a reason for hiding this comment

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

It would be great to have an example here, it gives a quick overview of expected format of parameters.

"args" slist => { "${login}", "${shell}" };

classes:
"${login}_exists" expression => userexists("${login}");
Copy link
Member

Choose a reason for hiding this comment

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

where is it used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"args" is used as parameter for logs and the class is used in another one. I chose to always use an unique class to control action execution for more clarity.

#
#####################################################################################

# @name user uid
Copy link
Member

Choose a reason for hiding this comment

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

User

#####################################################################################

# @name user uid
# @description Define the uid of the user. User must already exists, uid must be non-allowed.
Copy link
Member

Choose a reason for hiding this comment

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

uid must be non-allowed?

Copy link
Contributor Author

@Fdall Fdall Aug 23, 2017

Choose a reason for hiding this comment

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

I did not know it could be helpful in some cases... On the user_create technique, user creation failed if uid was already in use, moreover it is not the default behavior of most UNIX systems/

"args" slist => { "${login}", "${uid}" };

classes:
"${login}_exists" expression => userexists("${login}");
Copy link
Member

Choose a reason for hiding this comment

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

"${login}_exists" could be simply replaced by "user_exists"

@Fdall Fdall force-pushed the ust_11280/decline_user_create_generic_method branch from 050bcc2 to 508b324 Compare August 23, 2017 11:49
@Fdall
Copy link
Contributor Author

Fdall commented Aug 23, 2017

PR replaced by #632

@Fdall Fdall closed this Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants