[Tickets #12995] Re: Construct userdn from parts of userid

noreply at bugs.horde.org noreply at bugs.horde.org
Wed Feb 26 16:04:51 UTC 2014


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/12995
------------------------------------------------------------------------------
  Ticket             | 12995
  Updated By         | horde.org at registrations.systeem.com  
<horde.org at registrations.systeem.com>
  Summary            | Construct userdn from parts of userid
  Queue              | Passwd
  Version            | 5.0.1
  Type               | Enhancement
  State              | New
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


horde.org at registrations.systeem.com (2014-02-26 16:00) wrote:

We use LDAP with DNs like this:
uid=<user>, ... , dc=<domain>
but we authenticate users with their e-mail address <user>@<domain>

We used the usedn function in hooks.php to split the e-mail address  
and generate correct DN for binding to LDAP server.

But now userdn hook is gone. In backends.local.php we can use userdn  
but there is no way to split the userid in a way we can use it. The  
only substitution that happens is for %u.

I though it will be useful if we can use parts of the userid. Proposed  
patch splits userid into two <user> and <domain> and replaces %l with  
<user> and %d with <domain> in userdn attribute.

Cheers,
Stoyan



horde.org at registrations.systeem.com (2014-02-26 16:00) uploaded:  
Ldap.php.patch

http://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=Ldap.php.patch&ticket=12995&fn=%2FLdap.php.patch





More information about the bugs mailing list