<?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>smbldap: error changing password</title> 
  <pubDate>Fri, 10 Apr 2026 04:38:49 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8192</link> 
  <atom:link rel="self" type="application/rss+xml" title="smbldap: error changing password" href="https://bugs.horde.org/ticket/8192/rss" /> 
  <description>smbldap: error changing password</description> 
 
   
   
  <item> 
   <title>Every time I try to change password after having configured </title> 
   <description>Every time I try to change password after having configured the smbldap backend I get this message from Passwd:

    * ErrorFailure in changing password for Account Economia: Insufficient access



and these php warnings:

Warning: Missing argument 2 for Passwd_Driver_smbldap::_lookupdn(), called in /var/www/horde/passwd/lib/Driver/ldap.php on line 145 and defined in /var/www/horde/passwd/lib/Driver/smbldap.php on line 141



Notice: Undefined variable: passw in /var/www/horde/passwd/lib/Driver/smbldap.php on line 151



Warning: ldap_mod_replace() [function.ldap-mod-replace]: Modify: Insufficient access in /var/www/horde/passwd/lib/Driver/ldap.php on line 201



Warning: Cannot modify header information - headers already sent by (output started at /var/www/horde/passwd/lib/Driver/smbldap.php:141) in /var/www/horde/passwd/templates/common-header.inc on line 4



Warning: Cannot modify header information - headers already sent by (output started at /var/www/horde/passwd/lib/Driver/smbldap.php:141) in /var/www/horde/passwd/templates/common-header.inc on line 5



This is what I have in passwd backends.php:



$backends[&#039;smbldap&#039;] = array(

    &#039;name&#039; =&gt; &#039;Account My Domain&#039;,

    &#039;preferred&#039; =&gt; &#039;www.example.com&#039;,

    &#039;password policy&#039; =&gt; array(

        &#039;minLength&#039; =&gt; 3,

        &#039;maxLength&#039; =&gt; 32

    ),

    &#039;driver&#039; =&gt; &#039;smbldap&#039;,

    &#039;params&#039; =&gt; array(

        &#039;host&#039; =&gt; &#039;ldap.my.domain.it&#039;,

        &#039;port&#039; =&gt; 389,

        &#039;basedn&#039; =&gt; &#039;ou=People,dc=my,dc=domain,dc=it&#039;,

        &#039;uid&#039; =&gt; &#039;uid&#039;,

        // This will be appended to the username when looking for the userdn.

        &#039;realm&#039; =&gt; &#039;&#039;,

        &#039;encryption&#039; =&gt; &#039;crypt&#039;,

        // Make sure the host == cn in the server certificate.

        &#039;tls&#039; =&gt; false,

        // If any of the following attributes are commented out, they

        // won&#039;t be set on the LDAP server.

        &#039;lm_attribute&#039; =&gt; &#039;sambaLMPassword&#039;,

        &#039;nt_attribute&#039; =&gt; &#039;sambaNTPassword&#039;,

//        &#039;pw_set_attribute&#039; =&gt; &#039;sambaPwdLastSet&#039;,

//        &#039;pw_expire_attribute&#039; =&gt; &#039;sambaPwdMustChange&#039;,

         // The number of days until samba passwords expire. If this

         // is commented out, passwords will never expire.

//        &#039;pw_expire_time&#039; =&gt; 180,

    )

);</description> 
   <pubDate>Tue, 14 Apr 2009 13:40:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8192#t53649</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/passwd/docs/CHANGES?rt=horde&amp;r1=1.111&amp;r2=1.112&amp;ty=u
http://cvs.horde.org/diff.php/passwd/lib/Driver/ldap.php?rt=horde&amp;r1=1.59&amp;r2=1.60&amp;ty=u
http://cvs.horde.org/diff.php/passwd/lib/Driver/smbldap.php?rt=horde&amp;r1=1.20&amp;r2=1.21&amp;ty=u</description> 
   <pubDate>Tue, 18 Aug 2009 12:22:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8192#t55348</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/passwd/docs/CHANGES?rt=horde&amp;r1=1.79.2.32&amp;r2=1.79.2.33&amp;ty=u
