From 985063335019a1b5c13243832162c49b23436351 Mon Sep 17 00:00:00 2001 From: Bai Date: Mon, 1 Jun 2020 12:06:39 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E6=B7=BB=E5=8A=A0LDAP=20USER=5FQUER?= =?UTF-8?q?Y=5FFIELD=E5=AD=97=E6=AE=B5=E5=80=BC=E4=B8=BAusername=EF=BC=8C?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=95=B0=E6=8D=AE=E5=BA=93=E5=9B=A0=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E6=95=8F=E6=84=9F=E5=AF=BC=E8=87=B4LDAP=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=AE=A4=E8=AF=81=E9=A6=96=E6=AC=A1=E6=88=90=E5=8A=9F?= =?UTF-8?q?=EF=BC=8C=E5=86=8D=E6=AC=A1=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9B=E5=A6=82=E6=9E=9C=E4=B8=8D=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=AD=A4=E5=AD=97=E6=AE=B5=EF=BC=8C=E5=88=99=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=B0=8F=E5=86=99=EF=BC=8C=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E4=BC=9A=E4=BD=BF=E7=94=A8=E5=A4=A7=E5=86=99?= =?UTF-8?q?=EF=BC=8C=E6=9C=80=E7=BB=88=E5=AF=BC=E8=87=B4username=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E8=80=8C=E5=88=9B=E5=BB=BA=E7=94=A8=E6=88=B7=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/jumpserver/settings/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/jumpserver/settings/auth.py b/apps/jumpserver/settings/auth.py index b7633ace7..f96498e0e 100644 --- a/apps/jumpserver/settings/auth.py +++ b/apps/jumpserver/settings/auth.py @@ -18,6 +18,7 @@ AUTH_LDAP_SEARCH_OU = DYNAMIC.AUTH_LDAP_SEARCH_OU AUTH_LDAP_SEARCH_FILTER = DYNAMIC.AUTH_LDAP_SEARCH_FILTER AUTH_LDAP_START_TLS = DYNAMIC.AUTH_LDAP_START_TLS AUTH_LDAP_USER_ATTR_MAP = DYNAMIC.AUTH_LDAP_USER_ATTR_MAP +AUTH_LDAP_USER_QUERY_FIELD = 'username' AUTH_LDAP_GLOBAL_OPTIONS = { ldap.OPT_X_TLS_REQUIRE_CERT: ldap.OPT_X_TLS_NEVER, ldap.OPT_REFERRALS: CONFIG.AUTH_LDAP_OPTIONS_OPT_REFERRALS