From 8d7ab7b1b06fc56432d7275ffce4b5bc0d02b56e Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 25 Dec 2014 23:52:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.py b/connect.py index 748320b2b..78fd16992 100755 --- a/connect.py +++ b/connect.py @@ -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