2023-04-18 09:07:01 +00:00
|
|
|
import re
|
|
|
|
|
2023-02-09 12:48:25 +00:00
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
|
|
create_success_msg = _("%(name)s was created successfully")
|
|
|
|
update_success_msg = _("%(name)s was updated successfully")
|
|
|
|
FILE_END_GUARD = ">>> Content End <<<"
|
|
|
|
celery_task_pre_key = "CELERY_"
|
|
|
|
KEY_CACHE_RESOURCE_IDS = "RESOURCE_IDS_{}"
|
|
|
|
|
|
|
|
# AD User AccountDisable
|
|
|
|
# https://docs.microsoft.com/en-us/troubleshoot/windows-server/identity/useraccountcontrol-manipulate-account-properties
|
|
|
|
LDAP_AD_ACCOUNT_DISABLE = 2
|
2023-04-18 09:07:01 +00:00
|
|
|
UUID_PATTERN = re.compile(r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')
|