kolab list-users does not list users
Alvin
info at alvin.be
Wed Jul 1 13:04:59 CEST 2015
On Friday 26 June 2015 18:16:27 Timotheus Pokorra wrote:
> > # kolab list-users
> >
> > Traceback [...]
>
> I cannot reproduce that.
> Please try:
> LANG=C kolab -d 8 list-users
>
> it should show:
> 2015-06-26 18:15:13,609 pykolab.wap_client DEBUG [3426]: Requesting
> '/kolab-webadmin/api/users.list' with params (None, '{}')
> 2015-06-26 18:15:13,753 pykolab.wap_client DEBUG [3426]: Got response:
> '{"status":"OK","result": [...]
This is indeed not related to the possibility of adding external users, but it
would be nice to get it working.
Output of 'LANG=C kolab -d 8 list-users' attached, and password removed.
-------------- next part --------------
[root at mail ~]# LANG=C kolab -d 8 list-users
2015-07-01 13:01:22,426 pykolab.conf DEBUG [12174]: Setting kolab_default_locale to 'en_US' (from defaults)
2015-07-01 13:01:22,427 pykolab.conf DEBUG [12174]: Setting mail_attributes to ['mail', 'alias'] (from defaults)
2015-07-01 13:01:22,427 pykolab.conf DEBUG [12174]: Setting mailserver_attribute to 'mailhost' (from defaults)
2015-07-01 13:01:22,427 pykolab.conf DEBUG [12174]: Setting loglevel to 50 (from defaults)
2015-07-01 13:01:22,427 pykolab.conf DEBUG [12174]: Setting imap_virtual_domains to 'userid' (from defaults)
2015-07-01 13:01:22,428 pykolab.conf DEBUG [12174]: Setting cyrus_annotations_retry_interval to 1 (from defaults)
2015-07-01 13:01:22,428 pykolab.conf DEBUG [12174]: Setting ldap_unique_attribute to 'nsuniqueid' (from defaults)
2015-07-01 13:01:22,428 pykolab.conf DEBUG [12174]: Setting kolab_domain_sync_interval to 600 (from defaults)
2015-07-01 13:01:22,428 pykolab.conf DEBUG [12174]: Setting wallace_resource_calendar_expire_days to 100 (from defaults)
2015-07-01 13:01:22,429 pykolab.conf DEBUG [12174]: Setting address_search_attrs to ['mail', 'alias'] (from defaults)
2015-07-01 13:01:22,429 pykolab.conf DEBUG [12174]: Setting config_file to '/etc/kolab/kolab.conf' (from the default values for CLI options)
2015-07-01 13:01:22,429 pykolab.conf DEBUG [12174]: Setting loglevel to 'CRITICAL' (from the default values for CLI options)
2015-07-01 13:01:22,429 pykolab.conf DEBUG [12174]: Setting answer_yes to False (from the default values for CLI options)
2015-07-01 13:01:22,429 pykolab.conf DEBUG [12174]: Setting quiet to False (from the default values for CLI options)
2015-07-01 13:01:22,429 pykolab.conf DEBUG [12174]: Setting debuglevel to 0 (from the default values for CLI options)
2015-07-01 13:01:22,430 pykolab.conf DEBUG [12174]: Setting logfile to '/var/log/kolab/pykolab.log' (from the default values for CLI options)
2015-07-01 13:01:22,430 pykolab.conf DEBUG [12174]: Setting options from configuration file
2015-07-01 13:01:22,430 pykolab.conf DEBUG [12174]: Reading configuration file /etc/kolab/kolab.conf
2015-07-01 13:01:22,435 pykolab.conf DEBUG [12174]: Setting config_file to '/etc/kolab/kolab.conf' (from CLI, verified)
2015-07-01 13:01:22,435 pykolab.conf DEBUG [12174]: Setting loglevel to 'CRITICAL' (from CLI, not checked)
2015-07-01 13:01:22,435 pykolab.conf DEBUG [12174]: Setting answer_yes to False (from CLI, not checked)
2015-07-01 13:01:22,435 pykolab.conf DEBUG [12174]: Setting quiet to False (from CLI, not checked)
2015-07-01 13:01:22,436 pykolab.conf DEBUG [12174]: Setting debuglevel to 8 (from CLI, verified)
2015-07-01 13:01:22,436 pykolab.conf DEBUG [12174]: Setting logfile to '/var/log/kolab/pykolab.log' (from CLI, not checked)
2015-07-01 13:01:22,452 pykolab.conf WARNING Option kolab_wap/api_url does not exist in config file /etc/kolab/kolab.conf, pulling from defaults
2015-07-01 13:01:22,452 pykolab.conf WARNING Option does not exist in defaults.
2015-07-01 13:01:22,455 pykolab.wap_client DEBUG [12174]: Requesting '/kolab-webadmin/api//system.authenticate' with params (None, '{"username": "cn=Directory Manager", "domain": "flin.be", "password": "********"}')
2015-07-01 13:01:22,457 pykolab.wap_client DEBUG [12174]: Got response: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>301 Moved Permanently</title>\n</head><body>\n<h1>Moved Permanently</h1>\n<p>The document has moved <a href="https://localhost/kolab-webadmin/api//system.authenticate">here</a>.</p>\n</body></html>\n'
2015-07-01 13:01:22,457 pykolab.wap_client ERROR Response data is not JSON
Traceback (most recent call last):
File "/usr/sbin/kolab", line 39, in <module>
kolab = Cli()
File "/usr/lib/python2.7/site-packages/pykolab/cli/__init__.py", line 69, in __init__
commands.execute('_'.join(to_execute))
File "/usr/lib/python2.7/site-packages/pykolab/cli/commands.py", line 138, in execute
commands[cmd_name]['function'](conf.cli_args, kw)
File "/usr/lib/python2.7/site-packages/pykolab/cli/cmd_list_users.py", line 36, in execute
wap_client.authenticate(username=conf.get("ldap", "bind_dn"), password=conf.get("ldap", "bind_pw"))
File "/usr/lib/python2.7/site-packages/pykolab/wap_client/__init__.py", line 68, in authenticate
response = request('POST', "system.authenticate", post=post)
File "/usr/lib/python2.7/site-packages/pykolab/wap_client/__init__.py", line 375, in request
response_data = request_raw(method, api_uri, get, post, headers)
File "/usr/lib/python2.7/site-packages/pykolab/wap_client/__init__.py", line 415, in request_raw
return response_data
UnboundLocalError: local variable 'response_data' referenced before assignment
More information about the users
mailing list