diff -r a2ccbcbb08a6 -r 24bf6f181d0e server/sources/ldapuser.py --- a/server/sources/ldapuser.py Wed Dec 01 17:09:19 2010 +0100 +++ b/server/sources/ldapuser.py Wed Dec 01 17:11:35 2010 +0100 @@ -199,14 +199,15 @@ self._cache = {} self._query_cache = TimedCache(self._cache_ttl) - def init(self): + def init(self, activated, session=None): """method called by the repository once ready to handle request""" - self.info('ldap init') - # set minimum period of 5min 1s (the additional second is to minimize - # resonnance effet) - self.repo.looping_task(max(301, self._interval), self.synchronize) - self.repo.looping_task(self._cache_ttl // 10, - self._query_cache.clear_expired) + if activated: + self.info('ldap init') + # set minimum period of 5min 1s (the additional second is to + # minimize resonnance effet) + self.repo.looping_task(max(301, self._interval), self.synchronize) + self.repo.looping_task(self._cache_ttl // 10, + self._query_cache.clear_expired) def synchronize(self): """synchronize content known by this repository with content in the