mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:29:26 +08:00
update
This commit is contained in:
@@ -302,6 +302,13 @@ def submitRedisConf():
|
||||
reload()
|
||||
return mw.returnJson(True, '设置成功')
|
||||
|
||||
def installPreInspection():
|
||||
slapd_path = '/etc/ldap/slapd.d'
|
||||
if not os.path.exists(slapd_path):
|
||||
return "需要手动执行:apt install -y slapd ldap-utils"
|
||||
return 'ok'
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
func = sys.argv[1]
|
||||
if func == 'status':
|
||||
@@ -320,6 +327,8 @@ if __name__ == "__main__":
|
||||
print(initdInstall())
|
||||
elif func == 'initd_uninstall':
|
||||
print(initdUinstall())
|
||||
elif func == 'install_pre_inspection':
|
||||
print(installPreInspection())
|
||||
elif func == 'run_info':
|
||||
print(runInfo())
|
||||
elif func == 'conf':
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"shell": "install.sh",
|
||||
"versions":["1.0"],
|
||||
"tip": "soft",
|
||||
"install_pre_inspection":true,
|
||||
"checks": "server/ldap",
|
||||
"path": "server/ldap",
|
||||
"display": 1,
|
||||
|
||||
@@ -31,7 +31,10 @@ Install_App()
|
||||
|
||||
Uninstall_App()
|
||||
{
|
||||
apt remove -y slapd ldap-utils
|
||||
rm -rf $serverPath/ldap/version.pl
|
||||
rm -rf $serverPath/ldap
|
||||
rm -rf /etc/ldap
|
||||
echo "卸载ldap成功"
|
||||
}
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@ $('#login-button').click(function(){
|
||||
var data = 'username='+username+'&password='+password+'&code='+code;
|
||||
var loadT = layer.msg("正在登录中...",{icon:16,time:0,shade: [0.3, '#000']});
|
||||
$.post('/do_login',data,function(rdata){
|
||||
console.log('do_login',rdata);
|
||||
// console.log('do_login',rdata);
|
||||
layer.close(loadT);
|
||||
if(!rdata.status || rdata.status < 0){
|
||||
if(username == 'admin' && rdata.msg.indexOf('用户名') != -1){
|
||||
|
||||
Reference in New Issue
Block a user