-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
ldap: Add support for syncing custom profile fields from LDAP #10976
Comments
Hello @zulip/server-authentication, @zulip/server-settings members, this issue was labeled with the "area: authentication", "area: settings (user)" labels, so you may want to check it out! |
@zulipbot claim |
Hello @HarshitOnGitHub, you claimed this issue to work on it, but this issue and any referenced pull requests haven't been updated for 10 days. Are you still working on this issue? If so, please update this issue by leaving a comment on this issue to let me know that you're still working on it. Otherwise, I'll automatically remove you from this issue in 4 days. If you've decided to work on something else, simply comment Thank you for your valuable contributions to Zulip! |
@zulipbot Was busy with some college stuff, will complete this by tomorrow. :) |
This shouldn't be too hard to develop and test; basically, we'd want to:
generate_dev_ldap_dir
function's mock LDAP directories to include values for some custom profile data fields (e.g. birthday would be a good choice).AUTH_LDAP_USER_ATTR_MAP
containing CustomProfileFields, maybe spelled ascustom_profile_field__birthday: "birthday",
. To make this work, we'd need to add a_populate_user
method in ZulipLDAPBackendBase inzproject/backends.py
(overriding the default fromdjango-auth-ldap
(/srv/zulip-py3-venv/lib/python3.5/site-packages/django_auth_ldap/backend.py
), though the it should callsuper()
to get the built-in code to run). That should ensure that bothmanage.py sync_ldap_data
and user creation sync the fields over properly.docs/production/authentication-methods.md
.Once this is done, two follow-ups are relevant:
The text was updated successfully, but these errors were encountered: