https://dev.entrouvert.org/https://dev.entrouvert.org/favicon.ico?15861920342015-11-05T15:38:43ZRedmine Entr’ouvertAuthentic 2 - Bug #8885: authentic2 traceback when an LDAP is unreachable for synchronizationhttps://dev.entrouvert.org/issues/8885?journal_id=363592015-11-05T15:38:43ZBenjamin Dauvergne
<ul><li><strong>Fichier</strong> <a href="/attachments/8555">0001-ldap_backend-do-not-traceback-on-synchronization-fix.patch</a> <a class="icon-only icon-download" title="Télécharger" href="/attachments/download/8555/0001-ldap_backend-do-not-traceback-on-synchronization-fix.patch">0001-ldap_backend-do-not-traceback-on-synchronization-fix.patch</a> ajouté</li><li><strong>Patch proposed</strong> changé de <i>Non</i> à <i>Oui</i></li></ul><p>It prevents seeing this in cron mails:<br /><pre>
Traceback (most recent call last):
File "/usr/lib/authentic2/manage.py", line 21, in <module>
execute_from_command_line(sys.argv[:1] + argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/dist-packages/hobo/multitenant/management/commands/tenant_command.py", line 47, in run_from_argv
klass.run_from_argv(args)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 338, in execute
output = self.handle(*args, **options)
File "/usr/lib/python2.7/dist-packages/authentic2/management/commands/sync-ldap-users.py", line 14, in handle
for user in LDAPBackend.get_users():
File "/usr/lib/python2.7/dist-packages/authentic2/backends/ldap_backend.py", line 930, in get_users
users = conn.search_s(user_basedn, ldap.SCOPE_SUBTREE, user_filter, [])
AttributeError: 'NoneType' object has no attribute 'search_s'
run-parts: /etc/cron.hourly/authentic2-multitenant exited with return code 1
</pre></p> Authentic 2 - Bug #8885: authentic2 traceback when an LDAP is unreachable for synchronizationhttps://dev.entrouvert.org/issues/8885?journal_id=364262015-11-06T08:40:42ZBenjamin Dauvergne
<ul><li><strong>Priorité</strong> changé de <i>Normal</i> à <i>Haut</i></li></ul> Authentic 2 - Bug #8885: authentic2 traceback when an LDAP is unreachable for synchronizationhttps://dev.entrouvert.org/issues/8885?journal_id=364282015-11-06T08:43:50ZFrédéric Pétersfpeters@entrouvert.com
<ul></ul><p>fine by me.</p> Authentic 2 - Bug #8885: authentic2 traceback when an LDAP is unreachable for synchronizationhttps://dev.entrouvert.org/issues/8885?journal_id=364292015-11-06T08:50:04ZBenjamin Dauvergne
<ul><li><strong>Statut</strong> changé de <i>En cours</i> à <i>Résolu (à déployer)</i></li><li><strong>% réalisé</strong> changé de <i>0</i> à <i>100</i></li></ul><p>Appliqué par commit <a class="changeset" title="ldap_backend: do not traceback on synchronization (fixes #8885) If we cannot connect to the LDAP..." href="https://dev.entrouvert.org/projects/authentic/repository/authentic2/revisions/c0aa1fb8e1668d8919d6a8cb67db156d5b292972">authentic2|c0aa1fb8e1668d8919d6a8cb67db156d5b292972</a>.</p> Authentic 2 - Bug #8885: authentic2 traceback when an LDAP is unreachable for synchronizationhttps://dev.entrouvert.org/issues/8885?journal_id=429792016-02-23T11:59:49ZBenjamin Dauvergne
<ul><li><strong>Statut</strong> changé de <i>Résolu (à déployer)</i> à <i>Solution déployée</i></li></ul> Authentic 2 - Bug #8885: authentic2 traceback when an LDAP is unreachable for synchronizationhttps://dev.entrouvert.org/issues/8885?journal_id=931602017-12-06T14:32:12ZBenjamin Dauvergne
<ul><li><strong>Statut</strong> changé de <i>Solution déployée</i> à <i>Fermé</i></li></ul>