DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Testcase Required Testcase Required
Assignee: Unassigned
Reporter: Stefaan Van Cauwenberge
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Store LDAP

LDAP DN no exposes as an attribute

Created: 11/May/12 02:06 PM   Updated: 11/Apr/16 10:31 AM   Resolved: 30/Mar/16 08:59 AM
Component/s: None
Affects Version/s: 3.1.0.m3
Fix Version/s: None

File Attachments: 1. Java Source File (2 kB)
2. File ldap.diff (13 kB)
3. Zip Archive (42 kB)

Environment: all

Datastore: LDAP
Severity: Proof of Concept

 Description  « Hide
the DN of an objects is not exposed/exposable as an attribute.

Sort Order: Ascending order - Click to sort in descending order
Stefaan Van Cauwenberge added a comment - 11/May/12 02:53 PM
Files for issues

Tested on eDirectory and openLDAP.

After I fixed the issue localy, I merged it with the latest version (3.1.0.m3). I hope it still works.

This patch supports the following:
1. A field definition of "dn" will always contain the dn of the object.

2. Extention on the class to add the search scope:
<extension vendor-name="opns" key="scope" value="SUBTREE_SCOPE"/>

Possible values are the constants.

3. Support for the attribute recursion-depth on the field definition.
Supported values: 0, 1 and 2 (the actual values of the constants).


Andy Jefferson added a comment - 16/May/12 12:36 PM
Hi, thx for the diffs, but sadly they don't apply to SVN trunk. Could you please regenerate it, using SVN trunk as the basis and attach a single "patch" file ("diff -u" format).

Stefaan Van Cauwenberge added a comment - 22/Oct/12 08:52 PM
New diff file.
Diff with version 3.1

I hope this one does the trick for you.

This fix includes support for:
- The dn attribute in the object, both in PersistenceManager.newQuery(...) and PersistenceManager.getObjectById, allowing primary-key="true" on the dn attribute (enabling caching of objects with the same naming value but a different context).
- A lot less query towards the ldap (no need to require the ldap to get the DN every 5 seconds...). The dn is associated with the object itself.
- Support for extention 'opns' for search controlling scope (method LDAPUtils.getSearchControls). If included it the release, the extention name should be


Andy Jefferson added a comment - 22/Oct/12 09:01 PM
Thx but please, a ***patch*** file against latest codebase. Patch is also known as "diff -u" or "unified diff".

Stefaan Van Cauwenberge added a comment - 22/Oct/12 09:04 PM
It seems that the diif does not include new class files. Attached the new class file I added: DNFieldFetcher.

Andy Jefferson added a comment - 30/Mar/16 08:59 AM
No testcase provided after 3.5 years!