title: LDAP won't update if cached data exists
body: <p>We have an SELinux client that authenticates network users using LDAP connecting to an Active Directory server. Since our machines have to operate "untethered," we have to use nscd to cache group and passwd info.</p>
  
  <p>Here's the issue. If we change group information on the Active Directory server, then log in on the client, if a cache exists for that user, LDAP seems to ignore the server and only use the cached data. The only way we've been able to get an update is to invalidate the passwd cache.</p>
  
  <p>Significant portion of /etc/nsswitch.conf:</p>
  
  <pre>
      passwd: file ldap cache
      group:  file ldap cache
      shadow: file ldap cache
  </pre>
  
  <p>Thanks.</p>
  
  <p><b>Update:</b> Figured out running <code>strace getent passwd</code> that nscd cache gets checked before /etc/nsswitch.conf gets read, so the configuration of nss doesn't matter.</p>
  
  <p><b>Update 2:</b> Playing with nss_updatedb today to see if it will work. So far no joy, although <a href="https://help.ubuntu.com/community/PamCcredsHowto" rel="nofollow noreferrer">this howto</a> looks like exactly what we need to do.</p>