-
Notifications
You must be signed in to change notification settings - Fork 126
Some default arguments are not compatible with bytes_mode=True #147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could this be related ?
|
@anazmy I cannot reproduce your traceback. Which version of FreeIPA and python-ldap / pyldap are you using? |
This will hold 3.0 back :( |
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
Jan 5, 2018
Tests marked with expected failure are currently affected by bug python-ldap#147. See: python-ldap#147 Signed-off-by: Christian Heimes <cheimes@redhat.com>
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
Jan 5, 2018
Several default arguments are not compatible with bytes mode. Default to bytes in bytes mode. See: python-ldap#147 Signed-off-by: Christian Heimes <cheimes@redhat.com>
Merged
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
Jan 5, 2018
Tests marked with expected failure are currently affected by bug python-ldap#147. See: python-ldap#147 Signed-off-by: Christian Heimes <cheimes@redhat.com>
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
Jan 5, 2018
Several default arguments are not compatible with bytes mode. Default to bytes in bytes mode. See: python-ldap#147 Signed-off-by: Christian Heimes <cheimes@redhat.com>
encukou
pushed a commit
to tiran/python-ldap
that referenced
this issue
Jan 10, 2018
Tests marked with expected failure are currently affected by bug python-ldap#147. See: python-ldap#147 Signed-off-by: Christian Heimes <cheimes@redhat.com>
encukou
pushed a commit
to tiran/python-ldap
that referenced
this issue
Jan 10, 2018
Several default arguments are not compatible with bytes mode. Default to bytes in bytes mode. See: python-ldap#147 Signed-off-by: Christian Heimes <cheimes@redhat.com>
Should be fixed in #152 |
... but not everything on the checklist is fixed |
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
Jan 10, 2018
sasl_bind_s() has accepted None for who and cred for a long time. Now simple_bind() and simple_bind_s() default to and accept None, too. See: python-ldap#147 Signed-off-by: Christian Heimes <cheimes@redhat.com>
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
Jan 10, 2018
Closes: python-ldap#147 Signed-off-by: Christian Heimes <cheimes@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
With
bytes_mode=True
, all arguments must be bytes. However some functions have default keyword arguments of type str (unicode). One example issearch_ext(..., filterstr='(objectClass=*), ...')
.function signature
simple_bind(self,who='',cred='',serverctrls=None,clientctrls=None)
simple_bind_s(self,who='',cred='',serverctrls=None,clientctrls=None)
search_ext(self,base,scope,filterstr='(objectClass=*)', ...)
search_ext_s(self,base,scope,filterstr='(objectClass=*)', ...)
search(self,base,scope,filterstr='(objectClass=*)', ...)
search_s(self,base,scope,filterstr='(objectClass=*)', ...)
search_st(self,base,scope,filterstr='(objectClass=*)', ...)
search_subschemasubentry_s(self,dn='')
find_unique_entry(self,base,scope=ldap.SCOPE_SUBTREE,filterstr='(objectClass=*)', ...)
read_rootdse_s(self, filterstr='(objectClass=*)', attrlist=None)
function body
search_subschemasubentry_s
read_subschemasubentry_s
find_unique_entry
read_rootdse_s
get_naming_contexts
ReconnectLDAPObject._apply_last_bind
After fixing this
filterstr
workaround inTests/t_ldap_syncrepl.py
The text was updated successfully, but these errors were encountered: