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
b1768565
Commit
b1768565
authored
9 years ago
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复
1. 推送时 验证改为 /usr/sbin/visudo -c 2. 添加系统用户的key 认证更改 支持 RSA|DSA 3. web terminal 行数 -1
parent
7323b72c
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
web_terminal.html
templates/jlog/web_terminal.html
+1
-1
perm_role_add.html
templates/jperm/perm_role_add.html
+2
-2
role_sudo.j2
templates/jperm/role_sudo.j2
+1
-1
No files found.
templates/jlog/web_terminal.html
View file @
b1768565
...
...
@@ -117,7 +117,7 @@
$
(
'.terminal'
).
css
(
'width'
,
window
.
innerWidth
-
25
);
console
.
log
(
window
.
innerWidth
);
console
.
log
(
window
.
innerWidth
-
10
);
var
rows
=
Math
.
floor
(
window
.
innerHeight
/
rowHeight
)
-
1
;
var
rows
=
Math
.
floor
(
window
.
innerHeight
/
rowHeight
)
-
2
;
var
cols
=
Math
.
floor
(
window
.
innerWidth
/
colWidth
)
-
1
;
return
{
rows
:
rows
,
cols
:
cols
};
...
...
This diff is collapsed.
Click to expand it.
templates/jperm/perm_role_add.html
View file @
b1768565
...
...
@@ -93,7 +93,7 @@ $('#roleForm').validator({
theme
:
"yellow_right_effect"
,
rules
:
{
check_name
:
[
/
(?!
^root$
)
^
[\w
.
]{2,20}
$/i
,
'大小写字母数字和下划线小数点,2-20位,并且非root'
],
check_begin
:
[
/^
[\-]
+BEGIN R
SA PRIVATE KEY
[\-]
+/gm
,
'RSA Key填写有误,请检查'
],
check_begin
:
[
/^
[\-]
+BEGIN R
|DSA PRIVATE KEY
[\-]
+/gm
,
'RSA|DSA Key填写有误,请检查'
]
},
...
...
@@ -108,7 +108,7 @@ $('#roleForm').validator({
rule
:
"check_begin"
,
ok
:
""
,
empty
:
true
}
,
}
},
valid
:
function
(
form
)
{
...
...
This diff is collapsed.
Click to expand it.
templates/jperm/role_sudo.j2
View file @
b1768565
...
...
@@ -36,7 +36,7 @@ add_role_chosen() {
check_syntax
(){
visudo
-c
-f
$1
/usr/sbin/
visudo
-c
-f
$1
}
cp
$real_file
$tmp_file
&&
add_cmd_alias
$tmp_file
&&
add_role_chosen
$tmp_file
||
exit
1
...
...
This diff is collapsed.
Click to expand it.
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