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
Trying to add a user to my ldap, I met an "Error occured". Looking at stdout, I found that the email wasn't recognize as valid (format was xxxx.yyy-zzz@example.com). I found that the '-' was the problem. Digging into the code I found that _is_email function in /usr/lib/python3.8/site-packages/ldapcherry-1.1.1-py3.8.egg/ldapcherry/attributes.py file was the problem.
Hi,
Trying to add a user to my ldap, I met an "Error occured". Looking at stdout, I found that the email wasn't recognize as valid (format was xxxx.yyy-zzz@example.com). I found that the '-' was the problem. Digging into the code I found that _is_email function in
/usr/lib/python3.8/site-packages/ldapcherry-1.1.1-py3.8.egg/ldapcherry/attributes.py
file was the problem.So I modified it to :
Email is not checked at all now but it works, user may be more vigilent now ...
I think the pattern is too basic and this function deserves a better algo ;)
I'm don't know Python at all so I can't do the modification myself :s
Regards
The text was updated successfully, but these errors were encountered: