--- cacti-0.8.6b/user_admin.php 2004-11-29 20:25:47.639776040 -0600 +++ cacti-0.8.6b-new/user_admin.php 2004-11-29 21:10:28.811176032 -0600 @@ -119,6 +119,11 @@ $password = md5($_POST["password"]); } + /* check duplicate username */ + if (sizeof(db_fetch_row("select * from user_auth where realm = 0 and username = '" . $_POST["username"] . "' and id != '" . $_POST["id"] . "'"))) { + raise_message(12); + } + /* check to make sure the passwords match; if not error */ if ($_POST["password"] != $_POST["password_confirm"]) { raise_message(4); --- cacti-0.8.6b/include/config_arrays.php 2004-11-29 20:45:31.621783416 -0600 +++ cacti-0.8.6b-new/include/config_arrays.php 2004-11-29 20:26:15.657516696 -0600 @@ -46,6 +46,9 @@ 7 => array( "message" => 'XML parse error.', "type" => "error"), + 12 => array( + "message" => 'Username already in use.', + "type" => "error"), 15 => array( "message" => 'XML: Cacti version does not exist.', "type" => "error"),