简体   繁体   English

LDAP 服务器配置在 Sakai 22.1 中不起作用

[英]LDAP server configuration is not working in Sakai 22.1

I have installed Sakai 22.1 and the LMS is running fine.我已经安装了 Sakai 22.1,LMS 运行良好。 Now I need to integrate the instance to support authentication against LDAP server users (external users) as well as internal users.现在我需要集成实例以支持对 LDAP 服务器用户(外部用户)以及内部用户的身份验证。

To integrate with the LDAP I have uncommented the in components.xml and then modified the unboundid-ldap.xml according to the documentation at https://sakaiproject.atlassian.net/wiki/spaces/DOC/pages/32201507026/Sakai+22+LDAP+CAS+Configuration in the section "Add LDAP to Sakai".为了与 LDAP 集成,我取消了 components.xml 中的注释,然后根据 https 上的文档修改了 unboundid- ldap.xml://sakaiproject.atlassian.net/wiki/spaces/DOC/pages/32201507026/Sakai+22 +LDAP+CAS+“添加LDAP到Sakai”一节中的配置

The properties that I have changed are:我更改的属性是:

<property name="ldapHost">
 <list>
     <value>ldap.server.com</value>
</list>
</property>


<property name="ldapPort">
<list>
   <value>389</value>
</list>
</property>


<property name="ldapUser">
   <value>CN=Administrator,CN=Users,DC=ldap,DC=server,DC=com</value>
</property>


<property name="ldapPassword">
   <value>my secret password here</value>
</property>


<property name="autoBind">
   <value>true</value>
</property>


<property name="basePath">
   <value>dc=ldap,dc=server,dc=com</value>
</property>

I haven't touched any other stuff in the unboundid-ldap.xml file.我没有触及 unboundid-ldap.xml 文件中的任何其他内容。

Now when I start the tomcat server and try to login with the LDAP users, I do not get authenticated but I can only authenticate with the internal users.现在,当我启动 tomcat 服务器并尝试使用 LDAP 用户登录时,我没有通过身份验证,但我只能通过内部用户进行身份验证。

Why is this happening?为什么会这样? Do I need to make any other changes to the Sakai?我需要对 Sakai 进行任何其他更改吗? Any guidance on setting up LDAP would be great.任何有关设置 LDAP 的指导都会很棒。 Thanks in advance.提前致谢。

Change uid to sAMAccountName for the key login in the unboundid-ldap.xml.将 unboundid-ldap.xml 中的密钥登录uid更改为sAMAccountName

<property name="attributeMappings">
   <map>
        <entry key="login"><value>sAMAccountName</value></entry>         
        <entry key="firstName"><value>givenName</value></entry> 
        <entry key="preferredFirstName"><value>preferredName</value></entry>
        <entry key="lastName"><value>sn</value></entry> 
        <entry key="email"><value>mail</value></entry>  
        <entry key="groupMembership"><value>groupMembership</value></entry>   
        <entry key="jpegPhoto"><value>jpegPhoto</value></entry>   
    </map>
</property>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM