equal
deleted
inserted
replaced
86 self._cache = {} |
86 self._cache = {} |
87 self._query_cache = TimedCache(self._cache_ttl) |
87 self._query_cache = TimedCache(self._cache_ttl) |
88 |
88 |
89 def init(self, activated, source_entity): |
89 def init(self, activated, source_entity): |
90 """method called by the repository once ready to handle request""" |
90 """method called by the repository once ready to handle request""" |
|
91 super(LDAPUserSource, self).init(activated, source_entity) |
91 if activated: |
92 if activated: |
92 self.info('ldap init') |
93 self.info('ldap init') |
93 self._entity_update(source_entity) |
|
94 # set minimum period of 5min 1s (the additional second is to |
94 # set minimum period of 5min 1s (the additional second is to |
95 # minimize resonnance effet) |
95 # minimize resonnance effet) |
96 if self.user_rev_attrs['email']: |
96 if self.user_rev_attrs['email']: |
97 self.repo.looping_task(max(301, self._interval), self.synchronize) |
97 self.repo.looping_task(max(301, self._interval), self.synchronize) |
98 self.repo.looping_task(self._cache_ttl // 10, |
98 self.repo.looping_task(self._cache_ttl // 10, |