Discussion:
Can not create new users/mailboxes - Pykolab Umlaute errors !
Matthias Busch
2017-10-04 09:49:26 UTC
Permalink
Hey,

Kolab 16 on Debian 8

Today I needed to add a new user. I use the kolab-webadmin for that.
There was no error. When the user tried to login to webmail, I got the
error that there is no mailbox.

kolab lm shows this to be true, the mailbox was not created. I tried to
create the user with kolab add-user, again, there is no mailbox.
(I also tried to create the mailbox by hand, which I may have done
incorrectly because it didddnt work as expected. But this shall not be
the issue here)

I looked through the logfiles and came upon the following error:


2017-10-04 11:36:03,505 pykolab.utils WARNING Could not translate
Xö***@xxxxxxxxxx.de using locale de_DE
2017-10-04 11:36:03,506 pykolab.auth ERROR An error occured using
_paged_search: UnicodeEncodeError('ascii',
u'(&(|(mail=x\***@xxxxxxxxxxx.de)(alias=x\***@xxxxxxxxx.de)(nsuniqueid=x\***@xxxxxxxx.de))(!(nsuniqueid=27711d01-601d11e4-afec87db-51920d94)))',
11, 12, 'ordinal not in range(128)')
2017-10-04 11:36:03,507 pykolab.auth ERROR Traceback (most recent call
last):
File
"/usr/lib/python2.7/dist-packages/pykolab/auth/ldap/__init__.py", line
3065, in _search
secondary_domains
File "<string>", line 10, in <module>
File
"/usr/lib/python2.7/dist-packages/pykolab/auth/ldap/__init__.py", line
2842, in _paged_search
callback(entry=_result_data)
File
"/usr/lib/python2.7/dist-packages/pykolab/auth/ldap/__init__.py", line
2676, in _synchronize_callback
eval("self._change_none_%s(entry, None)" % (entry['type']))
File "<string>", line 1, in <module>
File
"/usr/lib/python2.7/dist-packages/pykolab/auth/ldap/__init__.py", line
2186, in _change_none_user
entry_changes = self.recipient_policy(entry)
File
"/usr/lib/python2.7/dist-packages/pykolab/auth/ldap/__init__.py", line
971, in recipient_policy
results = self.find_recipient(_primary_mail, entry['id'])
File
"/usr/lib/python2.7/dist-packages/pykolab/auth/ldap/__init__.py", line
747, in find_recipient
attrsonly=True
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 870,
in search_ext_s
return
self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 812,
in _apply_method_s
return func(self,*args,**kwargs)
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)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in
position 11: ordinal not in range(128)

(I xxxx'ed the username and domain)

I have a user with an ö in his name. It is not in the uid or email
address (both use oe instead of ö)

Looking back the error was intruduced in Juli or August when I patched
the system.

Now, I could think that this problem is unrelated to me being unable to
create users. But its the best thing I have so far.
Additionally, my test system which does not throw this error lets me
create users with mailboxes

Is this problem known? is there something I can do? Is a fix announced?

Please help!

Thanks
Matthias
Jan Kowalsky
2017-10-13 11:34:07 UTC
Permalink
Hi Matthias,
Post by Matthias Busch
Hey,
Kolab 16 on Debian 8
Today I needed to add a new user. I use the kolab-webadmin for that.
There was no error. When the user tried to login to webmail, I got the
error that there is no mailbox.
kolab lm shows this to be true, the mailbox was not created. I tried to
create the user with kolab add-user, again, there is no mailbox.
(I also tried to create the mailbox by hand, which I may have done
incorrectly because it didddnt work as expected. But this shall not be
the issue here)
I have a user with an ö in his name. It is not in the uid or email
address (both use oe instead of ö)
Looking back the error was intruduced in Juli or August when I patched
the system.
Now, I could think that this problem is unrelated to me being unable to
create users. But its the best thing I have so far.
Additionally, my test system which does not throw this error lets me
create users with mailboxes
Is this problem known? is there something I can do? Is a fix announced?
Well there where several problems with Umlaute in the past for creating
renaming and deleting mailboxes in the past.

But this was always with umlaute in some folder names. Not in the Names
of People.

https://issues.kolab.org/show_bug.cgi?id=5361

For me it sometimes worked on command line to

export LANG=C

before executing the kolab command. But as told: it wasn't the problem
during adding user but renaming/deleting mailboxes. So maybe it's
unrelated. But perhaps the fixes proposed in the bug reports help to
find the right direction?

Regards
Ran

Loading...