mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix libkrb5 filename for macOS
Signed-off-by: David Kreitschmann <david@kreitschmann.de> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
1b1bace750
commit
b8b28c3d09
@ -3,13 +3,18 @@
|
||||
#
|
||||
|
||||
import ctypes
|
||||
import sys
|
||||
|
||||
|
||||
KRB5_CC_NOSUPP = -1765328137
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
LIBKRB5_FILENAME = 'libkrb5.dylib'
|
||||
else:
|
||||
LIBKRB5_FILENAME = 'libkrb5.so.3'
|
||||
|
||||
try:
|
||||
LIBKRB5 = ctypes.CDLL('libkrb5.so.3')
|
||||
LIBKRB5 = ctypes.CDLL(LIBKRB5_FILENAME)
|
||||
except OSError as e: # pragma: no cover
|
||||
raise ImportError(str(e))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user