Opened 17 years ago
Last modified 9 years ago
#3036 reopened enhancement
LdapPlugin should follow LDAP aliases
Reported by: | 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)
Change History (5)
comment:1 Changed 17 years ago by
comment:2 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 17 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Changed 9 years ago by
Attachment: | deref_searching.patch added |
---|
enable alias dereference during search operatoins
comment:4 Changed 9 years ago by
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.
From http://python-ldap.sourceforge.net/doc/html/ldap.html#ldap.LDAPObject.search