ssl - Python-ldap set_option not working on Yosemite -
We have installed the Python-LDAP (2.4.19) module without any errors and successfully completed most of the tasks. However ldap.set_option always gives an exception when we try to load the certificate to use ssl (ldaps).
This Yosmate is on the running notebooks, but not on Mavericks or Linux. (All macbooks have Xcode installed)
We feel that this should be something unavailable / old / up to date but we do not know how to do it.
Any clues?
$ dragon 2.7.6 (default, 9 September 2014, 15:04:36) ... ... gt; & Gt; Import ldap & gt; & Gt; & Gt; Ldap.set_option (ldap.OPT_X_TLS_CACERTFILE, '/my_path/my_cert.crt') Traceback (most recent call end): File "& lt; stdin>", line 1, & lt; Module & gt; File "/*xxx*/python2.7/site-packages/ldap/functions.py", line 133, set_option returns _ldap_function_call (none, _ldap.set_option, option, invalue) file "/ * xxx * / python2. 7 /site-packages/ldap/functions.py ", in line 64, _ldap_function_call result = func (* args, ** kwargs) ValueError: option error
Trusted it by installing open land, and then manually downloaded the turball, and mod setup.cfg for taking / usr / local Install
Comments
Post a Comment