diff options
| author | Arthur de Jong <arthur@arthurdejong.org> | 2013-07-26 15:05:40 +0200 |
|---|---|---|
| committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-07-26 15:05:40 +0200 |
| commit | 7c85202ab49b005bf4a4fe5113ccaa9b25b584f9 (patch) | |
| tree | 56229ff26cd878176707d9672fe65148b6073c5a /pynslcd/search.py | |
| parent | d2e2e400e79c94c2e60f21ec61811dfe948924cc (diff) | |
| parent | e1b0399ee018d217cd50267cef03c28dfdb32fbf (diff) | |
Make cache invalidation more generic
This changes the nscd_invalidate option into a more generic
reconnect_invalidate and also allows clearing the nfsidmap cache.
Diffstat (limited to 'pynslcd/search.py')
| -rw-r--r-- | pynslcd/search.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pynslcd/search.py b/pynslcd/search.py index 3db6e9d..f8c82fb 100644 --- a/pynslcd/search.py +++ b/pynslcd/search.py @@ -55,9 +55,9 @@ class Connection(ldap.ldapobject.ReconnectLDAPObject): self.set_option(ldap.OPT_X_TLS, ldap.OPT_X_TLS_HARD) def reconnect_after_fail(self): - import nscd + import invalidator logging.info('connected to LDAP server %s', cfg.uri) - nscd.invalidate() + invalidator.invalidate() def search_s(self, *args, **kwargs): # wrapper function to keep the global server_error state |
