Ejemplo n.º 1
0
 protected override void InternalProcessRecord()
 {
     TaskLogger.LogEnter();
     base.DataSession.Save(this.DataObject);
     base.WriteVerbose(Strings.VerboseSettingPassword(this.DataObject.Id.ToString()));
     MailboxTaskHelper.SetMailboxPassword((IRecipientSession)base.DataSession, this.DataObject, null, new Task.ErrorLoggerDelegate(base.WriteError));
     this.DataObject = (ADUser)base.DataSession.Read <ADUser>(this.DataObject.Identity);
     this.DataObject[ADUserSchema.PasswordLastSetRaw] = new long?(-1L);
     this.DataObject.UserAccountControl = UserAccountControlFlags.NormalAccount;
     if (base.Fields.IsModified(SyncMailUserSchema.AccountDisabled))
     {
         SyncTaskHelper.SetExchangeAccountDisabled(this.DataObject, this.AccountDisabled);
     }
     base.InternalProcessRecord();
     TaskLogger.LogExit();
 }