http://cvs.horde.org/diff.php/passwd/lib/Driver/ldap.php?rt=horde&amp;r1=1.41.2.9&amp;r2=1.41.2.10&amp;ty=u
http://cvs.horde.org/diff.php/passwd/lib/Driver/smbldap.php?rt=horde&amp;r1=1.7.2.5&amp;r2=1.7.2.6&amp;ty=u</description> 
   <pubDate>Tue, 18 Aug 2009 12:27:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8192#t55349</link> 
  </item> 
   
  <item> 
   <title>Please try what I committed.</title> 
   <description>Please try what I committed.</description> 
   <pubDate>Tue, 18 Aug 2009 12:27:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8192#t55351</link> 
  </item> 
   
  <item> 
   <title>&gt; Please try what I committed.

I tried the FRAMEWORK_3 bran</title> 
   <description>&gt; Please try what I committed.

I tried the FRAMEWORK_3 branch: it still does not work but some warnings are gone:



same error message:

* ErrorFailure in changing password for Account Economia: Insufficient access





php warnings:

Warning: ldap_mod_replace() [function.ldap-mod-replace]: Modify: Insufficient access in /var/www/horde/passwd/lib/Driver/ldap.php on line 209



Warning: Cannot modify header information - headers already sent by (output started at /var/www/horde/passwd/lib/Driver/ldap.php:209) in /var/www/horde/passwd/templates/common-header.inc on line 4



Warning: Cannot modify header information - headers already sent by (output started at /var/www/horde/passwd/lib/Driver/ldap.php:209) in /var/www/horde/passwd/templates/common-header.inc on line 5</description> 
   <pubDate>Wed, 19 Aug 2009 08:17:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8192#t55410</link> 
  </item> 
   
  <item> 
   <title>Well, these are at least no errors from Horde anymore. It&#039;s </title> 
   <description>Well, these are at least no errors from Horde anymore. It&#039;s exactly what the error message says: you don&#039;t have sufficient permissions to update the LDAP attributes.</description> 
   <pubDate>Wed, 19 Aug 2009 08:40:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8192#t55411</link> 
  </item> 
   
  <item> 
   <title>&gt; Well, these are at least no errors from Horde anymore. It&#039;</title> 
   <description>&gt; Well, these are at least no errors from Horde anymore. It&#039;s exactly 

&gt; what the error message says: you don&#039;t have sufficient permissions to 

&gt; update the LDAP attributes.



That&#039;s really strange, because with passwd 3.0.1 and the same configuration it&#039;s working fine.</description> 
   <pubDate>Wed, 19 Aug 2009 10:10:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8192#t55415</link> 
  </item> 
   
  <item> 
   <title>What *is* your configuration actually?

And can you try to d</title> 
   <description>What *is* your configuration actually?

And can you try to debug this on your own? Maybe the binding doesn&#039;t work the same like in Passwd 3.0.</description> 
   <pubDate>Wed, 19 Aug 2009 10:41:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8192#t55416</link> 
  </item> 
   
  <item> 
   <title>OK, I found the problem: passwd 3.0.1 inside ldap.php try to</title> 
   <description>OK, I found the problem: passwd 3.0.1 inside ldap.php try to change only the &quot;userPassword&quot; ldap attribute when using smbldap backend.



With 3.1.2 it also try to update the &quot;shadowLastChange&quot; ldap attribute which I was denying to self users.



With 3.1.2 is possible to disable the &quot;shadowLastChange&quot; attribute but only for the ldap backend, not for the smbldap.



To fix this what about merging smbldap backend inside the ldap one, where the smb attributes are enabled only if they are uncommented?</description> 
   <pubDate>Wed, 19 Aug 2009 14:31:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8192#t55423</link> 
  </item> 
   
  <item> 
   <title>Why would you want to disable resetting of the shadowlastcha</title> 
   <description>Why would you want to disable resetting of the shadowlastchange attribute, if you use it. Or asked differently: why do you have shadowlastchange attributes if you don&#039;t use them?</description> 
   <pubDate>Wed, 19 Aug 2009 21:03:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8192#t55439</link> 
  </item> 
   
  <item> 
   <title>&gt; Why would you want to disable resetting of the shadowlastc</title> 
   <description>&gt; Why would you want to disable resetting of the shadowlastchange 

&gt; attribute, if you use it. Or asked differently: why do you have 

&gt; shadowlastchange attributes if you don&#039;t use them?



Well, yes, I granted write to it only to the admin user, when changing password with its privilege. It make sense to enable write to it to self users.</description> 
   <pubDate>Thu, 20 Aug 2009 09:50:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8192#t55458</link> 
  </item> 
   
  <item> 
   <title>Okay, I consider this bug closed then.</title> 
   <description>Okay, I consider this bug closed then.</description> 
   <pubDate>Thu, 20 Aug 2009 15:15:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8192#t55467</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
