redld ldap身份验证失败

问题描述 投票:1回答:2

我无法通过Redmine成功进行LDAP身份验证。以下是对我所做操作的描述:

我已在Centos 6.7上安装Bitnami Redmine,并尝试在MS Windows Server 2012上针对AD进行身份验证。

Environment: Redmine version 3.1.1.stable
Ruby version 2.0.0-p647 (2015-08-18) [x86_64-linux]
Rails version 4.2.4
Environment production
Database adapter Mysql2
SCM:
  Subversion 1.6.11
  Git 1.7.1
  Filesystem

Redmine plugins:
  no plugin installed

这是我在Redmine上的LDAP配置:

Name: geo-AD
Host: geo-dc.geo.net
Port 389 LDAPS: No
User: ldapuser
DN Base: DC=geo-dc,DC=geo,DC=net
LDAP filter: (objectClass=*)
on the fly: yes
Connection attribute: sAMAccontName
Name: givenName
Surname: sn
Mail: mail

测试工作正常,但是当我尝试进行身份验证时总会得到

无效的密码

我跟踪了Wireshark的身份验证阶段,并且看到了以下内容:

从Redmine主机到AD服务器的请求要求以下属性:

  • dn
  • givenName
  • sn
  • 邮件

AD服务器回答“没有这样的对象”,并且身份验证停止。我已经从LDAP配置窗口中删除了givenNamesnmail,并且对DN的请求仍然存在,并导致失败。

我已经检查了AD模式,没有名为“ dn”的属性。

知道Redmine为什么在身份验证期间要求这样做以及是否有办法更改此行为的想法吗?

此处遵循LDAP查询和LDAP响应。192.168.1.244是具有Redmine的Centos服务器,192.168.1.240是具有AD的MS Server 2012。

No.     Time           Source                Destination           Protocol Length Info

72 28.269126319   192.168.1.244         192.168.1.240         LDAP     237    searchRequest(2) "DC=geo-dc,DC=geo,DC=net" wholeSubtree 

帧72:在线上237个字节(1896位),在接口0上捕获了237个字节(1896位)

轻型目录访问协议

LDAPMessage searchRequest(2) "DC=geo-dc,DC=geo,DC=net" wholeSubtree

    messageID: 2

    protocolOp: searchRequest (3)

        searchRequest

            baseObject: DC=geo-dc,DC=geo,DC=net

            scope: wholeSubtree (2)

            derefAliases: neverDerefAliases (0)

            sizeLimit: 0

            timeLimit: 0

            typesOnly: False

            Filter: (&(&(objectClass=*)(objectClass=*))
(sAMAccountName=mlavagna))

                filter: and (0)

                    and: (&(&(objectClass=*)(objectClass=*))
(sAMAccountName=mlavagna))

                        and: 3 items

                            Filter: (objectClass=*)

                                and item: present (7)

                                    present: objectClass

                            Filter: (objectClass=*)

                                and item: present (7)

                                    present: objectClass

                            Filter: (sAMAccountName=mlavagna)

                                and item: equalityMatch (3)

                                    equalityMatch

                                        attributeDesc: sAMAccountName

                                        assertionValue: mlavagna

            attributes: 4 items

                AttributeDescription: dn

                AttributeDescription: givenName

                AttributeDescription: sn

                AttributeDescription: mail

    [Response In: 73]

    controls: 1 item

        Control

            controlType: 1.2.840.113556.1.4.319 (pagedResultsControl)

            criticality: False

            SearchControlValue

                size: 126

                cookie: <MISSING>

没有时间源目标协议

74 28.269493413 192.168.1.244 192.168.1.240 TCP

轻型目录访问协议

LDAPMessage searchResDone(2) noSuchObject (0000208D: NameErr: DSID-03100238, problem 2001 (NO_OBJECT), data 0, best match of:

'DC=geo,DC=net'

) [0 results]

    messageID: 2

    protocolOp: searchResDone (5)

        searchResDone

            resultCode: noSuchObject (32)

            matchedDN: DC=geo,DC=net

            errorMessage: 0000208D: NameErr: DSID-03100238, problem 2001 
(NO_OBJECT), data 0, best match of:\n\t'DC=geo,DC=net'\n

    [Response To: 72]

    [Time: 0.000264030 seconds]
ldap redmine
2个回答
0
投票

您在LDAP中是否有一个“ ou”(组织单位)?例如,如果您的用户在ou = People以下,则您的Redmine DN Base可能如下所示:

DN Base: ou=People,DC=geo-dc,DC=geo,DC=net

0
投票

这有什么用吗?我在尝试将Redmine 3.4.6(Running Cent 7.5)连接到FreeIPA v4.5.4 LDAP Server时遇到同样的问题。测试成功完成,但是我无法以LDAP用户身份登录]