Project

General

Profile

Bug #8159

sync-ldap-users emit tracebacks

Added by Benjamin Dauvergne over 5 years ago. Updated almost 5 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
03 Sep 2015
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:

Description

On meaux.dev.entrouvert.org:

root@meaux:/var/lib/authentic2-multitenant/tenants/authentic-meaux.dev.entrouvert.org# authentic2-multitenant-manage tenant_command sync-ldap-users
/usr/bin/sudo
Enter Tenant Domain ('?' to list): ?
[ 1] authentic-meaux.dev.entrouvert.org (schema authentic_meaux_dev_entrouvert_org)
Enter Tenant Domain ('?' to list): 1
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 34, in run_from_argv
    super(Command, self).run_from_argv(argv)
  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/hobo/multitenant/management/commands/tenant_command.py", line 40, in handle
    call_command(*args, **options)
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 115, in call_command
    return klass.execute(*args, **defaults)
  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 901, in get_users
    attrs = cls.get_ldap_attributes(block, conn, user_dn)
  File "/usr/lib/python2.7/dist-packages/authentic2/backends/ldap_backend.py", line 718, in get_ldap_attributes
    results = conn.search_s(dn, ldap.SCOPE_BASE, '(objectclass=*)', list(attributes))
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 552, in search_s
    return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 545, in search_ext_s
    msgid = self.search_ext(base,scope,filterstr,attrlist,attrsonly,serverctrls,clientctrls,timeout,sizelimit)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 541, in search_ext
    timeout,sizelimit,
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 99, in _ldap_call
    result = func(*args,**kwargs)
TypeError: must be string, not None

History

#1

Updated by Benjamin Dauvergne almost 5 years ago

  • Status changed from Nouveau to Fermé

I think it was fixed.

Also available in: Atom PDF