Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX 10.10, symbol pam_start not found #4

Open
jsferreira opened this issue Dec 16, 2014 · 1 comment
Open

OSX 10.10, symbol pam_start not found #4

jsferreira opened this issue Dec 16, 2014 · 1 comment

Comments

@jsferreira
Copy link

Hi,

I am trying to use simplepam 0.1.5 with python 3.4.2 on OS X 10.10.1 (from ipython 3.0.0-dev) but it fails when it tries to access pam_start in libpam. The same problem exists in python 2 (simplepam @ python 2.7.6).

Cheers,
/J


from simplepam import authenticate

AttributeError Traceback (most recent call last)
in ()
----> 1 from simplepam import authenticate

/usr/local/lib/python3.4/site-packages/simplepam.py in ()
84 ]
85
---> 86 pam_start = libpam.pam_start
87 pam_start.restype = c_int
88 pam_start.argtypes = [c_char_p, c_char_p, POINTER(PamConv),

/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ctypes/init.py in getattr(self, name)
362 if name.startswith('') and name.endswith(''):
363 raise AttributeError(name)
--> 364 func = self.getitem(name)
365 setattr(self, name, func)
366 return func

/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ctypes/init.py in getitem(self, name_or_ordinal)
367
368 def getitem(self, name_or_ordinal):
--> 369 func = self._FuncPtr((name_or_ordinal, self))
370 if not isinstance(name_or_ordinal, int):
371 func.name = name_or_ordinal

AttributeError: dlsym(RTLD_DEFAULT, pam_start): symbol not found

@sebastianriese
Copy link
Collaborator

Compare #6, similarly this is not expected to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants