[python-ldap] ValueError: option error on trying to set OPT_X_TLS_CACERTFILE

Michael Ströder michael at stroeder.com
Wed Jul 20 17:17:46 EDT 2016


Patrick Carlson wrote:
>> Peter Bengtsson wrote:
>> "/Users/peterbe/virtualenvs/medlem/lib/python2.7/site-packages/
> python_ldap-2.4.25-py2.7-macosx-10.11-x86_64.egg/ldap/functions.py",
>> line 64, in _ldap_function_call
>>      result = func(*args,**kwargs)
>> ValueError: option error
> 
> Was this issue ever solved?

Not on Mac OS X.

It seems they've heavily patched libldap on Mac OS X for using the OS's keyring
/ trust store. So as work-around for Mac OS X you have to import the CA cert
there and *not* set this option.

> I've been working with python-ldap
> recently and have come across the same issue. I know the cert file exists
> and i've used the cert filed when working with openldap. 

Also on Mac OS X? Or another OS?

Ciao, Michael.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20160720/18478a80/attachment.bin>


More information about the python-ldap mailing list