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
04655b90
Commit
04655b90
authored
6 years ago
by
ibuler
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of github.com:jumpserver/jumpserver into dev
parents
8a87f316
7a8e616f
Show 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 @
04655b90
#!/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
This diff is collapsed.
Click to expand it.
utils/disable_user_mfa.
py
→
utils/disable_user_mfa.
sh
View file @
04655b90
File moved
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