add E-Mail support via celery task, untested, closes #17
This commit is contained in:
@ -39,7 +39,7 @@ class LDAPSourceForm(forms.ModelForm):
|
||||
# (MODE_CREATE_USERS, _('Create Users'))
|
||||
# )
|
||||
|
||||
# namespace = 'supervisr.mod.auth.ldap'
|
||||
# namespace = 'passbook.ldap'
|
||||
# settings = ['enabled', 'mode']
|
||||
|
||||
# widgets = {
|
||||
@ -51,7 +51,7 @@ class LDAPSourceForm(forms.ModelForm):
|
||||
# class ConnectionSettings(SettingsForm):
|
||||
# """Connection settings form"""
|
||||
|
||||
# namespace = 'supervisr.mod.auth.ldap'
|
||||
# namespace = 'passbook.ldap'
|
||||
# settings = ['server', 'server:tls', 'bind:user', 'bind:password', 'domain']
|
||||
|
||||
# attrs_map = {
|
||||
@ -68,7 +68,7 @@ class LDAPSourceForm(forms.ModelForm):
|
||||
# class AuthenticationBackendSettings(SettingsForm):
|
||||
# """Authentication backend settings"""
|
||||
|
||||
# namespace = 'supervisr.mod.auth.ldap'
|
||||
# namespace = 'passbook.ldap'
|
||||
# settings = ['base']
|
||||
|
||||
# attrs_map = {
|
||||
@ -79,7 +79,7 @@ class LDAPSourceForm(forms.ModelForm):
|
||||
# class CreateUsersSettings(SettingsForm):
|
||||
# """Create users settings"""
|
||||
|
||||
# namespace = 'supervisr.mod.auth.ldap'
|
||||
# namespace = 'passbook.ldap'
|
||||
# settings = ['create_base']
|
||||
|
||||
# attrs_map = {
|
||||
|
||||
@ -57,7 +57,7 @@ class LDAPSource(Source):
|
||||
|
||||
|
||||
# class LDAPGroupMapping(UUIDModel, CreatedUpdatedModel):
|
||||
# """Model to map an LDAP Group to a supervisr group"""
|
||||
# """Model to map an LDAP Group to a passbook group"""
|
||||
|
||||
# ldap_dn = models.TextField()
|
||||
# group = models.ForeignKey(Group, on_delete=models.CASCADE)
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
# from django.conf.urls import url
|
||||
|
||||
# from supervisr.mod.auth.ldap import views
|
||||
# from passbook.mod.auth.ldap import views
|
||||
|
||||
# urlpatterns = [
|
||||
# url(r'^settings/$', views.admin_settings, name='admin_settings'),
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# """Supervisr Mod LDAP Views"""
|
||||
# """passbook LDAP Views"""
|
||||
|
||||
|
||||
# from django.contrib import messages
|
||||
@ -8,7 +8,7 @@
|
||||
# from django.urls import reverse
|
||||
# from django.utils.translation import ugettext as _
|
||||
|
||||
# from supervisr.mod.auth.ldap.forms import (AuthenticationBackendSettings,
|
||||
# from passbook.ldap.forms import (AuthenticationBackendSettings,
|
||||
# ConnectionSettings,
|
||||
# CreateUsersSettings,
|
||||
# GeneralSettingsForm)
|
||||
@ -34,5 +34,5 @@
|
||||
# if form.is_valid():
|
||||
# update_count += form.save()
|
||||
# messages.success(request, _('Successfully updated %d settings.' % update_count))
|
||||
# return redirect(reverse('supervisr_mod_auth_ldap:admin_settings'))
|
||||
# return redirect(reverse('passbook_ldap:admin_settings'))
|
||||
# return render(request, 'ldap/settings.html', render_data)
|
||||
|
||||
Reference in New Issue
Block a user