Helpful Information
 
 
Category: LDAP Programming
LDAP Alias need to return aliased object plus original

I have 2 entries

id=1,dc=myldap,dc=com
id=2,dc=myldap,dc=com

id=2,dc=myldap,dc=com is an alias to id=1,dc=myldap,dc=com

id=2,dc=myldap,dc=com has the objectclasses that I need plus the alias objectclass

now when I view id=2,dc=myldap,dc=com with Dereference Aliases set to:

Never: it shows plain id=2,dc=myldap,dc=com
Searching: it'll search correctly and this works normally
Finding: this returns id=1,dc=myldap,dc=com but it does not have "any" info from id=2,dc=myldap,dc=com which I would like it to have

So I would like to retrive id=2,dc=myldap,dc=com and have it show id=1,dc=myldap,dc=com but if in id=2,dc=myldap,dc=com there are any of the same (or even different) attributes I would like all of them to show.

This is an old post - but I'm curious if there was any resolution to this? I'm running into the very same problem. According to the alias specification, it should NOT carry any additional information except the pointer to another DN. Is there another way to do this?

-kph




I have 2 entries

id=1,dc=myldap,dc=com
id=2,dc=myldap,dc=com

id=2,dc=myldap,dc=com is an alias to id=1,dc=myldap,dc=com

id=2,dc=myldap,dc=com has the objectclasses that I need plus the alias objectclass

now when I view id=2,dc=myldap,dc=com with Dereference Aliases set to:

Never: it shows plain id=2,dc=myldap,dc=com
Searching: it'll search correctly and this works normally
Finding: this returns id=1,dc=myldap,dc=com but it does not have "any" info from id=2,dc=myldap,dc=com which I would like it to have

So I would like to retrive id=2,dc=myldap,dc=com and have it show id=1,dc=myldap,dc=com but if in id=2,dc=myldap,dc=com there are any of the same (or even different) attributes I would like all of them to show.










privacy (GDPR)