Debian + Error during installation

Hi Stefan,

there might be a problem with the referral chasing.
The search for the user also returns the Config partion etc…

You can work around like this:
Please use no the top level base DN like “dc=yourdomain,dc=tld”, but
rather a subdir like:

cn=users,dc=yourdomain,dc=tld.

Then it works out fine.

Kind regards
CorneliusAm 01.03.2015 um 12:30 schrieb Cornelius Kölbel:

Good news, everybody.

I can reproduce the problem…

Looking into it.

Kind regards
Cornelius

Am 01.03.2015 um 11:47 schrieb Stefan Steuer:

I used the default ldap-filter from your example (active directory)

On Sunday, March 1, 2015 at 12:10:35 AM UTC+1, Cornelius Kölbel wrote:

This probably is a misconfiguration in your LDAP resolver.

What does your LDAP Resolver settings look like?

What is your login attribute?
Your Search FIlter and User Filter?

This part of the code takes your searchfilter and constructs an
ldap filter like this:

    (&(......)(<LoginAtribute>=s.steuer))

you might want to check with ldaputils (ldapsearch), which
conflicting object are found.

Kind regards
Cornelius

Am 28.02.2015 um 21:01 schrieb Stefan Steuer:
Next bug is that when I want to use the ldap-resolver and enroll
a token I'll get the following error.
Found more than one object for Loginname u's.steuer'

privacylog:

[2015-02-28
21:00:03,142][25486][140692787885824][WARNING][privacyidea.lib.config:451]
unable to load resolver module : 'resolvers.SCIMIdResolver'
(ImportError('cannot import name getResolverClass',))
[2015-02-28
21:00:03,263][25486][140692787885824][ERROR][privacyidea.app:1423]
Exception on /token/init [POST]
Traceback (most recent call last):
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/api/lib/prepolicy.py",
line 79, in policy_wrapper
    action=self.action)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/api/lib/prepolicy.py",
line 167, in check_max_token_realm
    user_object = get_user_from_param(params)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/user.py",
line 403, in get_user_from_param
    user_object = User(login=username, realm=realm)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/log.py",
line 101, in log_wrapper
    f_result = func(*args, **kwds)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/user.py",
line 87, in __init__
    self.get_resolvers()
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/user.py",
line 172, in get_resolvers
    uid = y.getUserId(self.login)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/resolvers/LDAPIdResolver.py",
line 241, in getUserId
    LoginName)
Exception: Found more than one object for Loginname u's.steuer'
 
-- 
You received this message because you are subscribed to the
Google Groups "privacyidea" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to privacyidea...@googlegroups.com <javascript:>.
To post to this group, send email to priva...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/6e4e906e-05c2-44e3-b908-612e55663023%40googlegroups.com
<https://groups.google.com/d/msgid/privacyidea/6e4e906e-05c2-44e3-b908-612e55663023%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to privacyidea+unsubscribe@googlegroups.com
mailto:privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com
mailto:privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/70f4d765-c57c-4b39-9dcf-0aefb62b8faf%40googlegroups.com
https://groups.google.com/d/msgid/privacyidea/70f4d765-c57c-4b39-9dcf-0aefb62b8faf%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com
mailto:privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com
mailto:privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/54F2F858.6020308%40privacyidea.org
https://groups.google.com/d/msgid/privacyidea/54F2F858.6020308%40privacyidea.org?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

I added an issue for that:
Issues · privacyidea/privacyidea · GitHub 01.03.2015 um 12:35 schrieb Cornelius Kölbel:

Hi Stefan,

there might be a problem with the referral chasing.
The search for the user also returns the Config partion etc…

You can work around like this:
Please use no the top level base DN like “dc=yourdomain,dc=tld”, but
rather a subdir like:

cn=users,dc=yourdomain,dc=tld.

Then it works out fine.

Kind regards
Cornelius

Am 01.03.2015 um 12:30 schrieb Cornelius Kölbel:

Good news, everybody.

I can reproduce the problem…

Looking into it.

Kind regards
Cornelius

Am 01.03.2015 um 11:47 schrieb Stefan Steuer:

I used the default ldap-filter from your example (active directory)

On Sunday, March 1, 2015 at 12:10:35 AM UTC+1, Cornelius Kölbel wrote:

This probably is a misconfiguration in your LDAP resolver.

What does your LDAP Resolver settings look like?

What is your login attribute?
Your Search FIlter and User Filter?

This part of the code takes your searchfilter and constructs an
ldap filter like this:

    (&(......)(<LoginAtribute>=s.steuer))

you might want to check with ldaputils (ldapsearch), which
conflicting object are found.

Kind regards
Cornelius

Am 28.02.2015 um 21:01 schrieb Stefan Steuer:
Next bug is that when I want to use the ldap-resolver and
enroll a token I'll get the following error.
Found more than one object for Loginname u's.steuer'

privacylog:

[2015-02-28
21:00:03,142][25486][140692787885824][WARNING][privacyidea.lib.config:451]
unable to load resolver module : 'resolvers.SCIMIdResolver'
(ImportError('cannot import name getResolverClass',))
[2015-02-28
21:00:03,263][25486][140692787885824][ERROR][privacyidea.app:1423]
Exception on /token/init [POST]
Traceback (most recent call last):
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/api/lib/prepolicy.py",
line 79, in policy_wrapper
    action=self.action)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/api/lib/prepolicy.py",
line 167, in check_max_token_realm
    user_object = get_user_from_param(params)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/user.py",
line 403, in get_user_from_param
    user_object = User(login=username, realm=realm)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/log.py",
