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

Include django-auth-ldap in the container image #531

Closed
Exhei opened this issue Aug 9, 2023 · 0 comments · Fixed by #569
Closed

Include django-auth-ldap in the container image #531

Exhei opened this issue Aug 9, 2023 · 0 comments · Fixed by #569
Assignees
Labels

Comments

@Exhei
Copy link

Exhei commented Aug 9, 2023

Is your feature request related to a problem? Please describe.
Pulp3 LDAP integration

Describe the solution you'd like
Include django-auth-ldap in the container image

@mikedep333 mikedep333 self-assigned this Aug 15, 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 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
```

closes: pulp#1042
git-hyagi added a commit to pulp/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
```

closes: #1042
mikedep333 added a commit to mikedep333/pulp-oci-images that referenced this issue Dec 19, 2023
Needed for Pulp 3 LDAP integration

Fixes: pulp#531
mikedep333 added a commit to mikedep333/pulp-oci-images that referenced this issue Dec 19, 2023
Needed for Pulp 3 LDAP integration

Fixes: pulp#531
mikedep333 added a commit to mikedep333/pulp-oci-images that referenced this issue Dec 19, 2023
Needed for Pulp 3 LDAP integration

Fixes: pulp#531
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants