# -*- 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', ), ]