6.0.0-beta1
7/30/25

[#12995] Construct userdn from parts of userid
Summary Construct userdn from parts of userid
Queue Passwd
Queue Version 5.0.1
Type Enhancement
State Rejected
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester horde.org (at) registrations (dot) systeem (dot) com
Created 02/26/2014 (4172 days ago)
Due
Updated 02/27/2014 (4171 days ago)
Assigned
Resolved 02/27/2014 (4171 days ago)
Milestone
Patch Yes

History
02/27/2014 06:21:13 AM Michael Slusarz Comment #2
Assigned to Michael Slusarz
State ⇒ Rejected
Reply to this comment
Due to this (and previous) requests, I've simply added back the 
'userdn' hook for Passwd 5.0.2.
02/26/2014 04:00:08 PM horde (dot) org (at) registrations (dot) systeem (dot) com Comment #1
Priority ⇒ 1. Low
New Attachment: Ldap.php.patch Download
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Passwd
Summary ⇒ Construct userdn from parts of userid
Type ⇒ Enhancement
State ⇒ New
Reply to this comment
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

Saved Queries