mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-31 22:36:37 +00:00
修改bug
This commit is contained in:
parent
284d5c79b0
commit
8d7ab7b1b0
@ -175,7 +175,7 @@ def get_connect_item(username, ip):
|
||||
red_print("Host %s isn't exist." % ip)
|
||||
return
|
||||
|
||||
if not asset.ldap_enable:
|
||||
if asset.ldap_enable:
|
||||
user = User.objects.get(username=username)
|
||||
ldap_pwd = user.ldap_pwd
|
||||
return username, ldap_pwd, ip, port
|
||||
|
Loading…
Reference in New Issue
Block a user