Repository navigation
Closed
Description
Description:
Hi All.
After upgrading from version 3.18.1 to 4.0.0, synchronization stopped working for no apparent reason.
"Test connection" and "test LDAP Search" are working correctly.
Steps to reproduce:
- Go to LDAP settings
- Try to Sync Now
- Get error "Not authorized"
Expected behavior:
Actual behavior:
Server Setup Information:
Version of Rocket.Chat Server: 4.0.0
Operating System: Windows
Deployment Method: tar
Number of Running Instances: 4
DB Replicaset Oplog: +
NodeJS Version: v12.18.4
MongoDB Version: 4.4
Proxy: nginx
Firewalls involved: -
Client Setup Information
- Desktop App or Browser Version:
- Operating System:
Additional context
Relevant logs:
{"level":30,"time":"2021-10-
14T12:57:00.644Z","pid":650556,"hostname":"HOSTNAME","name":"LDAP","section":"Search","msg":"Closed"}
{"level":35,"time":"2021-10-14T12:57:07.538Z","pid":650556,"hostname":"HOSTNAME","name":"API","method":"POST","url":"/api/v1/ldap.syncNow","userId":"8D3ohoTXbvhE37LnX","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36","length":"2","host":"HOSTNAME","referer":"https://HOSTNAME/admin/LDAP","remoteIP":"10.24.64.12","err":{"type":"Error","message":"error-not-authorized","stack":"Error: error-not-authorized<br> at Object.post (ee/server/api/ldap.ts:18:10)<br> at app/api/server/api.js:406:82<br> at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12)<br> at Object._internalRouteActionHandler [as action] (app/api/server/api.js:406:39)<br> at Route.share.Route.Route._callEndpoint (packages/nimble_restivus/lib/route.coffee:150:32)<br> at packages/nimble_restivus/lib/route.coffee:59:33<br> at packages/simple_json-routes.js:98:9"},"status":400,"responseTime":3,"msg":"error-not-authorized"}
Thanks for any help!
Reacted by ankar84, Hyuncheol, it-esfl, zverev-iv, Alex, Ngô Thành Lê (Casper) and Diogo Figueiredo
Reacted by zverev-iv
Reacted by zverev-iv
Metadata
Metadata
Assignees
Labels
No labels
Activity
ankar84 commentedon Oct 15, 2021
Confirm that issue on 4.0.0 version!
reetp commentedon Oct 16, 2021
#23423
cydRabbit commentedon Oct 18, 2021
exactly same issue. I have admin role on my server, but when I click 'Sync Now' button then I could see 'Not Authorized' toast message.
zverev-iv commentedon Oct 21, 2021
Confirm that issue on 4.0.3
alexleosumy commentedon Oct 24, 2021
4.0.4 same problem
zverev-iv commentedon Oct 27, 2021
4.0.5 same problem :(
lent85 commentedon Nov 2, 2021
Same problem here, on 4.0.5. Some users on our system randomly unable to login also.
eevrenci commentedon Nov 3, 2021
at 4.1 still same problem.
ankar84 commentedon Nov 30, 2021
Looks like manual sync is back in 4.2.0!


With one addition of asking of users password to start (security purposes I guess)
So, that and related to manual sync issues can be closed now
reetp commentedon Nov 30, 2021
Yup. This PR refers - can't imagine why they never linked/closed all these bugs
#23761
Sneaked out, sneaked back. Hilarious really.
2FA password nonsense again. I am logged in as admin. If I really wanted 2FA then it should be applied as I login. But I don't.
If a hacker has got this far you are already in it up to your neck and yet another password prompt is not going to save you, no matter what the Security Department might think.
So because we know that a hacker really isn't worried about your LDAP sync we can easily surmise that the password is just there to try and prevent people easily using the API to trigger a background sync. That's it. Simples.
andys448 commentedon Dec 1, 2021
The same result - manual sync seems works fine.
smallfish01 commentedon Dec 15, 2021
Hello AndreySemenov1,
Could you please let me know how to manual sync LDAP users?
Thank you.
brlarini commentedon May 13, 2022
So, what's the status of this topic?
As of CE version 4.7.0 users will only be listed if they login for the first time.
Clicking on Sync now button apparently does nothing.
Is this still the expected behavior on CE?