mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 12:10:06 -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 '
|
||||
'attribute name, value is group DN). These are boolean fields '
|
||||
'that are matched based on whether the user is a member of the '
|
||||
'given group. So far only is_superuser is settable via this '
|
||||
'method. This flag is set both true and false at login time '
|
||||
'based on current LDAP settings.'),
|
||||
'given group. So far only is_superuser and is_system_auditor '
|
||||
'are settable via this method. This flag is set both true and '
|
||||
'false at login time based on current LDAP settings.'),
|
||||
category=_('LDAP'),
|
||||
category_slug='ldap',
|
||||
placeholder=collections.OrderedDict([
|
||||
|
||||
@@ -322,7 +322,7 @@ class LDAPUserFlagsField(fields.DictField):
|
||||
default_error_messages = {
|
||||
'invalid_flag': _('Invalid user flag: "{invalid_flag}".'),
|
||||
}
|
||||
valid_user_flags = {'is_superuser'}
|
||||
valid_user_flags = {'is_superuser', 'is_system_auditor'}
|
||||
child = LDAPDNField()
|
||||
|
||||
def to_internal_value(self, data):
|
||||
|
||||
Reference in New Issue
Block a user