Modify

Opened 17 years ago

Last modified 9 years ago

#3036 reopened enhancement

LdapPlugin should follow LDAP aliases

Reported by: r_j_h_box-buy@… Owned by: Emmanuel Blot
Priority: normal Component: LdapPlugin
Severity: minor Keywords:
Cc: Trac Release: 0.10

Description

I'm using an LDAP configuration where I need to place my Trac groups in one part of the tree, as aliases to groups that are defined in other parts of the tree.

In case anybody's wondering, this is to allow me to administer my Trac instances through my Apple OSX Leopard Server's Workgroup Administrator application.

There's a feature built into the LDAP libraries which specifies that lookups should follow aliases, and it appears that this isn't currently enabled. If you can recommend a workaround and/or a code fix on the plugin, that would very much appreciated.

Attachments (1)

deref_searching.patch (537 bytes) - added by ektich@… 9 years ago.
enable alias dereference during search operatoins

Download all attachments as: .zip

Change History (5)

comment:1 Changed 17 years ago by anonymous

From http://python-ldap.sourceforge.net/doc/html/ldap.html#ldap.LDAPObject.search

LDAPObject.deref

    Controls whether aliases are automatically dereferenced. This must be one of DEREF_NEVER, DEREF_SEARCHING, DEREF_FINDING, or DEREF_ALWAYS. This option is mapped to option constant OPT_DEREF and used in the underlying OpenLDAP lib.

comment:2 Changed 17 years ago by anonymous

Resolution: fixed
Status: newclosed

comment:3 Changed 17 years ago by anonymous

Resolution: fixed
Status: closedreopened

Changed 9 years ago by ektich@…

Attachment: deref_searching.patch added

enable alias dereference during search operatoins

comment:4 Changed 9 years ago by ektich@…

I've added a simple patch that enables alias dereferencing during search operations. It works for me with OpenLDAP version 2.4.11 and the alias record described by the following LDIF:

dn: cn=tracgroup,ou=people,dc=example,dc=com
objectClass: alias
objectClass: extensibleObject
cn: tracgroup
aliasedObjectName: cn=tracgroup,ou=groups,dc=example,dc=com

My main need for this feature is an inability of LdapAuthStorePlugin to keep users and groups on different branches of the LDAP tree.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as reopened The owner will remain Emmanuel Blot.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.