title: DirectoryEntry CommitChanges() not Committing Changes?
body: <p>Before you outright close out this question as a duplicate, it's worth noting that the answer did not work.</p>
  
  <p>So here's what I've tried thus far:</p>
  
  <p>First attempt was to use .InvokeSet on the record:</p>
  
  <pre><code>adUser.InvokeSet("department", department);
  adUser.CommitChanges();
  </code></pre>
  
  <p>Second attempt was to follow the answer on <a href="https://stackoverflow.com/questions/2141372/calling-commitchanges-does-nothing-in-active-directory">Calling commitChanges() does nothing in Active Directory?</a> and try accessing the native object directly:</p>
  
  <pre><code>IADsTSUserEx nativeUser = (IADsTSUserEx)adUser.NativeObject;
  nativeUser.Department = department;
  adUser.CommitChanges();
  </code></pre>
  
  <p>Following up that with <code>IADsUser</code> instead.</p>
  
  <p>Finally, I just tried setting it from the Value property:</p>
  
  <pre><code>adUser.Properties["department"].Value = department;
  adUser.CommitChanges();
  </code></pre>
  
  <p>So I'm at a loss here. None of the above actually worked at saving changes. I have write access, and I'm not getting any exceptions. Am I just missing something, here? I'd like to think it's not a case of me trying to argue <a href="http://www.travisswicegood.com/2009/01/04/select-isn-t-broken/" rel="nofollow noreferrer" title="Select Isn&#39;t Broken">Select is Broken</a>...</p>
  
  <p><strong>EDIT: See answer below.</strong></p>