Skip to content
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

As a user I can easily set LDAP #518

Closed
fao89 opened this issue Aug 23, 2022 · 4 comments
Closed

As a user I can easily set LDAP #518

fao89 opened this issue Aug 23, 2022 · 4 comments

Comments

@fao89
Copy link
Member

fao89 commented Aug 23, 2022

AUTHENTICATION_BACKEND_PRESET=ldap 
AUTH_LDAP_SERVER_URI="ldap://ldap:10389"
AUTH_LDAP_BIND_DN="cn=admin,dc=planetexpress,dc=com"
AUTH_LDAP_BIND_PASSWORD="GoodNewsEveryone"
AUTH_LDAP_USER_SEARCH_BASE_DN="ou=people,dc=planetexpress,dc=com"
AUTH_LDAP_USER_SEARCH_SCOPE="SUBTREE"
AUTH_LDAP_USER_SEARCH_FILTER="(uid=%(user)s)"
AUTH_LDAP_GROUP_SEARCH_BASE_DN="ou=people,dc=planetexpress,dc=com"
AUTH_LDAP_GROUP_SEARCH_SCOPE="SUBTREE"
AUTH_LDAP_GROUP_SEARCH_FILTER = "(objectClass=Group)"
AUTH_LDAP_GROUP_TYPE_CLASS="django_auth_ldap.config:GroupOfNamesType"

https://issues.redhat.com/browse/AAP-5267

@stale
Copy link

stale bot commented Nov 21, 2022

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

@stale stale bot added the stale label Nov 21, 2022
@dkliban
Copy link
Member

dkliban commented Jan 10, 2023

This would require adding django-auth-ldap to the container images. Here are some notes on integrating with this package. https://hackmd.io/ED9UpscNSRW86Le3xNzVeg

@stale
Copy link

stale bot commented Jan 10, 2023

This issue is no longer marked for closure.

@stale stale bot removed the stale label Jan 10, 2023
git-hyagi added a commit to git-hyagi/pulp-operator that referenced this issue Sep 11, 2023
This PR depends on pulp/pulp-oci-images#531.
There is also a possible issue in the integration between Pulp and
LDAPS/LDAP+TLS using `django-auth-ldap`.
While we don't find a solution, I could workaround the exceptions using:
```
FROM quay.io/pulp/pulp-minimal:3.32
RUN pip3 install django-auth-ldap==4.5.0
RUN sed -i '126i \            if options != None:' /usr/local/lib/python3.8/site-packages/django_auth_ldap/backend.py
RUN sed -i '127i \                options = {int(k):v for k,v in options.items()}' /usr/local/lib/python3.8/site-packages/django_auth_ldap/backend.py
RUN sed -i '859i \                optInt = int(opt)' /usr/local/lib/python3.8/site-packages/django_auth_ldap/backend.py
RUN sed -i '860s/opt, value/optInt, value/' /usr/local/lib/python3.8/site-packages/django_auth_ldap/backend.py
```

ref: pulp#518
closes: pulp#1042
@git-hyagi
Copy link
Collaborator

#1084

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants