<?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>shadowLastChange LDAP attribute are not updated</title>
  <pubDate>Sat, 05 Jul 2008 00:49:58 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/5056</link>
  <atom:link rel="self" type="application/rss+xml" title="shadowLastChange LDAP attribute are not updated" href="http://bugs.horde.org/ticket/5056/rss" />
  <description>shadowLastChange LDAP attribute are not updated</description>

  
  
  <item>
   <title>The shadowLastChange didn't wrote after passwd was changed s</title>
   <description>The shadowLastChange didn't wrote after passwd was changed successfully.And then i still can change my ldap'passwd in the same day again even shadowMin was set to 7.

Here are my ldap's attributes about shadow:
===================================
shadowLastChange: 13473
shadowFlag: 134544124
shadowInactive: -1
shadowMin: 7
shadowMax: -1
shadowWarning: 7

And here are my backend.conf :
$backends['ldap'] = array(
    'name' =&gt; 'LDAP server',
    'preferred' =&gt; 'localhost',
    'password policy' =&gt; array(
        'minLength' =&gt; 6
        //'maxLength' =&gt; 8
    ),
    'driver' =&gt; 'ldap',
    'params' =&gt; array(
        'host' =&gt; 'localhost',
        'port' =&gt; 389,
        'basedn' =&gt; 'dc=example,dc=com',
        'uid' =&gt; 'uid',
        // this will be appended to the username when looking for the userdn.
        'realm' =&gt; '',
        'encryption' =&gt; 'ssha',
        // make sure the host == cn in the server certificate
        'tls' =&gt; false
    )
);


</description>
   <pubDate>Fri, 02 Mar 2007 20:41:38 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/5056#t29984</link>
  </item>
  <item>
   <title>Any chance this only happens to accounts that don't have cha</title>
   <description>Any chance this only happens to accounts that don't have changed the password yet, i.e. don't have the attribute specified by 'shadowlastchange' set?</description>
   <pubDate>Thu, 29 Mar 2007 13:25:07 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/5056#t30812</link>
  </item>
  <item>
   <title>&gt; Any chance this only happens to accounts that don't have c</title>
   <description>&gt; Any chance this only happens to accounts that don't have changed the 
&gt; password yet, i.e. don't have the attribute specified by 
&gt; 'shadowlastchange' set?
All the entries in ou=people with 'shadowlastchange' ,and passwd module is the only one way provied to users to change their password.

P.S Wish i didn't misunderstand your comment.
</description>
   <pubDate>Thu, 29 Mar 2007 20:34:16 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/5056#t30896</link>
  </item>
  <item>
   <title>I have no idea how this could happen then. You have to track</title>
   <description>I have no idea how this could happen then. You have to track this further down in the code.</description>
   <pubDate>Sat, 07 Apr 2007 09:15:02 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/5056#t31188</link>
  </item>
  <item>
   <title>I add var_dump($this-&gt;_params); to line 247 and got the retu</title>
   <description>I add var_dump($this-&gt;_params); to line 247 and got the return message:

array(14) { [&quot;host&quot;]=&gt; string(13) &quot;localhost&quot; [&quot;sslhost&quot;]=&gt; string(0) &quot;&quot; [&quot;port&quot;]=&gt; int(389) [&quot;encryption&quot;]=&gt; string(4) &quot;ssha&quot; [&quot;show_encryption&quot;]=&gt; string(4) &quot;true&quot; [&quot;uid&quot;]=&gt; string(3) &quot;uid&quot; [&quot;basedn&quot;]=&gt; string(24) &quot;dc=my,dc=gov&quot; [&quot;admindn&quot;]=&gt; NULL [&quot;adminpw&quot;]=&gt; NULL [&quot;realm&quot;]=&gt; string(0) &quot;&quot; [&quot;tls&quot;]=&gt; bool(false) [&quot;attribute&quot;]=&gt; string(12) &quot;userPassword&quot; [&quot;shadowlastchange&quot;]=&gt; NULL [&quot;shadowmin&quot;]=&gt; NULL } 

As you can see both shadowlastchange &amp; shadowmin return NULL, and break this function.  </description>
   <pubDate>Fri, 13 Apr 2007 03:39:20 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/5056#t31525</link>
  </item>
  <item>
   <title>Uh, I should have noticed on the first glance. Of course it </title>
   <description>Uh, I should have noticed on the first glance. Of course it doesn't check or set the shadowLastChange and shadowMin attributes if you don't set the appropriate parameters in the backend configuration.</description>
   <pubDate>Wed, 18 Apr 2007 18:22:54 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/5056#t31865</link>
  </item>
  <item>
   <title>&gt; Uh, I should have noticed on the first glance. Of course i</title>
   <description>&gt; Uh, I should have noticed on the first glance. Of course it doesn't 
&gt; check or set the shadowLastChange and shadowMin attributes if you 
&gt; don't set the appropriate parameters in the backend configuration.
I don't see any detail scription about that  in backend.conf.dist ,can you give me a hint ?
</description>
   <pubDate>Thu, 03 May 2007 20:49:59 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/5056#t32583</link>
  </item>
  <item>
   <title>This patch should fix the problem.

David



</title>
   <description>This patch should fix the problem.

David



</description>
   <pubDate>Wed, 09 Jan 2008 02:47:24 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/5056#t40940</link>
  </item>
  <item>
   <title>Committed, but commented out by default.</title>
   <description>Committed, but commented out by default.</description>
   <pubDate>Wed, 09 Jan 2008 03:21:40 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/5056#t40943</link>
  </item>
  

 </channel>
</rss>
