minrk / pamela

Python PAM interface
Other
34 stars 10 forks source link

Add Environment Functions #10

Closed njwhite closed 6 years ago

njwhite commented 6 years ago

Add support for pam_getenv, pam_putenv & pam_getenvlist functions on a PamHandle object. Also modify authenticate to optionally leave the PAM transaction open & return the handle (so the environment can be queried).

njwhite commented 6 years ago

@minrk I've fixed this - the Travis build seems to fail due while installing the environment though!

Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.4.6/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2804, in _parsed_pkg_info
    return self._pkg_info
  File "/home/travis/virtualenv/python3.4.6/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2624, in __getattr__
    raise AttributeError(attr)
AttributeError: _pkg_info
minrk commented 6 years ago

Thanks! I think pip/setuptools need an upgrade on Travis. #11

njwhite commented 6 years ago

@minrk thanks! Can you tag and push a release with this change in to pypi when you get an minute?