修改bug

pull/6/head
ibuler 2014-12-25 23:52:52 +08:00
parent 284d5c79b0
commit 8d7ab7b1b0
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ def get_connect_item(username, ip):
red_print("Host %s isn't exist." % ip) red_print("Host %s isn't exist." % ip)
return return
if not asset.ldap_enable: if asset.ldap_enable:
user = User.objects.get(username=username) user = User.objects.get(username=username)
ldap_pwd = user.ldap_pwd ldap_pwd = user.ldap_pwd
return username, ldap_pwd, ip, port return username, ldap_pwd, ip, port