line 101, in log_wrapper
    f_result = func(*args, **kwds)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/user.py",
line 87, in __init__
    self.get_resolvers()
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/user.py",
line 172, in get_resolvers
    uid = y.getUserId(self.login)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/resolvers/LDAPIdResolver.py",
line 241, in getUserId
    LoginName)
Exception: Found more than one object for Loginname u's.steuer'
 
-- 
You received this message because you are subscribed to the
Google Groups "privacyidea" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to privacyidea...@googlegroups.com <javascript:>.
To post to this group, send email to priva...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/6e4e906e-05c2-44e3-b908-612e55663023%40googlegroups.com
<https://groups.google.com/d/msgid/privacyidea/6e4e906e-05c2-44e3-b908-612e55663023%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to privacyidea+unsubscribe@googlegroups.com
mailto:privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com
mailto:privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/70f4d765-c57c-4b39-9dcf-0aefb62b8faf%40googlegroups.com
https://groups.google.com/d/msgid/privacyidea/70f4d765-c57c-4b39-9dcf-0aefb62b8faf%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to privacyidea+unsubscribe@googlegroups.com
mailto:privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com
mailto:privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/54F2F858.6020308%40privacyidea.org
https://groups.google.com/d/msgid/privacyidea/54F2F858.6020308%40privacyidea.org?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com
mailto:privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com
mailto:privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/54F2F998.7070507%40privacyidea.org
https://groups.google.com/d/msgid/privacyidea/54F2F998.7070507%40privacyidea.org?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

Hi,
no - I just need some time, to look into it :wink:

Kind regards
CorneliusAm 01.03.2015 um 19:00 schrieb Stefan Steuer:

Do you need some other informations?

You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com
mailto:privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com
mailto:privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/46a2d097-f318-4310-bc7e-58d4f76a349c%40googlegroups.com
https://groups.google.com/d/msgid/privacyidea/46a2d097-f318-4310-bc7e-58d4f76a349c%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

I used the default ldap-filter from your example (active directory)On Sunday, March 1, 2015 at 12:10:35 AM UTC+1, Cornelius Kölbel wrote:

This probably is a misconfiguration in your LDAP resolver.

What does your LDAP Resolver settings look like?

What is your login attribute?
Your Search FIlter and User Filter?

This part of the code takes your searchfilter and constructs an ldap
filter like this:

(&(......)(<LoginAtribute>=s.steuer))

you might want to check with ldaputils (ldapsearch), which conflicting
object are found.

Kind regards
Cornelius

Am 28.02.2015 um 21:01 schrieb Stefan Steuer:

Next bug is that when I want to use the ldap-resolver and enroll a token
I’ll get the following error.
Found more than one object for Loginname u’s.steuer’

privacylog:

[2015-02-28
21:00:03,142][25486][140692787885824][WARNING][privacyidea.lib.config:451]
unable to load resolver module : ‘resolvers.SCIMIdResolver’
(ImportError(‘cannot import name getResolverClass’,))
[2015-02-28
21:00:03,263][25486][140692787885824][ERROR][privacyidea.app:1423]
Exception on /token/init [POST]
Traceback (most recent call last):
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py”,
line 1817, in wsgi_app
response = self.full_dispatch_request()
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py”,
line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py”,
line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py”,
line 1475, in full_dispatch_request
rv = self.dispatch_request()
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py”,
line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/api/lib/prepolicy.py”,
line 79, in policy_wrapper
action=self.action)
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/api/lib/prepolicy.py”,
line 167, in check_max_token_realm
user_object = get_user_from_param(params)
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/user.py”,
line 403, in get_user_from_param
user_object = User(login=username, realm=realm)
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/log.py”,
line 101, in log_wrapper
f_result = func(*args, **kwds)
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/user.py”,
line 87, in init
self.get_resolvers()
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/user.py”,
line 172, in get_resolvers
uid = y.getUserId(self.login)
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/resolvers/LDAPIdResolver.py”,
line 241, in getUserId
LoginName)
Exception: Found more than one object for Loginname u’s.steuer’


You received this message because you are subscribed to the Google Groups
“privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to privacyidea...@googlegroups.com <javascript:>.
To post to this group, send email to priva...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/6e4e906e-05c2-44e3-b908-612e55663023%40googlegroups.com
https://groups.google.com/d/msgid/privacyidea/6e4e906e-05c2-44e3-b908-612e55663023%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Hi Stefan,

encodings.

I promise to buy this T-Shirt

 "Schei[] Encoding"

at the next opportunity!

Do you have the privacyidea.log file, which will give me a clue, were it
bailed out.

THanks a lot and kind regards
CorneliusAm 28.02.2015 um 20:17 schrieb Stefan Steuer:

Dear Cornelius,
now I installed privacyidea without any errors in my “live environment” :slight_smile:
ldap works fine

But :wink:

when I try to get the user list with the mysql-resolver I’ll get the
following error code.
OTRS 4 use another codec in the mysql db.

‘utf8’ codec can’t decode byte 0xfc in position 1: invalid start byte

You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com
mailto:privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com
mailto:privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/7b3b6f78-6171-4756-9032-2fd967867e47%40googlegroups.com
https://groups.google.com/d/msgid/privacyidea/7b3b6f78-6171-4756-9032-2fd967867e47%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

Good news, everybody.

I can reproduce the problem…

Looking into it.

Kind regards
CorneliusAm 01.03.2015 um 11:47 schrieb Stefan Steuer:

I used the default ldap-filter from your example (active directory)

On Sunday, March 1, 2015 at 12:10:35 AM UTC+1, Cornelius Kölbel wrote:

