Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenDJ not dereferencing aliases #287

Open
kranskydog opened this issue Jul 18, 2023 · 1 comment
Open

OpenDJ not dereferencing aliases #287

kranskydog opened this issue Jul 18, 2023 · 1 comment

Comments

@kranskydog
Copy link

kranskydog commented Jul 18, 2023

Describe the bug
if I create an alias to another object, and do an ldapsearch on the alias, I do not get back anything about the aliased object. I only get back the alias definition

To Reproduce
Steps to reproduce the behavior:

create an object
create an alias for that object
use 'ldapsearch -a always' to search for the alias

Expected behavior
I should get back the details of the aliased object

Screenshots
[root@ldap11 ~]# ldapsearch -LL -a always -h $(hostname) -p 389 -x -b "cn=OracleContext,dc=example,dc=com" -s sub "(cn=foo)"
version: 1

dn: cn=foo,cn=OracleContext,dc=example,dc=com
objectClass: top
objectClass: orclNetService
orclNetDescString: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = orcl.exam
ple.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = f
oo)))
cn: foo

[root@ldap11 ~]# ldapsearch -LL -a always -h $(hostname) -p 389 -x -b "cn=OracleContext,dc=example,dc=com" -s sub "(cn=bar)"
version: 1

dn: cn=bar,cn=OracleContext,dc=example,dc=com
objectClass: alias
objectClass: top
objectClass: orclNetServiceAlias
cn: bar
aliasedObjectName: cn=foo,cn=OracleContext,dc=example,dc=com

I expect to get back the orclNetDescString of cn=foo

Desktop (please complete the following information):

Additional context
OpenDJ 4.5.4

Using OpenDj to do Oracle TNS name resolution via LDAP.
See, for comparison, https://ronnyegner.wordpress.com/2009/09/25/storing-oracle-database-connection-strings-in-openldap-instead-of-oid/
->'Add an alias'

@kranskydog
Copy link
Author

RFC 4512, 2.6 Alias Entries
https://www.rfc-editor.org/rfc/rfc4512#page-16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant