1.需要修改配置文件,添加如下內容: username-as-common-name script-security 3 auth-user-pass-verify /etc/open***/ldap_auth.py