This probably is a misconfiguration in your LDAP resolver.

What does your LDAP Resolver settings look like?

What is your login attribute?
Your Search FIlter and User Filter?

This part of the code takes your searchfilter and constructs an
ldap filter like this:

    (&(......)(<LoginAtribute>=s.steuer))

you might want to check with ldaputils (ldapsearch), which
conflicting object are found.

Kind regards
Cornelius

Am 28.02.2015 um 21:01 schrieb Stefan Steuer:
Next bug is that when I want to use the ldap-resolver and enroll
a token I'll get the following error.
Found more than one object for Loginname u's.steuer'

privacylog:

[2015-02-28
21:00:03,142][25486][140692787885824][WARNING][privacyidea.lib.config:451]
unable to load resolver module : 'resolvers.SCIMIdResolver'
(ImportError('cannot import name getResolverClass',))
[2015-02-28
21:00:03,263][25486][140692787885824][ERROR][privacyidea.app:1423] Exception
on /token/init [POST]
Traceback (most recent call last):
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/api/lib/prepolicy.py",
line 79, in policy_wrapper
    action=self.action)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/api/lib/prepolicy.py",
line 167, in check_max_token_realm
    user_object = get_user_from_param(params)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/user.py",
line 403, in get_user_from_param
    user_object = User(login=username, realm=realm)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/log.py",
line 101, in log_wrapper
    f_result = func(*args, **kwds)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/user.py",
line 87, in __init__
    self.get_resolvers()
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/user.py",
line 172, in get_resolvers
    uid = y.getUserId(self.login)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/lib/resolvers/LDAPIdResolver.py",
line 241, in getUserId
    LoginName)
Exception: Found more than one object for Loginname u's.steuer'
 
-- 
You received this message because you are subscribed to the
Google Groups "privacyidea" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to privacyidea...@googlegroups.com <javascript:>.
To post to this group, send email to priva...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/6e4e906e-05c2-44e3-b908-612e55663023%40googlegroups.com
<https://groups.google.com/d/msgid/privacyidea/6e4e906e-05c2-44e3-b908-612e55663023%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com
mailto:privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com
mailto:privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/70f4d765-c57c-4b39-9dcf-0aefb62b8faf%40googlegroups.com
https://groups.google.com/d/msgid/privacyidea/70f4d765-c57c-4b39-9dcf-0aefb62b8faf%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

Do you need some other informations?

Hi Stefan,

the exception occurs after privacyIDEA has handled the request and the
result is about to be sent to the browser.
The “return jsonify(res)” is the last statement in the request handling.
Jsonify is a third party module.
So there is something strange with the input “res” to it.
Something is starting with the letter “ü”.

A) Can you give me some more information about:
What database field contains the “ü” and what are you doing at the
moment. Just listing the users?
As many information you can provide of your installation, the better.

B) Can you turn on debug level and try again?
In /etc/privacyida/pi.cfg you can set:

PI_LOGLEVEL = 10

C) I could send you a development/debug-package, that creates more log
output, i.e. the “res” before it enters the jsonify, if you would be
happy with that.

Kind regards
CorneliusAm 01.03.2015 um 13:16 schrieb Stefan Steuer:

return jsonify(res)

OK great - so please can create a manual how I can update the files?

btw:
What do you think is safer?
LDAPS query with privacyIDEA or mySQL DB with privacyIDEA? Or LDAP-S
(password policy at the domain controller) while auth. with OTRS (without
privacyIDEA)On Monday, March 2, 2015 at 2:43:33 PM UTC+1, Cornelius Kölbel wrote:

Hi Stefan,

thanks a lot for the patience.

I had to do some minor fixes. If a decoding error occurs, not the whole
user list is missing now, but only the value that could not be decoded.
Interesting enough, I need to set

Database Encoding to “latin1”

in the sql resolver. Although the database is utf8_general_ci…

I will upload a verion 2.1dev2 shortly. (As the deb-package is not based
on 2.0)

Kind regards
Cornelius

Am 02.03.2015 um 10:22 schrieb Stefan Steuer:

Dear Cornelius,
I found some “ü” in the name of the otrs-agents column. But nothin starts
with a “ü”.

I think the problem is that otrs is utf8_general_ci ( Storage-Engine
(InnoDB))

Error log with pi_loglevel 10

