//$validFrom=null, $validUntil=null, pareils
 //echo "Valider";
 //====Vérification de doublons====
 if (Guacamole_UserDAL::findByUsername($validUserName) == null) {
     //=====Insertion=====/ - OK
     $validInsertUser = Guacamole_UserDAL::insertOnDuplicate($newUserGuacamole);
     if ($validInsertUser != null) {
         $newLog->setLevel("INFO");
         $newLog->setMsg("Ajout de l'utilisateur reussi dans la base guacamole_db! (id:" . $validInsertUser . ")");
         $newLog->setDateTime(date('Y/m/d G:i:s'));
         $validTableLog = Table_logDAL::insertOnDuplicate($newLog);
         //echo "Ajout de l'utilisateur reussi dans la base guacamole_db! (id:" . $validInsertUser . ")";
         //Paramètres des permissions de l'utilisateur
         $guacamoleUserPermission = new Guacamole_User_Permission();
         $guacamoleUserPermission->setUser($validInsertUser);
         $guacamoleUserPermission->setAffectedUser($validInsertUser);
         $guacamoleUserPermission->setPermission("READ");
         $valid = Guacamole_User_PermissionDAL::insertOnDuplicate($guacamoleUserPermission);
         $guacamoleUserPermission->setPermission("UPDATE");
         $valid = Guacamole_User_PermissionDAL::insertOnDuplicate($guacamoleUserPermission);
         $guacamoleUserPermission->setPermission("DELETE");
         $valid = Guacamole_User_PermissionDAL::insertOnDuplicate($guacamoleUserPermission);
         $guacamoleUserPermission->setPermission("ADMINISTER");
         $valid = Guacamole_User_PermissionDAL::insertOnDuplicate($guacamoleUserPermission);
         $newLog->setLevel("INFO");
         $newLog->setMsg("Ajout des permissions réussis pour l'utilisateur avec l'id:" . $validInsertUser . ")");
         $newLog->setDateTime(date('Y/m/d G:i:s'));
         $validTableLog = Table_logDAL::insertOnDuplicate($newLog);
         $message = "ok";
     } else {
         $newLog->setLevel("ERROR");