Univention Bugzilla – Bug 36654
Traceback in AD-Connector password sync: M2Crypto.__m2crypto.sslv2_method missing
Last modified: 2014-11-26 06:55:53 CET
When synchronizing passwords, the UCS 4.0 AD-Connector aborts with a traceback: 12.11.2014 19:56:08,86 LDAP (ERROR ): failed in post_con_modify_functions 12.11.2014 19:56:08,87 LDAP (ERROR ): Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/connector/__init__.py", line 1281, in sync_to_ucs f(self, property_type, object) File "/usr/lib/pymodules/python2.7/univention/connector/ad/password.py", line 331, in password_sync res = get_password_from_ad(connector, rid) File "/usr/lib/pymodules/python2.7/univention/connector/ad/password.py", line 138, in get_password_from_ad ssl=ssl_init(s.fileno()) File "/usr/lib/pymodules/python2.7/univention/connector/ad/password.py", line 76, in ssl_init meth = M2Crypto.__m2crypto.sslv2_method(); AttributeError: 'module' object has no attribute 'sslv2_method' +++ This bug was initially created as a clone of Bug #35320 +++
Maybe it's this: https://github.com/martinpaljak/M2Crypto/commit/84977c532c2444c5487db57146d81bb68dd5431d This patch fixed the password sync for me: ========================================================= --- modules/univention/connector/ad/password.py (Revision 55387) +++ modules/univention/connector/ad/password.py (Arbeitskopie) @@ -73,7 +73,7 @@ return res def ssl_init(sd): - meth = M2Crypto.__m2crypto.sslv2_method(); + meth = M2Crypto.__m2crypto.sslv3_method(); ctx = M2Crypto.__m2crypto.ssl_ctx_new (meth); ssl = M2Crypto.__m2crypto.ssl_new (ctx); M2Crypto.__m2crypto.ssl_set_fd (ssl, sd); =========================================================
Created attachment 6367 [details] sslv3_instead_of_sslv2.patch
Package rebuilt with patch, changelog added.
It works.
UCS 4.0-0 has been released: http://docs.univention.de/release-notes-4.0-0-en.html http://docs.univention.de/release-notes-4.0-0-de.html If this error occurs again, please use "Clone This Bug".