Hi there,

here I've been also been biten by that issue and patched my
smbldap-passwd as shown in the patch attached.

This issue is also known by the following bug-ID

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505914

and should have been patched by now, isn't it?


Best regards


        t++
--- smbldap-passwd.orig	2010-04-09 06:13:13.000000000 +0200
+++ smbldap-passwd	2010-04-09 06:16:52.000000000 +0200
@@ -274,13 +274,22 @@
 							]
 					    );
     } else {
-	$modify = $ldap_master->modify ( "$dn",
-					    changes => [
-							replace => [userPassword => "$hash_password"],
-							replace => [shadowLastChange => "$shadowLastChange"],
-							replace => [shadowMax => "$config{defaultMaxPasswordAge}"]
-							]
-					    );
+        if (defined($config{defaultMaxPasswordAge})) {
+            $modify = $ldap_master->modify ( "$dn",
+                                                changes => [
+                                                            replace => [userPassword => "$hash_password"],
+                                                            replace => [shadowLastChange => "$shadowLastChange"],
+                                                            replace => [shadowMax => "$config{defaultMaxPasswordAge}"]
+                                                            ]
+                                            );
+        } else {
+            $modify = $ldap_master->modify ( "$dn",
+                                                changes => [
+                                                            replace => [userPassword => "$hash_password"],
+                                                            replace => [shadowLastChange => "$shadowLastChange"],
+                                                            ]
+                                            );
+        }
     }
     $modify->code && warn "Failed to modify UNIX password: ", $modify->error ;
 }

Reply via email to