public void Write(BinaryWriter writer) { // Write user identification writer.Write(IdentifiedByUsername); // Write the username to configuration writer.Write(Username); // Write the security identifier to configuration writer.Write(SecurityID); // Write other settings Exists.Write(writer); Password.Write(writer); PasswordExpired.Write(writer); PasswordChangeDisabled.Write(writer); PasswordNeverExpires.Write(writer); AccountDisabled.Write(writer); AccountLockedOut.Write(writer); }
public Ticket JsonString(JObject json) { if (json != null) { bool ticketSolved = false; log.writeLog("*************************New request found begin of request**************************"); //Creates a new instance of ticket with json received from HTTPPOST Ticket ticket = new Ticket(json); log.writeLog(json.ToString()); log.writeLog("*******************************End of request****************************************"); //Starts procedures to resolve the ticket if (ticket != null) { //Start to check for dup files ( Win/Lx/Ux ) DuplicatedFile dupFile = new DuplicatedFile(); ticketSolved = dupFile.CheckDuplicate(ticket); if (ticketSolved == true) { log.writeLog("Ticket was solved"); } else { //Start to check for passwd expired PasswordExpired passwdExp = new PasswordExpired(); //passwdExp.CheckPassswd; if (ticketSolved == true) { log.writeLog("Ticket: " + ticket.IncidentId + " was solved"); } else { log.writeLog("Ticket: " + ticket.IncidentId + " was NOT solved"); } } return(ticket); } } return(null); }