我已經在 RHEL7 伺服器中安裝了 Graphite。我已經在 Graphite local_settings.py 中完成了 LDAP 配置
## LDAP / ActiveDirectory authentication setup
USE_LDAP_AUTH = True
LDAP_SERVER = "ldap-test.de.com"
LDAP_PORT = 389
#LDAP_USE_TLS = True
## Manual URI / query setup
LDAP_URI = "ldap://ldap-test.de.com:389"
LDAP_SEARCH_BASE = "ou=test,dc=test"
LDAP_BASE_USER = "uid=test,ou=test1,cn=test2"
LDAP_BASE_PASS = "safdsfeefd"
LDAP_USER_QUERY = "(sAMAccountName=%s)" #For Active Directory use "(sAMAccountName=%s)"
# User DN template to use for binding (and authentication) against the
# LDAP server. %(username) is replaced with the username supplied at
# graphite login.
LDAP_USER_DN_TEMPLATE = "cn=% (username),ou=test1,dc=test"
# If you want to further customize the ldap connection options you should
# directly use ldap.set_option to set the ldap module's global options.
# For example:
#
#import ldap
#ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_ALLOW) # Use #ldap.OPT_X_TLS_DEMAND to force TLS
#ldap.set_option(ldap.OPT_REFERRALS, 0) # Enable for Active Directory
#ldap.set_option(ldap.OPT_X_TLS_CACERTDIR, "/etc/ssl/ca")
#ldap.set_option(ldap.OPT_X_TLS_CERTFILE, "/etc/ssl/mycert.pem")
#ldap.set_option(ldap.OPT_X_TLS_KEYFILE, "/etc/ssl/mykey.pem")
#ldap.set_option(ldap.OPT_DEBUG_LEVEL, 65535) # To enable verbose debugging
# See http://www.python-ldap.org/ for further details on these options.
我還透過 重新啟動了石墨服務service uwsgi restart
。當我嘗試登入時,它會拋出
“身份驗證失敗,請確保您輸入的登入名稱和密碼正確”
在日誌中我也無法找到錯誤訊息。如何解決這個問題。