<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>Passwd fails to get a the instance of Driver</title>
  <pubDate>Sat, 05 Jul 2008 12:50:33 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/4964</link>
  <atom:link rel="self" type="application/rss+xml" title="Passwd fails to get a the instance of Driver" href="http://bugs.horde.org/ticket/4964/rss" />
  <description>Passwd fails to get a the instance of Driver</description>

  
  
  <item>
   <title>I configured a Backend as sql (Postgres) with this data:

</title>
   <description>I configured a Backend as sql (Postgres) with this data:

$backends['cf'] = array (
    'name' =&gt; 'CF',
    'preferred' =&gt; '',
    'password policy' =&gt; array(
        'minLength' =&gt; 3,
        'maxLength' =&gt; 24,
        'maxSpace' =&gt; 0,
        'minUpper' =&gt; 0,
        'minLower' =&gt; 0,
        'minNumeric' =&gt; 0,
        'minSymbols' =&gt; 0
    ),
    'driver' =&gt; 'sql',
    'params' =&gt; array(
        'phptype'    =&gt; 'pgsql',
        'hostspec'   =&gt; 'myserver.de',
        'protocol'   =&gt; 'tcp',
        'username'   =&gt; 'postgres',
        'password'   =&gt; 'mypassword',
        'encryption' =&gt; 'plain',
        'database'   =&gt; 'config',
        'table'      =&gt; 'account',
        'user_col'   =&gt; 'accountname',
        'pass_col'   =&gt; 'passwd',
        'show_encryption' =&gt; false
        // The following two settings allow you to specify custom queries for
        // lookup and modify functions if special functions need to be
        // performed.  In places where a username or a password needs to be
        // used, refer to this placeholder reference:
        //    %u -&gt; gets substituted with the user
        //    %p -&gt; gets substituted with the plaintext password
        //    %e -&gt; gets substituted with the encrypted password
        //
        // 'query_lookup' =&gt; 'SELECT user_pass FROM horde_users WHERE user_uid = %u',
        // 'query_modify' =&gt; 'UPDATE horde_users SET user_pass = %e WHERE user_uid = %u',
    )
);

When the user tries to change his password, he gets this error:

Notice: Only variable references should be returned by reference in /usr/share/horde3/passwd/lib/Driver.php on line 110

I resolved this error by changing the line 110 of Driver.php as follow:

            $ret = &amp;new $class($params);
            return $ret;
//            return $ret = &amp;new $class($params);

Then, it runs without problem...
I hope, this change will appears by the next release... :)</description>
   <pubDate>Thu, 01 Feb 2007 05:45:02 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/4964#t29063</link>
  </item>
  <item>
   <title>I concur with this bug.  Although I am using a mysql backend</title>
   <description>I concur with this bug.  Although I am using a mysql backend the setup was very similar and symptoms identical.  I can also confirm that the fix works.</description>
   <pubDate>Thu, 01 Feb 2007 14:05:25 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/4964#t29077</link>
  </item>
  <item>
   <title>This has already been fixed in both HEAD and the FW_3 branch</title>
   <description>This has already been fixed in both HEAD and the FW_3 branch.</description>
   <pubDate>Thu, 01 Feb 2007 22:37:43 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/4964#t29083</link>
  </item>
  

 </channel>
</rss>
