# Generated by Django 4.1.7 on 2023-06-06 18:33

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ("authentik_crypto", "0004_alter_certificatekeypair_name"),
        ("authentik_sources_ldap", "0002_auto_20211203_0900"),
    ]

    operations = [
        migrations.AddField(
            model_name="ldapsource",
            name="client_certificate",
            field=models.ForeignKey(
                default=None,
                help_text="Client certificate to authenticate against the LDAP Server's Certificate.",
                null=True,
                on_delete=django.db.models.deletion.SET_DEFAULT,
                related_name="ldap_client_certificates",
                to="authentik_crypto.certificatekeypair",
            ),
        ),
        migrations.AddField(
            model_name="ldapsource",
            name="sni",
            field=models.BooleanField(
                default=False, verbose_name="Use Server URI for SNI verification"
            ),
        ),
        migrations.AlterField(
            model_name="ldapsource",
            name="peer_certificate",
            field=models.ForeignKey(
                default=None,
                help_text="Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.",
                null=True,
                on_delete=django.db.models.deletion.SET_DEFAULT,
                related_name="ldap_peer_certificates",
                to="authentik_crypto.certificatekeypair",
            ),
        ),
    ]
