#49 set_option errors incorrectly translated

closed-fixed
nobody
None
5
2009-08-17
2009-08-17
No

When ldap_set_option() is called it indicates an error by returning LDAP_OPT_ERROR or LDAP_NO_MEMORY.
Currently, the _ldap.set_option wrapper treats the error code as an LDAP protocol error and LDAP_OPT_ERROR appears to the Python caller as SERVER_DOWN.

I think set_option should translate LDAP_OPT_ERROR to ValueError.

Discussion

  • David Leonard

    David Leonard - 2009-08-17
    • status: open --> closed-fixed
     
  • David Leonard

    David Leonard - 2009-08-17

    fixed in 2.3.10

    see also issue #1964993

     
  • David Leonard

    David Leonard - 2009-08-17

    A fix has been applied and committed to the CVS repository.
    It will appear in the next release.
    Thanks.

     

Log in to post a comment.