Problem with AUTH_LDAP_USER_FLAGS_BY_GROUP on Zulip >= 4.0
See original GitHub issueUpdating Zulip from 3.4 zu 4.2 broke my ldap sync, upon closer investigation I found the cause to be the extended set of roles: because I was using
AUTH_LDAP_USER_FLAGS_BY_GROUP = {
"is_realm_admin": "cn=someGroup,ou=filterGroups,dc=mydomain,dc=com",
}
I got the message
Exception: Ldap sync would have deactivated all owners of realm . This is most likely due to a misconfiguration of LDAP settings. Rolling back...
Use the --force option if the mass deactivation is intended.
Commenting out the above config block was not enough, I had to manually promote at least one user to OWNER for the sync to work again because there wasn’t any owner.
Then I tried adjusting my above config snippet from “is_realm_admin” to “is_realm_owner” - that did not work and completely broke the ldap sync right at the start (AttributeError: can't set attribute).
How can I get back the feature of having an LDAP group whose members are automatically assigned the highest possible role? The relevant docs are rather spartanic.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Zulip 4.0: Threaded open-source team chat
We're excited to announce the release of Zulip Server 4.0, containing hundreds of new features and bug fixes! Zulip is an open-source team ......
Read more >Issues · zulip/zulip-desktop - GitHub
Zulip Desktop client for Mac, Windows and Linux. Contribute to zulip/zulip-desktop development by creating an account on GitHub.
Read more >Zulip 4.0: Threaded open source team chat | Hacker News
The problem is Slack, not your coworker. Slack's threads are conversation killers. Your coworker doesn't want to get siloed into a discussion in ......
Read more >Release lifecycle — Zulip 7.0-dev+git documentation
Starting with Zulip 4.0, the Zulip web app displays the current server version ... a security issue or critical bug just after publishing...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@sahil839 You’re right, now it’s working!
I am not sure but I think the lines should be added after the code mentioned below to fix the
NameError-@debalance can you try this once?