Skip to content

Commit

Permalink
Login using LDAP removed
Browse files Browse the repository at this point in the history
There's still one reference to LDAP login in
`templates/registration/login.html`.
  • Loading branch information
geordi authored and Kobzol committed Sep 4, 2023
1 parent 3748216 commit 180629d
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 73 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.9
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

RUN apt-get update && apt-get install -y libldap2-dev libsasl2-dev libgraphviz-dev graphviz pandoc
RUN apt-get update && apt-get install -y libsasl2-dev libgraphviz-dev graphviz pandoc

COPY requirements.txt /kelvin/requirements.txt
RUN pip install -r /kelvin/requirements.txt
Expand Down
1 change: 0 additions & 1 deletion common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import re
from functools import lru_cache

LDAP_CONNECTION = None

@lru_cache()
def is_teacher(user):
Expand Down
1 change: 0 additions & 1 deletion kelvin/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@
'django.contrib.auth.backends.ModelBackend',
'api.backends.TokenBackend',
'django_cas_ng.backends.CASBackend',
'web.vsbldapbackend.MyLDAPBackend'
]

DATA_UPLOAD_MAX_MEMORY_SIZE = 100 * 1024 * 1024
Expand Down
2 changes: 0 additions & 2 deletions kelvin/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@
from django_cas_ng import views as auth_views
else:
from django.contrib.auth import views as auth_views
from django.contrib.auth.views import LoginView as LDAPLoginView

urlpatterns = [
path('', include('web.urls')),
path('admin/', admin.site.urls),
path('accounts/logout/', auth_views.LogoutView.as_view(), name='cas_ng_logout'),
path('accounts/login/', auth_views.LoginView.as_view(), name='cas_ng_login'),
path('accounts/login/ldap', LDAPLoginView.as_view()),
path('api/', include('api.urls')),
path('django-rq/', include('django_rq.urls')),
path('survey/', include('survey.urls')),
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pandas==1.5.3
psycopg2
pygraphviz==1.7
pyserde==0.12.2
python-ldap==3.4.0
python-magic==0.4.27
pyyaml==5.4
readwise-django-rq-scheduler==1.2.1
Expand Down
67 changes: 0 additions & 67 deletions web/vsbldapbackend.py

This file was deleted.

0 comments on commit 180629d

Please sign in to comment.