The Samba-Bugzilla – Bug 11314
Prevent clashes between system and Samba SHA functions
Last modified: 2017-01-03 03:31:32 UTC
Created attachment 11126 [details]
Patch for v4-2-test to prevent SHA function clashes
Samba provides its own set of SHA function, which would replace
libc-provided flavors. This is a problem because while the prototypes
are the same, the context structure are different. As a result,
when connecting to a LDAP/SSL directory, we go through
libldap/libssl/libcrypto and there libcrypto expects to call libc
SHA functions, not Samba's.
The fix in attached patch is to check for SHA function presence
and rename Samba's version to avoid a clash.
This is a backport of d5065ed2f4c6d9f4539297e9794a2b02adec4d12
from samba master branch.
Fixed in Samba 4.3 with your patch as d5065ed2f4c6d9f4539297e9794a2b02adec4d12
Sadly Samba 4.2 is no longer in support, so we can't fix it for 4.2.