-
Notifications
You must be signed in to change notification settings - Fork 50
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
Import LDAP group types #1154
Comments
Thank you for opening this issue.
I'm working on this issue right now, but it will take some time to release a fix because I would like to also work on #1124 and release them together. |
Thank you for the prompt response and for actively working on this issue along with #1124. I understand that these improvements take time, and I truly appreciate your efforts. Is there any estimated timeframe for the fix ? Your guidance on when we might expect a release would be helpful for planning purposes. If there's anything I can do to help expedite the process—whether it's testing, providing more details—please let me know. Thanks again for your time and the solution you provided in Element :) |
Hum ... since it seems that it is somehow holding you, I'll open a PR until the end of the day with the possible fix first and then work on the CI update in another PR.
If you could test the PR (whenever I open it) it would be awesome! Thank you for letting us know about this issue! |
Nice! I just manually made my own changes to the settings.py file to have all the ldap group_types available, this PR is a welcome change. |
Is your feature request related to a problem? Please describe.
I am trying to configure groups for LDAP configuration done through k8s secret resource. The only group supported at the moment is the PosixGroupType. This really affects the permission and role assignment for LDAP. It can be more efficiently and effectively iterated through groups. If you assign 100 member a specific permission one doesn't have to go through all 100 members one by one but rather target the group they are part of in the LDAP tree.
Describe the solution you'd like
Import to settings.py all the LDAP group types:
https://django-auth-ldap.readthedocs.io/en/latest/reference.html#django_auth_ldap.config.MemberDNGroupType
https://django-auth-ldap.readthedocs.io/en/latest/reference.html#django_auth_ldap.config.NestedMemberDNGroupType
and subgroups:
https://django-auth-ldap.readthedocs.io/en/latest/reference.html#django_auth_ldap.config.GroupOfNamesType
https://django-auth-ldap.readthedocs.io/en/latest/reference.html#django_auth_ldap.config.NestedGroupOfNamesType
https://django-auth-ldap.readthedocs.io/en/latest/reference.html#django_auth_ldap.config.GroupOfUniqueNamesType
https://django-auth-ldap.readthedocs.io/en/latest/reference.html#django_auth_ldap.config.NestedGroupOfUniqueNamesType
https://django-auth-ldap.readthedocs.io/en/latest/reference.html#django_auth_ldap.config.ActiveDirectoryGroupType
https://django-auth-ldap.readthedocs.io/en/latest/reference.html#django_auth_ldap.config.NestedActiveDirectoryGroupType
https://django-auth-ldap.readthedocs.io/en/latest/reference.html#django_auth_ldap.config.OrganizationalRoleGroupType
https://django-auth-ldap.readthedocs.io/en/latest/reference.html#django_auth_ldap.config.NestedOrganizationalRoleGroupType
File "/usr/local/lib/python3.8/site-packages/dynaconf/loaders/py_loader.py", line 146, in import_from_filename exec(compile(config_file.read(), filename, "exec"), mod.__dict__) File "/etc/pulp/settings.py", line 56, in <module> AUTH_LDAP_GROUP_TYPE = ActiveDirectoryGroupType(name_attr='cn') NameError: name 'ActiveDirectoryGroupType' is not defined
The text was updated successfully, but these errors were encountered: