You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Login with LDAP works when using a full name with special character such as ä, ö, ü
Actual Behaviour
Login fails with error message
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 56, in application
response = frappe.handler.handle()
File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 21, in handle
data = execute_cmd(cmd)
File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 922, in call
return fn(*args, **newargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/ldap_settings /ldap_settings.py", line 50, in login
user = authenticate_ldap_user(frappe.as_unicode(args.usr), frappe.as_unicode(args.pwd))
File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/ldap_settings /ldap_settings.py", line 94, in authenticate_ldap_user
conn.simple_bind_s(dn, frappe.as_unicode(password))
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/ldap/ldapobject.py", line 228, in simple_bind_s
msgid = self.simple_bind(who,cred,serverctrls,clientctrls)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/ldap/ldapobject.py", line 222, in simple_bind
return self._ldap_call(self._l.simple_bind,who,cred,RequestControlTuples(serverctrls),RequestControlTuples(clientctrls))
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/ldap/ldapobject.py", line 108, in _ldap_call
result = func(*args,**kwargs)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 9: ordinal not in range(128)
frappe-web.min.js:1373:21
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 56, in application
response = frappe.handler.handle()
File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 21, in handle
data = execute_cmd(cmd)
File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 922, in call
return fn(*args, **newargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/ldap_settings /ldap_settings.py", line 50, in login
user = authenticate_ldap_user(frappe.as_unicode(args.usr), frappe.as_unicode(args.pwd))
File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/ldap_settings /ldap_settings.py", line 94, in authenticate_ldap_user
conn.simple_bind_s(dn, frappe.as_unicode(password))
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/ldap/ldapobject.py", line 228, in simple_bind_s
msgid = self.simple_bind(who,cred,serverctrls,clientctrls)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/ldap/ldapobject.py", line 222, in simple_bind
return self._ldap_call(self._l.simple_bind,who,cred,RequestControlTuples(serverctrls),RequestControlTuples(clientctrls))
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/ldap/ldapobject.py", line 108, in _ldap_call
result = func(*args,**kwargs)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 9: ordinal not in range(128)
Steps to reproduce:
Set up ERPNext with LDAP integration
Create a user in the LDAP directory with user name "hans.mueller", full name "Hans Müller" and some PW
Try to log in with the above credentials "hans.mueller" and PW
Frappé version:
8.9.2 (master)
The text was updated successfully, but these errors were encountered:
Expected Behaviour
Login with LDAP works when using a full name with special character such as ä, ö, ü
Actual Behaviour
Login fails with error message
Steps to reproduce:
Frappé version:
8.9.2 (master)
The text was updated successfully, but these errors were encountered: