-
Notifications
You must be signed in to change notification settings - Fork 30
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
Matomo ldap sync users upper limit is 999 #306
Comments
@lizzyliao what error are you getting ? |
Hi AltamashShaikh : |
@lizzyliao What error do you get ? |
@AltamashShaikh |
@lizzyliao I do not see any hard limits in code, may be you can try running the command using |
@AltamashShaikh But we can see 'K21050416" already in matomo web ui. The program stopped and some other users can not sync into matomo. Thank you very much |
we use debug flag log as following: Synchronized 1000 users! Error: error or warning logs detected, exit 1 |
The error "Could not instantiate mail function" is a error from PHPMailer, can you check if you have setup the SMTP server correctly ? |
@AltamashShaikh I type "./console loginldap:synchronize-users" command again.
/var/log/cron
Thank you very much~ |
@lizzyliao Thanks for the log, I will check more on this and for now no need to update/change anything. |
@lizzyliao How many users do you have for sync ? |
@AltamashShaikh Thank you very much. |
@lizzyliao When you re run it does it sync all the 1100 or is it stopping at 1000 only ? |
@AltamashShaikh Thank you very much. |
@lizzyliao Ill try to remove my SMTP settings and try to sync a new user and will see if it creates any issue |
@lizzyliao @AltamashShaikh might that be an issue of the ldap server? I actually haven't done much with ldap the last years, but if I remember correctly there was some sort of "security" policy to limit the number of results. Was is called |
@sgiehl Thanks I was not aware of this limit and thought it was exiting due to mailer settings. |
@lizzyliao Is there anything you need help with it ? Or should we close this issue ? |
@sgiehl @AltamashShaikh |
@AltamashShaikh
(3) I think If we need sync more than 1000 users, we maybe need use while loop ,
|
Hey @lizzyliao We need to replace this line https://github.com/matomo-org/plugin-LoginLdap/blob/4.x-dev/Ldap/Client.php#L382
|
@lizzyliao If you are gonna try above fix, you need to
|
@AltamashShaikh
I think need use this parameter "LDAP_CONTROL_PAGEDRESULTS" |
@AltamashShaikh |
Okay, I would check the above code you shared if we can add that and won't create any regressions, but this will take time as I need to prioritize it |
OK, Thank you very much. :) |
@lizzyliao just 1 Q did you update the limit from 1000 to your desired number in your LDAP server? |
@AltamashShaikh |
@lizzyliao I have added this task for prioritisation, so that our product team can put it into existing workload |
@AltamashShaikh |
Hi @mattab, @sgiehl, @AltamashShaikh |
@heurteph-ei We currently haven't scheduled this one as we have other priority items scheduled, will update here once we have any update. |
Hi @mattab, @sgiehl, @AltamashShaikh |
@heurteph-ei updated 👍 |
Hi All:
matomo ldap sync users upper limit is 999,
I can not sync any ldap users into matomo,
The text was updated successfully, but these errors were encountered: