mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 23:22:25 +00:00
41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.29 on 2021-01-10 16:59
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations
|
|
#from django.conf import settings
|
|
import ldapdb.models.fields
|
|
|
|
#from ldap_sync.management.commands.ldap_rebuild import flush_ldap, sync_ldap
|
|
|
|
#def rebuild_ldap(apps, schema_editor):
|
|
# usersdn = settings.LDAP["base_user_dn"]
|
|
# groupsdn = settings.LDAP["base_usergroup_dn"]
|
|
# binddn = settings.DATABASES["ldap"]["USER"]
|
|
# bindpass = settings.DATABASES["ldap"]["PASSWORD"]
|
|
# server = settings.DATABASES["ldap"]["NAME"]
|
|
# flush_ldap(binddn, bindpass, server, usersdn, groupsdn)
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('ldap_sync', '0001_initial')
|
|
]
|
|
|
|
operations = [
|
|
migrations.DeleteModel(
|
|
name='LdapServiceUser',
|
|
),
|
|
migrations.DeleteModel(
|
|
name='LdapServiceUserGroup',
|
|
),
|
|
migrations.DeleteModel(
|
|
name='LdapUser',
|
|
),
|
|
migrations.DeleteModel(
|
|
name='LdapUserGroup',
|
|
),
|
|
]
|