36 lines
1.2 KiB
Python
36 lines
1.2 KiB
Python
|
# Generated by Django 2.1.3 on 2018-11-26 15:17
|
||
|
|
||
|
import django.db.models.deletion
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
('passbook_core', '0003_rule_order'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='LDAPSource',
|
||
|
fields=[
|
||
|
('source_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='passbook_core.Source')),
|
||
|
('server_uri', models.TextField()),
|
||
|
('bind_cn', models.TextField()),
|
||
|
('bind_password', models.TextField()),
|
||
|
('type', models.CharField(choices=[('ad', 'ad'), ('generic', 'generic')], max_length=20)),
|
||
|
('domain', models.TextField()),
|
||
|
('base_dn', models.TextField()),
|
||
|
('create_user', models.BooleanField(default=False)),
|
||
|
('reset_password', models.BooleanField(default=True)),
|
||
|
],
|
||
|
options={
|
||
|
'verbose_name': 'LDAP Source',
|
||
|
'verbose_name_plural': 'LDAP Sources',
|
||
|
},
|
||
|
bases=('passbook_core.source',),
|
||
|
),
|
||
|
]
|