<?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>Perms_UI is storing Auth::listUsers() &quot;Display Name&quot;</title> 
  <pubDate>Thu, 09 Apr 2026 22:37:19 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8091</link> 
  <atom:link rel="self" type="application/rss+xml" title="Perms_UI is storing Auth::listUsers() &quot;Display Name&quot;" href="https://bugs.horde.org/ticket/8091/rss" /> 
  <description>Perms_UI is storing Auth::listUsers() &quot;Display Name&quot;</description> 
 
   
   
  <item> 
   <title>Auth::listUsers() may return something like array(&#039;johndoe&#039; </title> 
   <description>Auth::listUsers() may return something like array(&#039;johndoe&#039; =&gt; &#039;John Doo&#039;, &#039;foo&#039; =&gt; &#039;Foo Master&#039;, ...), Perms_UI is completely ignoring key values as given by listUsers. This leads to problems (at least in my special case) once you are going to use hasPermission() combined with user-level permissions.



The attached patch changes Perms_UI to:

- store the key provided by listUsers() instead of the &quot;Display Name&quot;

- show the &quot;Display Name&quot; for permissions granted to existing users

- show &quot;&lt;username&gt;&quot; for unknown users (with quotes, helps to quickly identify deleted users etc)



Please have a quick crosscheck with other Authentication modules, just to be sure listUsers() is doing what I&#039;m supposing it to do!



Best regards,

Thomas Gelf

</description> 
   <pubDate>Tue, 17 Mar 2009 11:38:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8091#t53137</link> 
  </item> 
   
  <item> 
   <title>Hmmm... I had a quick look at Auth_sql - and as suspected li</title> 
   <description>Hmmm... I had a quick look at Auth_sql - and as suspected listUsers() there just returns (0 =&gt; &#039;johndoe&#039;, 1 =&gt; &#039;foo&#039;) with 0, 1... unrelated to DB keys. So just applying my patch is impossible, but I wouldn&#039;t throw it away: isn&#039;t what I&#039;m supposing listUsers() to do the &quot;better&quot; behaviour?



Cheers,

Thomas Gelf

</description> 
   <pubDate>Tue, 17 Mar 2009 13:28:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8091#t53145</link> 
  </item> 
   
  <item> 
   <title>Auth::listUsers() is supposed to return user ids, not user n</title> 
   <description>Auth::listUsers() is supposed to return user ids, not user names. What auth backend are you seeing it return a full username?</description> 
   <pubDate>Tue, 17 Mar 2009 13:52:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8091#t53146</link> 
  </item> 
   
  <item> 
   <title>Hi Michael,



thank you for your quick response! As written</title> 
   <description>Hi Michael,



thank you for your quick response! As written below in the meantime I realized that listUsers is not doing what I expected it to do. So I&#039;ve probably been a little bit too fast in posting this ;-) I&#039;m using a custom LDAP Auth backend, based on the upcoming Zend_Ldap component (the one from &quot;incubator&quot;, not the stable one). And: no, I&#039;m not supposing it to be &quot;better&quot;, I have other reasons for using it ;-)



As fair as I understood now, there is no kind of enumUsers() to be found, wouldn&#039;t that be a good addition? For compatibility reasons Auth.php could provide it&#039;s own enumUsers() function, wrapping listUsers() into an array with appropriate keys for Auth backends not providing their own enumUsers() function.



It&#039;s just an idea, it could avoid identity hooks in some cases (Whups?) - in my case it helps making permission assignment easier. Our AD-users are in the form &quot;uabcd&quot; (u + 4 chars) for historical reasons, showing &quot;real&quot; names makes managing permissions a lot easier.



I&#039;ll for sure not be offended it you see no sense in this, so please feel free to close this ticket. If otherwise you would like me to provide additional patches showing how this could look like, please let me know.



Regards,

Thomas



</description> 
   <pubDate>Tue, 17 Mar 2009 14:32:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8091#t53147</link> 
  </item> 
   
  <item> 
   <title>That&#039;s what the username hooks are for. Those are called whe</title> 
   <description>That&#039;s what the username hooks are for. Those are called when displaying user ids in the frontend.</description> 
   <pubDate>Tue, 17 Mar 2009 14:41:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8091#t53148</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
