]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
Fix a small bug in lib/ldap/create_user.php3. Unset the mod array before adding any...
authorkkalev <kkalev>
Sun, 12 Jan 2003 11:15:03 +0000 (11:15 +0000)
committerkkalev <kkalev>
Sun, 12 Jan 2003 11:15:03 +0000 (11:15 +0000)
Changelog
lib/ldap/change_passwd.php3
lib/ldap/create_user.php3

index 11cfc3dcd5576ce11d65c90faa95a97f2cc07cce..ffefbe754079bcd36de9f85277efd5011d45a421 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -30,6 +30,7 @@ Ver 1.62:
 * In debug, output the sql queries in italic. Refer to enabling debugging in the FAQ
 * Don't include user_info.php3 in the user_test page.
 * Make things a little bit more simple in lib/ldap/change_attrs.php3
+* Fix a small bug in lib/ldap/create_user.php3. Unset the mod array before adding any values to it.
 Ver 1.61:
 * Add a string encoder for greek
 * If general_decode_normal_attributes is set then encode attributes in lib/ldap/change_info. In the near future
index e68d52614e1e9a2d8159f8f7dd7517031e817d1f..3fe0be9a3294d2fea02c95670d9f45882a9392d8 100644 (file)
@@ -12,7 +12,7 @@ require_once('../lib/ldap/functions.php3');
                                $passwd = da_encrypt($passwd);
                                $passwd = '{' . $config[general_encryption_method] . '}' . $passwd;
                                $mod[$attrmap['User-Password']] = $passwd;
-                               if ($config[ldap_debug] == 'true')
+                               if ($config[ldap_debug] == 'true'){
                                        print "<b>DEBUG(LDAP): ldap_mod_replace(): DN='$dn'</b><br>\n";
                                        print "<b>DEBUG(LDAP): ldap_mod_replace(): Data:";
                                        print_r($mod);
index 00856fe7fe4144d54133174f9a5a46ab7237feb4..dbc94c21d39f7d6b7db25259ade65a47cd85e9e6 100644 (file)
@@ -53,6 +53,7 @@ require_once('../lib/ldap/functions.php3');
                                        continue;
                                if ( $$attrmap["$key"] == '')
                                        continue;
+                               unset($mod);
                                $mod[$attrmap["$key"]] = $$attrmap["$key"];
 
                                if ($config[ldap_debug] == 'true'){