[2015-03-02
10:21:10,139][22040][140451446462208][WARNING][privacyidea.lib.config:451]
unable to load resolver module : ‘resolvers.SCIMIdResolver’
(ImportError(‘cannot import name getResolverClass’,))
[2015-03-02
10:21:10,506][22040][140451446462208][WARNING][privacyidea.lib.config:451]
unable to load resolver module : ‘resolvers.SCIMIdResolver’
(ImportError(‘cannot import name getResolverClass’,))
[2015-03-02
10:21:10,806][22040][140451555567360][WARNING][privacyidea.lib.config:451]
unable to load resolver module : ‘resolvers.SCIMIdResolver’
(ImportError(‘cannot import name getResolverClass’,))
[2015-03-02
10:21:10,958][22040][140451555567360][WARNING][privacyidea.lib.config:451]
unable to load resolver module : ‘resolvers.SCIMIdResolver’
(ImportError(‘cannot import name getResolverClass’,))
[2015-03-02
10:21:19,127][22040][140451446462208][WARNING][privacyidea.lib.config:451]
unable to load resolver module : ‘resolvers.SCIMIdResolver’
(ImportError(‘cannot import name getResolverClass’,))
[2015-03-02
10:21:20,111][22040][140451454854912][WARNING][privacyidea.lib.config:451]
unable to load resolver module : ‘resolvers.SCIMIdResolver’
(ImportError(‘cannot import name getResolverClass’,))
[2015-03-02
10:21:20,117][22040][140451454854912][WARNING][privacyidea.lib.config:451]
unable to load resolver module : ‘resolvers.SCIMIdResolver’
(ImportError(‘cannot import name getResolverClass’,))
[2015-03-02
10:21:20,118][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u’Map’ is not a parameter for the resolver u’sqlresolver’
[2015-03-02
10:21:20,119][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u’Database’ is not a parameter for the resolver
u’sqlresolver’
[2015-03-02
10:21:20,119][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u’Driver’ is not a parameter for the resolver u’sqlresolver’
[2015-03-02
10:21:20,119][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u’Server’ is not a parameter for the resolver u’sqlresolver’
[2015-03-02
10:21:20,120][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u’Limit’ is not a parameter for the resolver u’sqlresolver’
[2015-03-02
10:21:20,120][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u’User’ is not a parameter for the resolver u’sqlresolver’
[2015-03-02
10:21:20,120][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u’Table’ is not a parameter for the resolver u’sqlresolver’
[2015-03-02
10:21:20,120][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u’Password’ is not a parameter for the resolver
u’sqlresolver’
[2015-03-02
10:21:20,121][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u’Port’ is not a parameter for the resolver u’sqlresolver’
[2015-03-02
10:21:23,233][22040][140451555567360][WARNING][privacyidea.lib.config:451]
unable to load resolver module : ‘resolvers.SCIMIdResolver’
(ImportError(‘cannot import name getResolverClass’,))
[2015-03-02
10:21:24,848][22040][140451555567360][WARNING][privacyidea.lib.config:451]
unable to load resolver module : ‘resolvers.SCIMIdResolver’
(ImportError(‘cannot import name getResolverClass’,))
[2015-03-02
10:21:24,875][22040][140451555567360][ERROR][privacyidea.app:1423]
Exception on /user/ [GET]
Traceback (most recent call last):
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py”,
line 1817, in wsgi_app
response = self.full_dispatch_request()
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py”,
line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py”,
line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py”,
line 1475, in full_dispatch_request
rv = self.dispatch_request()
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py”,
line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/api/lib/prepolicy.py”,
line 80, in policy_wrapper
return wrapped_function(*args, **kwds)
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/api/user.py”,
line 97, in get_users
return send_result(users)
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/api/lib/utils.py”,
line 124, in send_result
return jsonify(res)
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/json.py”,
line 238, in jsonify
indent=indent),
File
“/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/json.py”,
line 126, in dumps
rv = _json.dumps(obj, **kwargs)
File “/usr/lib/python2.7/json/init.py”, line 238, in dumps
**kw).encode(obj)
File “/usr/lib/python2.7/json/encoder.py”, line 202, in encode
chunks = list(chunks)
File “/usr/lib/python2.7/json/encoder.py”, line 427, in _iterencode
for chunk in _iterencode_dict(o, _current_indent_level):
File “/usr/lib/python2.7/json/encoder.py”, line 401, in _iterencode_dict
for chunk in chunks:
File “/usr/lib/python2.7/json/encoder.py”, line 401, in _iterencode_dict
for chunk in chunks:
File “/usr/lib/python2.7/json/encoder.py”, line 325, in _iterencode_list
for chunk in chunks:
File “/usr/lib/python2.7/json/encoder.py”, line 383, in _iterencode_dict
yield _encoder(value)
UnicodeDecodeError: ‘utf8’ codec can’t decode byte 0xfc in position 1:
invalid start byte


You received this message because you are subscribed to the Google Groups
“privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to privacyidea...@googlegroups.com <javascript:>.
To post to this group, send email to priva...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/4864dd35-facb-4a34-8bd4-d28e1306d0d0%40googlegroups.com
https://groups.google.com/d/msgid/privacyidea/4864dd35-facb-4a34-8bd4-d28e1306d0d0%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


Cornelius Kölbelcorneliu…@netknights.it <javascript:>
+49 151 2960 1417

NetKnights GmbHhttp://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel

Did you restart the apache webserver?

Otherwise the new code will not be used.

How does your configuration look like, now?
And what does the pirvacyidea.log say?

Kind regards
CorneliusAm 02.03.2015 um 20:54 schrieb Stefan Steuer:

installation fixed - but when I add the SQLresolver, create the realm
there are no users displayed.

On Monday, March 2, 2015 at 8:18:32 PM UTC+1, Stefan Steuer wrote:

root@support:/home/# dpkg -i privacyidea-venv_2.1~dev2_amd64.deb
(Lese Datenbank ... 33805 Dateien und Verzeichnisse sind derzeit
installiert.)
Vorbereitung zum Ersetzen von privacyidea-venv 2.1~dev1 (durch
privacyidea-venv_2.1~dev2_amd64.deb) ...
Ersatz für privacyidea-venv wird entpackt ...
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von
privacyidea-venv:
 privacyidea-venv hängt ab von python-virtualenv; aber:
  Paket python-virtualenv ist nicht installiert.

dpkg: Fehler beim Bearbeiten von privacyidea-venv (--install):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
Fehler traten auf beim Bearbeiten von:
 privacyidea-venv


You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com
mailto:privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com
mailto:privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/3feb0ab6-8290-4841-9d6d-90d74978afe6%40googlegroups.com
https://groups.google.com/d/msgid/privacyidea/3feb0ab6-8290-4841-9d6d-90d74978afe6%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

installation fixed - but when I add the SQLresolver, create the realm there
are no users displayed.On Monday, March 2, 2015 at 8:18:32 PM UTC+1, Stefan Steuer wrote:

root@support:/home/# dpkg -i privacyidea-venv_2.1~dev2_amd64.deb
(Lese Datenbank … 33805 Dateien und Verzeichnisse sind derzeit
installiert.)
Vorbereitung zum Ersetzen von privacyidea-venv 2.1~dev1 (durch
privacyidea-venv_2.1~dev2_amd64.deb) …
Ersatz für privacyidea-venv wird entpackt …
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von privacyidea-venv:
privacyidea-venv hängt ab von python-virtualenv; aber:
Paket python-virtualenv ist nicht installiert.

dpkg: Fehler beim Bearbeiten von privacyidea-venv (–install):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
Fehler traten auf beim Bearbeiten von:
privacyidea-venv

root@support:/home/# dpkg -i privacyidea-venv_2.1~dev2_amd64.deb
(Lese Datenbank … 33805 Dateien und Verzeichnisse sind derzeit
installiert.)
Vorbereitung zum Ersetzen von privacyidea-venv 2.1~dev1 (durch
privacyidea-venv_2.1~dev2_amd64.deb) …
Ersatz für privacyidea-venv wird entpackt …
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von privacyidea-venv:
privacyidea-venv hängt ab von python-virtualenv; aber:
Paket python-virtualenv ist nicht installiert.

dpkg: Fehler beim Bearbeiten von privacyidea-venv (–install):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
Fehler traten auf beim Bearbeiten von:
privacyidea-venv

apt-get install -fAm 02.03.2015 um 20:18 schrieb Stefan Steuer:

logfile for the user view problem is attached.
But there will no logfile be created when I try to type a username of a
user who has a “umlaut” in his first or lastname in the db-tableOn Monday, March 2, 2015 at 9:37:57 PM UTC+1, Stefan Steuer wrote:

aaaaaah there is an other bug…
user DB e.g.:

login; firstname; lastname
M.Mustermann; Max; Mustermann
M.Muenster; Monika; Münster

When I try to type M.Muster… I’ll get the right user, but when I type
M.Muenster… privacyidea will not find the user - I think because of the
“ü” in the lastname

userview-log.txt (8.54 KB)

error log is empty.
ca. 70 User

btw is it possible for the user to create their own QR-Code?On Monday, March 2, 2015 at 9:27:07 PM UTC+1, Cornelius Kölbel wrote:

This sounds like some remaining issue with a user field.
But it sounds like an issue in the old code, when on decode-error-user
would avoid all users from being displayed. This should not happen anymore.

How many users are in your database?
Can you see something in the error log?

Kind regards
Cornelius

Am 02.03.2015 um 21:24 schrieb Stefan Steuer:

yes.
the users won’t be displayed in the user view. But when I want to add a
token and type in some letters in the username-field I’ll get the user from
the DB.

On Monday, March 2, 2015 at 9:04:04 PM UTC+1, Cornelius Kölbel wrote:

Did you restart the apache webserver?

Otherwise the new code will not be used.

How does your configuration look like, now?
And what does the pirvacyidea.log say?

Kind regards
Cornelius

Am 02.03.2015 um 20:54 schrieb Stefan Steuer:

installation fixed - but when I add the SQLresolver, create the realm
there are no users displayed.

On Monday, March 2, 2015 at 8:18:32 PM UTC+1, Stefan Steuer wrote:

root@support:/home/# dpkg -i privacyidea-venv_2.1~dev2_amd64.deb
(Lese Datenbank … 33805 Dateien und Verzeichnisse sind derzeit
installiert.)
Vorbereitung zum Ersetzen von privacyidea-venv 2.1~dev1 (durch
privacyidea-venv_2.1~dev2_amd64.deb) …
Ersatz für privacyidea-venv wird entpackt …
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von
privacyidea-venv:
privacyidea-venv hängt ab von python-virtualenv; aber:
Paket python-virtualenv ist nicht installiert.

dpkg: Fehler beim Bearbeiten von privacyidea-venv (–install):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
Fehler traten auf beim Bearbeiten von:
privacyidea-venv

-- 

You received this message because you are subscribed to the Google Groups
“privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to privacyidea...@googlegroups.com.
To post to this group, send email to priva...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/3feb0ab6-8290-4841-9d6d-90d74978afe6%40googlegroups.com
https://groups.google.com/d/msgid/privacyidea/3feb0ab6-8290-4841-9d6d-90d74978afe6%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to privacyidea...@googlegroups.com <javascript:>.
To post to this group, send email to priva...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/87b62545-2ce5-4f95-9167-299dac617f41%40googlegroups.com
https://groups.google.com/d/msgid/privacyidea/87b62545-2ce5-4f95-9167-299dac617f41%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

I’ll try it in the Morning :wink:
Should that File also fix the Problem while Creating a Token for a User with “umlaut”?

Hi Stefan,

you’ll find the package here:
https://www.privacyidea.org/wp-content/uploads/2015/privacyidea-venv_2.1~dev2_amd64.deb

And as a told, I had to set

database encoding = latin1

in my resolver, so I saw the OTRS user with the umlaut.

Kind regards
CorneliusAm 02.03.2015 um 16:08 schrieb Cornelius Kölbel:

Am 02.03.2015 um 15:34 schrieb Stefan Steuer:

OK great - so please can create a manual how I can update the files?
dpkg -i new_deb_package
:wink:

I will send you the link with the new package, when it is built.

btw:
What do you think is safer?
LDAPS query with privacyIDEA or mySQL DB with privacyIDEA? Or LDAP-S
(password policy at the domain controller) while auth. with OTRS
(without privacyIDEA)
Of course not using privacyIDEA is UNsafer! :slight_smile:

THat is the idea with one time passwords, to avoid password sniffing
by trojans or should surfers. So just using LDAP/OTRS is of course
unsafer.

In one point using the users from the OTRS SQL database is safer:
An LDAP request sends an LDAP bind. At the moment a simple bind. A
simple bind sends the ldap password over the wire. Although it is in
the TLS tunnel.

Moreover, an ldap administrator could change the users password in
ldap or modify the user data.

If you keep everything on one machine, you do not have these attach
vectors.

…but there might be other points…

Kind regards
Cornelius

On Monday, March 2, 2015 at 2:43:33 PM UTC+1, Cornelius Kölbel wrote:

Hi Stefan,

thanks a lot for the patience.

I had to do some minor fixes. If a decoding error occurs, not the
whole user list is missing now, but only the value that could not
be decoded. Interesting enough, I need to set

Database Encoding  to "latin1"

in the sql resolver. Although the database is utf8_general_ci...

I will upload a verion 2.1dev2 shortly. (As the deb-package is
not based on 2.0)

Kind regards
Cornelius



Am 02.03.2015 um 10:22 schrieb Stefan Steuer:
Dear Cornelius,
I found some "ü" in the name of the otrs-agents column. But
nothin starts with a "ü".

I think the problem is that otrs is utf8_general_ci (


      Storage-Engine (InnoDB))


    Error log with pi_loglevel 10


[2015-03-02
10:21:10,139][22040][140451446462208][WARNING][privacyidea.lib.config:451]
unable to load resolver module : 'resolvers.SCIMIdResolver'
(ImportError('cannot import name getResolverClass',))
[2015-03-02
10:21:10,506][22040][140451446462208][WARNING][privacyidea.lib.config:451]
unable to load resolver module : 'resolvers.SCIMIdResolver'
(ImportError('cannot import name getResolverClass',))
[2015-03-02
10:21:10,806][22040][140451555567360][WARNING][privacyidea.lib.config:451]
unable to load resolver module : 'resolvers.SCIMIdResolver'
(ImportError('cannot import name getResolverClass',))
[2015-03-02
10:21:10,958][22040][140451555567360][WARNING][privacyidea.lib.config:451]
unable to load resolver module : 'resolvers.SCIMIdResolver'
(ImportError('cannot import name getResolverClass',))
[2015-03-02
10:21:19,127][22040][140451446462208][WARNING][privacyidea.lib.config:451]
unable to load resolver module : 'resolvers.SCIMIdResolver'
(ImportError('cannot import name getResolverClass',))
[2015-03-02
10:21:20,111][22040][140451454854912][WARNING][privacyidea.lib.config:451]
unable to load resolver module : 'resolvers.SCIMIdResolver'
(ImportError('cannot import name getResolverClass',))
[2015-03-02
10:21:20,117][22040][140451454854912][WARNING][privacyidea.lib.config:451]
unable to load resolver module : 'resolvers.SCIMIdResolver'
(ImportError('cannot import name getResolverClass',))
[2015-03-02
10:21:20,118][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u'Map' is not a parameter for the resolver
u'sqlresolver'
[2015-03-02
10:21:20,119][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u'Database' is not a parameter for the resolver
u'sqlresolver'
[2015-03-02
10:21:20,119][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u'Driver' is not a parameter for the resolver
u'sqlresolver'
[2015-03-02
10:21:20,119][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u'Server' is not a parameter for the resolver
u'sqlresolver'
[2015-03-02
10:21:20,120][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u'Limit' is not a parameter for the resolver
u'sqlresolver'
[2015-03-02
10:21:20,120][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u'User' is not a parameter for the resolver
u'sqlresolver'
[2015-03-02
10:21:20,120][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u'Table' is not a parameter for the resolver
u'sqlresolver'
[2015-03-02
10:21:20,120][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u'Password' is not a parameter for the resolver
u'sqlresolver'
[2015-03-02
10:21:20,121][22040][140451454854912][WARNING][privacyidea.lib.resolver:128]
the passed key u'Port' is not a parameter for the resolver
u'sqlresolver'
[2015-03-02
10:21:23,233][22040][140451555567360][WARNING][privacyidea.lib.config:451]
unable to load resolver module : 'resolvers.SCIMIdResolver'
(ImportError('cannot import name getResolverClass',))
[2015-03-02
10:21:24,848][22040][140451555567360][WARNING][privacyidea.lib.config:451]
unable to load resolver module : 'resolvers.SCIMIdResolver'
(ImportError('cannot import name getResolverClass',))
[2015-03-02
10:21:24,875][22040][140451555567360][ERROR][privacyidea.app:1423]
Exception on /user/ [GET]
Traceback (most recent call last):
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/app.py",
line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/api/lib/prepolicy.py",
line 80, in policy_wrapper
    return wrapped_function(*args, **kwds)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/api/user.py",
line 97, in get_users
    return send_result(users)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/privacyidea/api/lib/utils.py",
line 124, in send_result
    return jsonify(res)
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/json.py",
line 238, in jsonify
    indent=indent),
  File
"/opt/privacyidea/privacyidea-venv/local/lib/python2.7/site-packages/flask/json.py",
line 126, in dumps
    rv = _json.dumps(obj, **kwargs)
  File "/usr/lib/python2.7/json/__init__.py", line 238, in dumps
    **kw).encode(obj)
  File "/usr/lib/python2.7/json/encoder.py", line 202, in encode
    chunks = list(chunks)
  File "/usr/lib/python2.7/json/encoder.py", line 427, in
_iterencode
    for chunk in _iterencode_dict(o, _current_indent_level):
  File "/usr/lib/python2.7/json/encoder.py", line 401, in
_iterencode_dict
    for chunk in chunks:
  File "/usr/lib/python2.7/json/encoder.py", line 401, in
_iterencode_dict
    for chunk in chunks:
  File "/usr/lib/python2.7/json/encoder.py", line 325, in
_iterencode_list
    for chunk in chunks:
  File "/usr/lib/python2.7/json/encoder.py", line 383, in
_iterencode_dict
    yield _encoder(value)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfc in
position 1: invalid start byte
 
-- 
You received this message because you are subscribed to the
Google Groups "privacyidea" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to privacyidea...@googlegroups.com <javascript:>.
To post to this group, send email to priva...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/4864dd35-facb-4a34-8bd4-d28e1306d0d0%40googlegroups.com
<https://groups.google.com/d/msgid/privacyidea/4864dd35-facb-4a34-8bd4-d28e1306d0d0%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
-- 
Cornelius Kölbel
corneliu...@netknights.it <javascript:>
+49 151 2960 1417

NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel


You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to privacyidea+unsubscribe@googlegroups.com
mailto:privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com
mailto:privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/3d051291-5832-403d-a955-2392bd8959fc%40googlegroups.com
https://groups.google.com/d/msgid/privacyidea/3d051291-5832-403d-a955-2392bd8959fc%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.


Cornelius Kölbel
cornelius.koelbel@netknights.it
+49 151 2960 1417

NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel

You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com
mailto:privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com
mailto:privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/54F47CDB.10108%40netknights.it
https://groups.google.com/d/msgid/privacyidea/54F47CDB.10108%40netknights.it?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

This sounds like some remaining issue with a user field.
But it sounds like an issue in the old code, when on decode-error-user
would avoid all users from being displayed. This should not happen anymore.

How many users are in your database?
Can you see something in the error log?

Kind regards
CorneliusAm 02.03.2015 um 21:24 schrieb Stefan Steuer:

yes.
the users won’t be displayed in the user view. But when I want to add
a token and type in some letters in the username-field I’ll get the
user from the DB.

On Monday, March 2, 2015 at 9:04:04 PM UTC+1, Cornelius Kölbel wrote:

Did you restart the apache webserver?

Otherwise the new code will not be used.

How does your configuration look like, now?
And what does the pirvacyidea.log say?

Kind regards
Cornelius

Am 02.03.2015 um 20:54 schrieb Stefan Steuer:
installation fixed - but when I add the SQLresolver, create the
realm there are no users displayed.



On Monday, March 2, 2015 at 8:18:32 PM UTC+1, Stefan Steuer wrote:

    root@support:/home/# dpkg -i privacyidea-venv_2.1~dev2_amd64.deb
    (Lese Datenbank ... 33805 Dateien und Verzeichnisse sind
    derzeit installiert.)
    Vorbereitung zum Ersetzen von privacyidea-venv 2.1~dev1
    (durch privacyidea-venv_2.1~dev2_amd64.deb) ...
    Ersatz für privacyidea-venv wird entpackt ...
    dpkg: Abhängigkeitsprobleme verhindern Konfiguration von
    privacyidea-venv:
     privacyidea-venv hängt ab von python-virtualenv; aber:
      Paket python-virtualenv ist nicht installiert.

    dpkg: Fehler beim Bearbeiten von privacyidea-venv (--install):
     Abhängigkeitsprobleme - verbleibt unkonfiguriert
    Fehler traten auf beim Bearbeiten von:
     privacyidea-venv
-- 
You received this message because you are subscribed to the
Google Groups "privacyidea" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to privacyidea...@googlegroups.com <javascript:>.
To post to this group, send email to priva...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/3feb0ab6-8290-4841-9d6d-90d74978afe6%40googlegroups.com
<https://groups.google.com/d/msgid/privacyidea/3feb0ab6-8290-4841-9d6d-90d74978afe6%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com
mailto:privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com
mailto:privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/87b62545-2ce5-4f95-9167-299dac617f41%40googlegroups.com
https://groups.google.com/d/msgid/privacyidea/87b62545-2ce5-4f95-9167-299dac617f41%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

Q29udGVudC1UeXBlOiBhcHBsaWNhdGlvbi9wZ3Atc2lnbmF0dXJlOyBuYW1lPSJzaWduYXR1cmUu
YXNjIg0KQ29udGVudC1EZXNjcmlwdGlvbjogT3BlblBHUCBkaWdpdGFsIHNpZ25hdHVyZQ0KQ29u
dGVudC1EaXNwb3NpdGlvbjogYXR0YWNobWVudDsgZmlsZW5hbWU9InNpZ25hdHVyZS5hc2MiDQoN
Ci0tLS0tQkVHSU4gUEdQIFNJR05BVFVSRS0tLS0tDQpWZXJzaW9uOiBHbnVQRyB2MQ0KDQppUUlj
QkFFQkFnQUdCUUpVOUdqNkFBb0pFQkJoWkZVdWpZRkpEQ0lQLzNSazV6bjJzbHFEa3hPVkFseTA2
aFFBDQpGN05vZmhiU1E3WmNjcGVLb3U0ZUtHaVpRVCtCcWg3ZzFENGgyMSt5VjhmNG1RM3N6Znkv
ZURxcEwySzBTRzRLDQptMFROekJkcTNKU2tNTzY5N1loOWNUZlhhejJ0a1VxRzBpVjRER2J5azEw
QTZtQ2x6R3ZVTllSbTExWnZKTER4DQpySGtkT1VuUWxzMDZPQ0J4eXgxcHZOcU4wT1pWbWNxOXI0
NDk5aDE0cE1jWm0xTENldEZ1RUF5YXA2VHIzRU5ODQpNUFJpencvNE02anJXV0ZlZnV2bHRnQ1Zr
eTRKMEt5Nk81Y0x3OVVVK0UvaklaTitNeDF2ZnFxcWN6RzFUNFNsDQpTNG1qWFBnMzg0QXZNeVh5
eHp5dEo3WitHZGFYRDVhSExveDd1cXBBbUpmOVMwSVRxT1RtSHlINFZ3OVM3RTBvDQpKZzdQN0Nl
bFl0ajg4ZjE0Zi9MOUw4eEtBRnh4Nk9JRGpwWXVZMS9KaVF5b0NvT0s0K3gzWmI0NWNxdkZNMjJl
DQpHOUw4QjA1aGtTMnpCQ0VyOUxXZlRIeFU4S3VLUFhmWXQ3UGk5OU1qMzYwekVMYllQQmVFOGlk
MTB3dGFlaU84DQpTdDZkUWd5YktJd2MySnhXancwdTlZcVNqaXB2S1loNis2QjI2UHNMaGN4d0pC
L0hIRVRyQU5FK3ZYekt3YUVuDQp2UlJOckgwRENxNlI4K1lYa1E5aU9Na2pFUklmWG42QzhTUXdM
d3lhQkd1dldEdU9XTmVvbElQRlZHYmpLQXZFDQppV3NNVm9TanlrZUJBUGlPV3E0akljUnF4R2Nw
Q2pUMmJNVXJScW5BMk9Qc09uTkRCbTgxWUs5emltd2JicGNkDQp3aEhOaDBQV2JIVGlFeGRiVWEx
dg0KPW44cWgNCi0tLS0tRU5EIFBHUCBTSUdOQVRVUkUtLS0tLQ0K

Q29udGVudC1UeXBlOiBhcHBsaWNhdGlvbi9wZ3Atc2lnbmF0dXJlOyBuYW1lPSJzaWduYXR1cmUu
YXNjIg0KQ29udGVudC1EZXNjcmlwdGlvbjogT3BlblBHUCBkaWdpdGFsIHNpZ25hdHVyZQ0KQ29u
dGVudC1EaXNwb3NpdGlvbjogYXR0YWNobWVudDsgZmlsZW5hbWU9InNpZ25hdHVyZS5hc2MiDQoN
Ci0tLS0tQkVHSU4gUEdQIFNJR05BVFVSRS0tLS0tDQpWZXJzaW9uOiBHbnVQRyB2MQ0KDQppUUlj
QkFFQkFnQUdCUUpVOU5WdUFBb0pFQkJoWkZVdWpZRkpoaG9QL2pMd0FKVnUzaG5jYzJtNTIxOEgy
RHJuDQppT3o3c2dFdjMrc005bkZXQm8xWTcyZ3AyYUJFQUlCUE9KdER1c3NJWWhQWDRna3JWdHJs
WnN1cStWT1BQZnVYDQpvaWY0dloxUVFpZ2pHYVA5VitKMkFiZUlmMTZ4TVhMSjBCTUZxMnF6M3ps
T2JEZWFmWitIdm1nMmJ1SE1BRlF0DQoyK1llZHY3RFJDaFNUT3BsNzdkUWRZcWkrWFRxclFqVE1l
T1VZNmNDRjVZS25wcHpOMCs2bU92R0YwWnNQQXcxDQpwSXFhZkVmem0zd01SMGQ5bGs0VWNvV3RD
Q0wzSTV3NDN6amlUUGdmNTcyM0didlRKZVF4VkViaHNiN1dVaGhpDQp1Njl6N0dnQ1NzcnpGRnAv
eDE4UGNqcnZGTmJ2OXhEUEdDL3VpQ091RElhQk5UdXNCUW5oTWQxWTVJeEgyYkloDQpvb2k3U2Vn
MWRMMGtaMzZUTkROTUdWdDErQmdCcTdydmp1K0VoMURKa2tIMFlXNkF3YnpWTlJkZkhTR1RCZEw4
DQp0ZXBRY2tVZ0FzUnRlY2R6TzNkZFAzbFVKZ3BqOHR6NUgyeWdyVVZUWWl2eDVscXhrTlU5SGhQ
emRpNDhscENRDQowMEo3QkhsL21iako5M0dNOE1Pc3FnZUVnZjNMUDVqVUJrYmZzaW9YWGt1U1l4
UkdVaFMwZHJ4THd1aXhReTh3DQovMTBNMWhKVE9FUlJnODVPMjlaTVYvQzVTRFBYZzhBSU5mOFAv
V0x4VzFrOURnQjc2K3JIQVRMVmRGZ1NmVjRRDQpVYzJ4eUtWZTkzQWdPY01wa2R1MnJGQjFjZFJt
ZVdJYzRVb2tNdXR0ZFFNc3lqMGJQOUJNbEgwRDloU0tvZjk2DQpQNzZPb3pNTHNYdmVSMWNoTGVU
VQ0KPWluSDANCi0tLS0tRU5EIFBHUCBTSUdOQVRVUkUtLS0tLQ0K

SQLIdResolver.py (21.9 KB)

aaaaaah there is an other bug…
user DB e.g.:

login; firstname; lastname
M.Mustermann; Max; Mustermann
M.Muenster; Monika; Münster

When I try to type M.Muster… I’ll get the right user, but when I type
M.Muenster… privacyidea will not find the user - I think because of the
"ü" in the lastname