authentik.sources.ldap.migrations.0003_ldapsource_client_certificate_ldapsource_sni_and_more
1# Generated by Django 4.1.7 on 2023-06-06 18:33 2 3import django.db.models.deletion 4from django.db import migrations, models 5 6 7class Migration(migrations.Migration): 8 dependencies = [ 9 ("authentik_crypto", "0004_alter_certificatekeypair_name"), 10 ("authentik_sources_ldap", "0002_auto_20211203_0900"), 11 ] 12 13 operations = [ 14 migrations.AddField( 15 model_name="ldapsource", 16 name="client_certificate", 17 field=models.ForeignKey( 18 default=None, 19 help_text="Client certificate to authenticate against the LDAP Server's Certificate.", 20 null=True, 21 on_delete=django.db.models.deletion.SET_DEFAULT, 22 related_name="ldap_client_certificates", 23 to="authentik_crypto.certificatekeypair", 24 ), 25 ), 26 migrations.AddField( 27 model_name="ldapsource", 28 name="sni", 29 field=models.BooleanField( 30 default=False, verbose_name="Use Server URI for SNI verification" 31 ), 32 ), 33 migrations.AlterField( 34 model_name="ldapsource", 35 name="peer_certificate", 36 field=models.ForeignKey( 37 default=None, 38 help_text="Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.", 39 null=True, 40 on_delete=django.db.models.deletion.SET_DEFAULT, 41 related_name="ldap_peer_certificates", 42 to="authentik_crypto.certificatekeypair", 43 ), 44 ), 45 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 dependencies = [ 10 ("authentik_crypto", "0004_alter_certificatekeypair_name"), 11 ("authentik_sources_ldap", "0002_auto_20211203_0900"), 12 ] 13 14 operations = [ 15 migrations.AddField( 16 model_name="ldapsource", 17 name="client_certificate", 18 field=models.ForeignKey( 19 default=None, 20 help_text="Client certificate to authenticate against the LDAP Server's Certificate.", 21 null=True, 22 on_delete=django.db.models.deletion.SET_DEFAULT, 23 related_name="ldap_client_certificates", 24 to="authentik_crypto.certificatekeypair", 25 ), 26 ), 27 migrations.AddField( 28 model_name="ldapsource", 29 name="sni", 30 field=models.BooleanField( 31 default=False, verbose_name="Use Server URI for SNI verification" 32 ), 33 ), 34 migrations.AlterField( 35 model_name="ldapsource", 36 name="peer_certificate", 37 field=models.ForeignKey( 38 default=None, 39 help_text="Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.", 40 null=True, 41 on_delete=django.db.models.deletion.SET_DEFAULT, 42 related_name="ldap_peer_certificates", 43 to="authentik_crypto.certificatekeypair", 44 ), 45 ), 46 ]
The base class for all migrations.
Migration files will import this from django.db.migrations.Migration and subclass it as a class called Migration. It will have one or more of the following attributes:
- operations: A list of Operation instances, probably from django.db.migrations.operations
- dependencies: A list of tuples of (app_path, migration_name)
- run_before: A list of tuples of (app_path, migration_name)
- replaces: A list of migration_names
Note that all migrations come out of migrations and into the Loader or Graph as instances, having been initialized with their app label and name.
dependencies =
[('authentik_crypto', '0004_alter_certificatekeypair_name'), ('authentik_sources_ldap', '0002_auto_20211203_0900')]
operations =
[<AddField model_name='ldapsource', name='client_certificate', field=<django.db.models.fields.related.ForeignKey>>, <AddField model_name='ldapsource', name='sni', field=<django.db.models.fields.BooleanField>>, <AlterField model_name='ldapsource', name='peer_certificate', field=<django.db.models.fields.related.ForeignKey>>]