mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 02:01:01 -03:30
committed by
Matthew Jones
parent
d506cbf249
commit
ec52e18be8
@@ -377,9 +377,9 @@ register(
|
|||||||
help_text=_('User profile flags updated from group membership (key is user '
|
help_text=_('User profile flags updated from group membership (key is user '
|
||||||
'attribute name, value is group DN). These are boolean fields '
|
'attribute name, value is group DN). These are boolean fields '
|
||||||
'that are matched based on whether the user is a member of the '
|
'that are matched based on whether the user is a member of the '
|
||||||
'given group. So far only is_superuser is settable via this '
|
'given group. So far only is_superuser and is_system_auditor '
|
||||||
'method. This flag is set both true and false at login time '
|
'are settable via this method. This flag is set both true and '
|
||||||
'based on current LDAP settings.'),
|
'false at login time based on current LDAP settings.'),
|
||||||
category=_('LDAP'),
|
category=_('LDAP'),
|
||||||
category_slug='ldap',
|
category_slug='ldap',
|
||||||
placeholder=collections.OrderedDict([
|
placeholder=collections.OrderedDict([
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ class LDAPUserFlagsField(fields.DictField):
|
|||||||
default_error_messages = {
|
default_error_messages = {
|
||||||
'invalid_flag': _('Invalid user flag: "{invalid_flag}".'),
|
'invalid_flag': _('Invalid user flag: "{invalid_flag}".'),
|
||||||
}
|
}
|
||||||
valid_user_flags = {'is_superuser'}
|
valid_user_flags = {'is_superuser', 'is_system_auditor'}
|
||||||
child = LDAPDNField()
|
child = LDAPDNField()
|
||||||
|
|
||||||
def to_internal_value(self, data):
|
def to_internal_value(self, data):
|
||||||
|
|||||||
Reference in New Issue
Block a user