<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Construct userdn from parts of userid</title> 
  <pubDate>Fri, 10 Apr 2026 09:21:11 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12995</link> 
  <atom:link rel="self" type="application/rss+xml" title="Construct userdn from parts of userid" href="https://bugs.horde.org/ticket/12995/rss" /> 
  <description>Construct userdn from parts of userid</description> 
 
   
   
  <item> 
   <title>We use LDAP with DNs like this:
uid=&lt;user&gt;, ... , dc=&lt;domai</title> 
   <description>We use LDAP with DNs like this:
uid=&lt;user&gt;, ... , dc=&lt;domain&gt;
but we authenticate users with their e-mail address &lt;user&gt;@&lt;domain&gt;

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 &lt;user&gt; and &lt;domain&gt; and replaces %l with &lt;user&gt; and %d with &lt;domain&gt; in userdn attribute.

Cheers,
Stoyan </description> 
   <pubDate>Wed, 26 Feb 2014 16:00:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12995#t82466</link> 
  </item> 
   
  <item> 
   <title>Due to this (and previous) requests, I&#039;ve simply added back </title> 
   <description>Due to this (and previous) requests, I&#039;ve simply added back the &#039;userdn&#039; hook for Passwd 5.0.2.</description> 
   <pubDate>Thu, 27 Feb 2014 06:21:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12995#t82473</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
