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
7a8e616f
Commit
7a8e616f
authored
Jun 19, 2019
by
BaiJiangJie
Committed by
老广
Jun 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 添加一键禁用LDAP认证脚本 (#2813)
parent
10616b8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
disable_ldap_auth.sh
utils/disable_ldap_auth.sh
+22
-0
disable_user_mfa.sh
utils/disable_user_mfa.sh
+0
-0
No files found.
utils/disable_ldap_auth.sh
0 → 100644
View file @
7a8e616f
#!/bin/bash
#
function
disable_auth_ldap
()
{
python3 ../apps/manage.py shell
<<
EOF
import sys
from settings.models import Setting
auth_ldap = Setting.objects.get(name='AUTH_LDAP')
if not auth_ldap:
print("No AUTH_LDAP config")
sys.exit(1)
if auth_ldap.value == 'false':
print("AUTH_LDAP is already disabled")
sys.exit(1)
auth_ldap.value = 'false'
auth_ldap.save()
auth_ldap.refresh_setting()
print("Disable AUTH_LDAP success!")
EOF
}
disable_auth_ldap
utils/disable_user_mfa.
py
→
utils/disable_user_mfa.
sh
View file @
7a8e616f
File moved
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