JezerM/web-greeter

IndexError: list index out of range

rda0 opened this issue · 0 comments

rda0 commented

Environment

  • OS: [e.g. Ubuntu 22.04]
  • web-greeter version: output of web-greeter --version

Bug description

Probably because there are no users with uid >= 1000 locally on the system. We use ldap with uids starting from 1001. Our /etc/login.defs:

UID_MIN                 500
UID_MAX                 999
#SYS_UID_MIN              100
#SYS_UID_MAX              999
GID_MIN                 500
GID_MAX                 999
#SYS_GID_MIN              100
#SYS_GID_MAX              999

Error log:

==> /var/log/lightdm/seat0-greeter.log <==
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/lib/web-greeter/__main__.py", line 118, in <module>
    browser.greeter = Greeter()
  File "/usr/lib/web-greeter/bridge/Greeter.py", line 110, in __init__
    self._determine_shared_data_directory_path()
  File "/usr/lib/web-greeter/bridge/Greeter.py", line 118, in _determine_shared_data_directory_path
    user = LightDMUsers.get_users()[0]
IndexError: list index out of range