#015244: DN can not be retrieved from the LDAP filter (patch)

Description:

It is not possible to retrieve the DN of the authenticated user. Adding it in registerFetchData() does not cause it to be returned. The DN is a 'special' attribute and is not returned by ldap_get_attributes(), which is used to fetch the other attributes, in run().

The patch fixes this by adding a special case for it. Not sure if this is the best way to do it, though. Maybe we should have a separate method for this.


- Attachments
ldap_filter.php-add-dn.diff (821 b)
[Download] [Permanent Link]
ldap_test.php-add-dn.diff (1.5 kb)
[Download] [Permanent Link]
Test for the provided patch

- Comments

Thanks for the report and patch, but could you please also provide a test case with your patch?

#262446 by Derick Rethans on August 4th, 2009 [Permanent Link]

Test added. Note that the patch for this fix depends on the fix for
http://issues.ez.no/15240url
as that fix adds the $entryDN which I need to solve this issue. You probably don't like dependent patches, but this is cleaner than fetching $entryDN twice.

#262456 by Gunnstein Lye on August 5th, 2009 [Permanent Link]

Fixed in rev. 10735, DR please close the issue.

#262468 by Gunnstein Lye on August 5th, 2009 [Permanent Link]

Fixed in rev. 10735 (by GL)

#262469 by Derick Rethans on August 5th, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Authentication
Affects 1.3 - Authentication 1.3
2009.1.1 - eZ components 2009.1.1
Fix Versions 2009.2 sprint 2 - eZ components 2009.2 sprint 2
2009.2alpha1 - eZ components 2009.2alpha1
Reporter Gunnstein Lye
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created August 4th, 2009
Updated August 5th, 2009
Resolved August 5th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels