-
Notifications
You must be signed in to change notification settings - Fork 62
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
Improve modify_user function #347
Conversation
Codecov Report
@@ Coverage Diff @@
## master #347 +/- ##
==========================================
+ Coverage 97.49% 97.51% +0.02%
==========================================
Files 20 20
Lines 4264 4311 +47
==========================================
+ Hits 4157 4204 +47
Misses 107 107
Continue to review full report at Codecov.
|
As mentioned before: I think this should be in an earlier version of gmp ...?! |
be11b79
to
4879a8b
Compare
But this change completely breaks the API. For example it is not possible to identifying a user by name anymore. Its not only adding stuff. I can modify the 208 function to include the comment, user_auth and group_ids params, but the name change breaks the API. |
Modify user now only takes an ID for identifying the user which is to be modified. The name parameter is now the new name and not an identifier anymore. The comment, auth_source and group_ids parameters got added. Now its possible to change those fields too. auth_source has to be used explicitly if not the default Source allowed for authentication for the user is to be used.
Add parameters comment, auth_source and group_ids. Make documentation about hosts_allow and ifaces_allow clearer.
4879a8b
to
91af092
Compare
e7640c2
to
f930e4d
Compare
f930e4d
to
7ff2176
Compare
you may add a test for the new Enum |
What:
The
comment
,auth_source
andgroup_ids
parameters got added for gmpv7. Now its possible to change those fields too.auth_source
has to be used explicitly if not the default source allowed for authentication for the user is to be used.modify_user
now only takes an ID for identifying the user which is to be modified for gmpv214.The
name
parameter replaces the oldnew_name
parameter for gmpv214 and is not used for identifying a user anymore.Why:
To be able to set the appropriate fields.
How:
Added tests.
Checklist: