authentik.providers.ldap.migrations.0003_ldapprovider_mfa_support_and_more
1# Generated by Django 4.1.7 on 2023-06-19 17:30 2 3from django.db import migrations, models 4 5 6class Migration(migrations.Migration): 7 dependencies = [ 8 ("authentik_providers_ldap", "0002_ldapprovider_bind_mode"), 9 ] 10 11 operations = [ 12 migrations.AddField( 13 model_name="ldapprovider", 14 name="mfa_support", 15 field=models.BooleanField( 16 default=True, 17 help_text="When enabled, code-based multi-factor authentication can be used by appending a semicolon and the TOTP code to the password. This should only be enabled if all users that will bind to this provider have a TOTP device configured, as otherwise a password may incorrectly be rejected if it contains a semicolon.", 18 verbose_name="MFA Support", 19 ), 20 ), 21 migrations.AlterField( 22 model_name="ldapprovider", 23 name="gid_start_number", 24 field=models.IntegerField( 25 default=4000, 26 help_text="The start for gidNumbers, this number is added to a number generated from the group.pk to make sure that the numbers aren't too low for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber", 27 ), 28 ), 29 migrations.AlterField( 30 model_name="ldapprovider", 31 name="uid_start_number", 32 field=models.IntegerField( 33 default=2000, 34 help_text="The start for uidNumbers, this number is added to the user.pk to make sure that the numbers aren't too low for POSIX users. Default is 2000 to ensure that we don't collide with local users uidNumber", 35 ), 36 ), 37 ]
class
Migration(django.db.migrations.migration.Migration):
7class Migration(migrations.Migration): 8 dependencies = [ 9 ("authentik_providers_ldap", "0002_ldapprovider_bind_mode"), 10 ] 11 12 operations = [ 13 migrations.AddField( 14 model_name="ldapprovider", 15 name="mfa_support", 16 field=models.BooleanField( 17 default=True, 18 help_text="When enabled, code-based multi-factor authentication can be used by appending a semicolon and the TOTP code to the password. This should only be enabled if all users that will bind to this provider have a TOTP device configured, as otherwise a password may incorrectly be rejected if it contains a semicolon.", 19 verbose_name="MFA Support", 20 ), 21 ), 22 migrations.AlterField( 23 model_name="ldapprovider", 24 name="gid_start_number", 25 field=models.IntegerField( 26 default=4000, 27 help_text="The start for gidNumbers, this number is added to a number generated from the group.pk to make sure that the numbers aren't too low for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber", 28 ), 29 ), 30 migrations.AlterField( 31 model_name="ldapprovider", 32 name="uid_start_number", 33 field=models.IntegerField( 34 default=2000, 35 help_text="The start for uidNumbers, this number is added to the user.pk to make sure that the numbers aren't too low for POSIX users. Default is 2000 to ensure that we don't collide with local users uidNumber", 36 ), 37 ), 38 ]
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.
operations =
[<AddField model_name='ldapprovider', name='mfa_support', field=<django.db.models.fields.BooleanField>>, <AlterField model_name='ldapprovider', name='gid_start_number', field=<django.db.models.fields.IntegerField>>, <AlterField model_name='ldapprovider', name='uid_start_number', field=<django.db.models.fields.IntegerField>>]