Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-6074: How to clear the adcache even when the adclient is not running or not connected to the AD?

Centrify DirectControl ,  

14 January,16 at 05:20 PM

Applied to:
Centrify DirectControl 5.2.3+ on all OS platform

Questions:
How to clear the adcache even when the adclient is not running or not connected to the AD?

Answers:
Starting DirectControl 5.2.3 and newer version, ADFLUSH added with -y [--intended] option.  This flag should be used together with –f [--force] option if you really intend to flush adclient cache even when adclient is not running or not connected.

The usage is as follows: adflush -f -y

Options Explain
-f --force: This option is to remove adclient cache and force adclient to fetch everything from Active Directory again. However, in disconnected mode, removing the cache will result in no AD user able to login until adclient is connected to Active Directory again and the cache is rebuilt. Hence, starting from this release, if adflush command is issued in disconnected mode or when adclient is not running, an error message will be displayed: ‘Flush all caches will cause no AD user to be able to login.

-y --intended: This flag should be used together with –f if you really intend to flush adclient cache even when adclient is not running or not connected. Note: by doing this, no AD user is able to login again until the cache is created when adclient is up and connected next time.
IMPORTANT: By doing this, no AD user is able to login again until the cache is created when adclient is up and connected next time

For more information, please see Centrify Command Reference attached

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.