Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
859f2d97
Commit
859f2d97
authored
Feb 20, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 支持telnet自定义正则
parent
4fd9957b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
19 deletions
+34
-19
forms.py
apps/common/forms.py
+4
-0
conf.py
apps/jumpserver/conf.py
+1
-0
settings.py
apps/jumpserver/settings.py
+1
-0
django.mo
apps/locale/zh/LC_MESSAGES/django.mo
+0
-0
django.po
apps/locale/zh/LC_MESSAGES/django.po
+28
-19
No files found.
apps/common/forms.py
View file @
859f2d97
...
...
@@ -159,6 +159,10 @@ class TerminalSettingForm(BaseForm):
help_text
=
_
(
"Units: days, Session, record, command will be delete "
"if more than duration, only in database"
)
)
TERMINAL_TELNET_REGEX
=
forms
.
CharField
(
required
=
False
,
label
=
_
(
"Telnet login regex"
),
help_text
=
_
(
"ex: Last
\
s*login|success|成功"
)
)
class
TerminalCommandStorage
(
BaseForm
):
...
...
apps/jumpserver/conf.py
View file @
859f2d97
...
...
@@ -330,6 +330,7 @@ defaults = {
'TERMINAL_ASSET_LIST_PAGE_SIZE'
:
'auto'
,
'TERMINAL_SESSION_KEEP_DURATION'
:
9999
,
'TERMINAL_HOST_KEY'
:
''
,
'TERMINAL_TELNET_REGEX'
:
''
,
'SECURITY_MFA_AUTH'
:
False
,
'SECURITY_LOGIN_LIMIT_COUNT'
:
7
,
'SECURITY_LOGIN_LIMIT_TIME'
:
30
,
...
...
apps/jumpserver/settings.py
View file @
859f2d97
...
...
@@ -555,3 +555,4 @@ SWAGGER_SETTINGS = {
# Default email suffix
EMAIL_SUFFIX
=
CONFIG
.
EMAIL_SUFFIX
TERMINAL_TELNET_REGEX
=
CONFIG
.
TERMINAL_TELNET_REGEX
apps/locale/zh/LC_MESSAGES/django.mo
View file @
859f2d97
No preview for this file type
apps/locale/zh/LC_MESSAGES/django.po
View file @
859f2d97
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Jumpserver 0.3.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-02-20 1
6:4
6+0800\n"
"POT-Creation-Date: 2019-02-20 1
8:5
6+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: ibuler <ibuler@qq.com>\n"
"Language-Team: Jumpserver team<ibuler@qq.com>\n"
...
...
@@ -2003,45 +2003,54 @@ msgstr ""
"单位:天。 会话、录像、命令记录超过该时长将会被删除(仅影响数据库存储, oss等不"
"受影响)"
#: common/forms.py:171
#: common/forms.py:163
msgid "Telnet login regex"
msgstr "Telnet 成功正则表达式"
#: common/forms.py:164
msgid "ex: Last\\s*login|success|成功"
msgstr ""
"登录telnet服务器成功后的提示正则表达式,如: Last\\s*login|success|成功 "
#: common/forms.py:175
msgid "MFA Secondary certification"
msgstr "MFA 二次认证"
#: common/forms.py:17
3
#: common/forms.py:17
7
msgid ""
"After opening, the user login must use MFA secondary authentication (valid "
"for all users, including administrators)"
msgstr "开启后,用户登录必须使用MFA二次认证(对所有用户有效,包括管理员)"
#: common/forms.py:1
79
#: common/forms.py:1
83
msgid "Limit the number of login failures"
msgstr "限制登录失败次数"
#: common/forms.py:18
3
#: common/forms.py:18
7
msgid "No logon interval"
msgstr "禁止登录时间间隔"
#: common/forms.py:18
5
#: common/forms.py:18
9
msgid ""
"Tip: (unit/minute) if the user has failed to log in for a limited number of "
"times, no login is allowed during this time interval."
msgstr ""
"提示:(单位:分)当用户登录失败次数达到限制后,那么在此时间间隔内禁止登录"
#: common/forms.py:19
1
#: common/forms.py:19
5
msgid "Connection max idle time"
msgstr "SSH最大空闲时间"
#: common/forms.py:19
3
#: common/forms.py:19
7
msgid ""
"If idle time more than it, disconnect connection(only ssh now) Unit: minute"
msgstr "提示:(单位:分)如果超过该配置没有操作,连接会被断开(仅ssh)"
#: common/forms.py:
199
#: common/forms.py:
203
msgid "Password expiration time"
msgstr "密码过期时间"
#: common/forms.py:20
2
#: common/forms.py:20
6
msgid ""
"Tip: (unit: day) If the user does not update the password during the time, "
"the user password will expire failure;The password expiration reminder mail "
...
...
@@ -2051,45 +2060,45 @@ msgstr ""
"提示:(单位:天)如果用户在此期间没有更新密码,用户密码将过期失效; 密码过期"
"提醒邮件将在密码过期前5天内由系统(每天)自动发送给用户"
#: common/forms.py:21
1
#: common/forms.py:21
5
msgid "Password minimum length"
msgstr "密码最小长度 "
#: common/forms.py:21
5
#: common/forms.py:21
9
msgid "Must contain capital letters"
msgstr "必须包含大写字母"
#: common/forms.py:2
17
#: common/forms.py:2
21
msgid ""
"After opening, the user password changes and resets must contain uppercase "
"letters"
msgstr "开启后,用户密码修改、重置必须包含大写字母"
#: common/forms.py:22
2
#: common/forms.py:22
6
msgid "Must contain lowercase letters"
msgstr "必须包含小写字母"
#: common/forms.py:22
3
#: common/forms.py:22
7
msgid ""
"After opening, the user password changes and resets must contain lowercase "
"letters"
msgstr "开启后,用户密码修改、重置必须包含小写字母"
#: common/forms.py:2
28
#: common/forms.py:2
32
msgid "Must contain numeric characters"
msgstr "必须包含数字字符"
#: common/forms.py:2
29
#: common/forms.py:2
33
msgid ""
"After opening, the user password changes and resets must contain numeric "
"characters"
msgstr "开启后,用户密码修改、重置必须包含数字字符"
#: common/forms.py:23
4
#: common/forms.py:23
8
msgid "Must contain special characters"
msgstr "必须包含特殊字符"
#: common/forms.py:23
5
#: common/forms.py:23
9
msgid ""
"After opening, the user password changes and resets must contain special "
"characters"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment