question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with AUTH_LDAP_USER_FLAGS_BY_GROUP on Zulip >= 4.0

See original GitHub issue

Updating 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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
debalancecommented, Jun 3, 2021

@sahil839 You’re right, now it’s working!

0reactions
sahil839commented, Jun 3, 2021

I am not sure but I think the lines should be added after the code mentioned below to fix the NameError -

@property
    def is_realm_owner(self) -> bool:
        return self.role == UserProfile.ROLE_REALM_OWNER

@debalance can you try this once?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found