[Date Prev][Date Next] [Chronological] [Thread] [Top]

Posible bug with alias



Title: Posible bug with alias

Hi,

I have found a possible bug on OpenLDAP when querying an entry which is an alias. This is the query:

ldapsearch -x -h localhost -L -b "msisdn=911,dc=msisdn,ou=aliases,dc=mybasedn" -s subtree -a search

#
# LDAPv3
# base <msisdn=911,dc=msisdn,ou=aliases,dc=mybasedn> with scope subtre                                                                                                    e

# filter: (objectclass=*)
# requesting: ALL
#

# 111, realentries, mybasedn
dn: subsId=111,ou=realentries,dc=mybasedn
objectClass: top
objectClass: RealEntry
subsId: 111

# 911, msisdn, aliases, mybasedn
dn: MSISDN=911,dc=msisdn,ou=aliases,dc=mybasedn
objectClass: top
objectClass: alias
objectClass: MSISDN
MSISDN: 911
aliasedObjectName: subsId=111,ou=realentries,dc=mybasedn
CDC: 0
usageCnt: 1

# search result

# numResponses: 3
# numEntries: 2

What I would expect is the alias entry to be returned (as the derefAlias=search) but instead I get the alias entry and the aliased entry.

I am using OpenLDAP 2.3.43-1 on cygwin.

Is this a bug?

Best regards,

Alberto Gómez