Authentication moodle LDAP身份验证的绑定设置

Authentication moodle LDAP身份验证的绑定设置,authentication,ldap,moodle,Authentication,Ldap,Moodle,我现在尝试在/admin/auth\u config.php?auth=LDAP中配置LDAP身份验证 我想知道绑定设置的作用是什么?是否需要在Bind settings下填写DN和密码,LDAP才能工作 在尝试从cron脚本通过ldap同步用户时,我遇到了一个错误代码auth_ldap\u noconnect。此错误的原因可能是什么?绑定设置是必需的-没有它们,Moodle无法连接到LDAP服务器。它们决定Moodle将如何访问LDAP服务器 CN = your Common Name OU

我现在尝试在
/admin/auth\u config.php?auth=LDAP
中配置LDAP身份验证

我想知道
绑定设置的作用是什么?是否需要在
Bind settings
下填写DN和密码,LDAP才能工作


在尝试从cron脚本通过ldap同步用户时,我遇到了一个错误代码
auth_ldap\u noconnect
。此错误的原因可能是什么?

绑定设置是必需的-没有它们,Moodle无法连接到LDAP服务器。它们决定Moodle将如何访问LDAP服务器

CN = your Common Name
OU = your Organizational Unit
DC = your Domain Component
这些都是LDAP数据交换格式(LDIF)的一部分,它们决定了如何过滤LDAP树。看

因此,在Moodle中,您可能需要一个特殊的名称,如: cn=YourServiceAccountName,ou=YourSchool,ou=Service Accounts,DC=yourdc,DC=co,DC=uk

你可能还需要列出你的学生所处的环境: ou=yourschool,DC=yourdc,DC=co,DC=uk

用户属性可能=samaccountname(对于MS Active Directory)