Uh oh!
There was an error while loading. Please reload this page.
fix user creation using LDAP Plugin - #12452
Conversation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
53180dc to
3d332c3Compareblizzz
commented
Feb 14, 2019
@viniciuscb sorry, I missed this PR. Ideally, next time ping the @nextcloud/ldap group, to ensure it does not get buried. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
viniciuscb
commented
Feb 19, 2019
Hi @blizzz I will take a look and test it in master. |
ChristophWurst
commented
Mar 1, 2019
Any updates, @viniciuscb? The feature freeze for Nextcloud 16 is today, hence I'm afraid we have to move this to 17. |
blizzz
commented
Mar 1, 2019
@ChristophWurst it's a bug fix, therefore the freeze does not apply here |
3d332c3 to
9a4b5c9CompareSigned-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
9a4b5c9 to
62ab9e0Compareviniciuscb
commented
Mar 1, 2019
@blizzz@ChristophWurst took a review according to @blizzz recommendations, tested in local (creating a ldap user / group), have run the automated tests, all worked. |
This commit fix an error happening when the subadmin tries to create an user, adding him/her to the group s/he is subadmin of, using a LDAP User/Group plugin. This just forces the cache to be reset after an user is added to a group. Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
blizzz
commented
Mar 5, 2019
I plan to review tomorrow |
blizzz
left a comment
There was a problem hiding this comment.
Just one remark, good otherwise!
Uh oh!
There was an error while loading. Please reload this page.
LDAP plugins must change the createUser method to return the DN, as we need this to update the cache. Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
MorrisJobke
commented
Mar 14, 2019
/backport to stable15 |
MorrisJobke
commented
Mar 14, 2019
/backport to stable14 |
MorrisJobke
commented
Mar 14, 2019
Status of 17004: failureENABLE_OPENLDAP=true, ENABLE_REDIS=true, TESTS=integration-ldap-openldap-features
Show full logENABLE_OPENLDAP=true, ENABLE_REDIS=true, TESTS=integration-ldap-openldap-numerical-id-features
Show full log |
MorrisJobke
commented
Mar 14, 2019
@viniciuscb@blizzz Looks like there is something wrong with the tests :/ |
blizzz
commented
Mar 14, 2019
rebase might solve it |
MorrisJobke
commented
Mar 21, 2019
Rebased on master: #14778 |
When upgrading our installation to nextcloud14 we could not anymore create users in LDAP.
These are changes in user_ldap app that needed to be made to the createUser in the plugin work again.
We needed to change the createUser function in our plugin also, now it returns the user DN in LDAP, instead of returning a boolean. Other developers who created a plugin for LDAP will need to change this also.
Their code will break anyway when they try to upgrade to nc14, so we are now throwing an exception when the custom createUser function returns true.
Here is our plugin code:
https://gitlab.com/eita/rios/user_ldap_extended/tree/nc14