mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-24 13:00:26 +00:00
fix: Push account failed
This commit is contained in:
@@ -118,9 +118,7 @@ class BaseChangeSecretPushManager(AccountBasePlaybookManager):
|
|||||||
if self.secret_type == SecretType.SSH_KEY:
|
if self.secret_type == SecretType.SSH_KEY:
|
||||||
host['error'] = _("Windows does not support SSH key authentication")
|
host['error'] = _("Windows does not support SSH key authentication")
|
||||||
return host
|
return host
|
||||||
|
new_secret = self.get_secret(account)
|
||||||
if self.secret_strategy == SecretStrategy.custom:
|
|
||||||
new_secret = self.execution.snapshot['secret']
|
|
||||||
if '>' in new_secret or '^' in new_secret:
|
if '>' in new_secret or '^' in new_secret:
|
||||||
host['error'] = _("Windows password cannot contain special characters like > ^")
|
host['error'] = _("Windows password cannot contain special characters like > ^")
|
||||||
return host
|
return host
|
||||||
|
@@ -54,7 +54,7 @@ class LDAPSettingSerializer(LDAPSerializerMixin, serializers.Serializer):
|
|||||||
help_text=_('Binding password')
|
help_text=_('Binding password')
|
||||||
)
|
)
|
||||||
AUTH_LDAP_SEARCH_OU = serializers.CharField(
|
AUTH_LDAP_SEARCH_OU = serializers.CharField(
|
||||||
max_length=1024, allow_blank=True, required=False, label=_('Search OU'),
|
max_length=4096, allow_blank=True, required=False, label=_('Search OU'),
|
||||||
help_text=_(
|
help_text=_(
|
||||||
'User Search Base, if there are multiple OUs, you can separate them with the `|` symbol'
|
'User Search Base, if there are multiple OUs, you can separate them with the `|` symbol'
|
||||||
)
|
)
|
||||||
|
@@ -36,7 +36,7 @@ class LDAPHASettingSerializer(LDAPSerializerMixin, serializers.Serializer):
|
|||||||
help_text=_('Binding password')
|
help_text=_('Binding password')
|
||||||
)
|
)
|
||||||
AUTH_LDAP_HA_SEARCH_OU = serializers.CharField(
|
AUTH_LDAP_HA_SEARCH_OU = serializers.CharField(
|
||||||
max_length=1024, allow_blank=True, required=False, label=_('Search OU'),
|
max_length=4096, allow_blank=True, required=False, label=_('Search OU'),
|
||||||
help_text=_(
|
help_text=_(
|
||||||
'User Search Base, if there are multiple OUs, you can separate them with the `|` symbol'
|
'User Search Base, if there are multiple OUs, you can separate them with the `|` symbol'
|
||||||
)
|
)
|
||||||
|
@@ -22,6 +22,7 @@ class EndpointSerializer(BulkModelSerializer):
|
|||||||
'comment', 'date_created', 'date_updated', 'created_by'
|
'comment', 'date_created', 'date_updated', 'created_by'
|
||||||
]
|
]
|
||||||
extra_kwargs = {
|
extra_kwargs = {
|
||||||
|
'is_active': {'default': True},
|
||||||
'host': {'help_text': _(
|
'host': {'help_text': _(
|
||||||
'The host address accessed when connecting to assets, if it is empty, '
|
'The host address accessed when connecting to assets, if it is empty, '
|
||||||
'the access address of the current browser will be used '
|
'the access address of the current browser will be used '
|
||||||
@@ -71,5 +72,6 @@ class EndpointRuleSerializer(BulkModelSerializer):
|
|||||||
'comment', 'date_created', 'date_updated', 'created_by', 'is_active'
|
'comment', 'date_created', 'date_updated', 'created_by', 'is_active'
|
||||||
]
|
]
|
||||||
extra_kwargs = {
|
extra_kwargs = {
|
||||||
|
'is_active': {'default': True},
|
||||||
'priority': {'default': 50}
|
'priority': {'default': 50}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user